chore: Fix publish.sh by using cd

This commit is contained in:
강동윤 (Donny) 2024-05-28 15:05:02 +09:00
parent 92af37529d
commit 6d58a5d60d
2 changed files with 2 additions and 3 deletions

View File

@ -11,8 +11,7 @@
"build": "cd ./packages/core && yarn build",
"build:dev": "cd ./packages/core && yarn build:dev",
"build:ts": "cd ./packages/core && yarn build:ts",
"test": "cd ./packages/core && yarn test",
"version": "cd ./packages/core && npm version"
"test": "cd ./packages/core && yarn test"
},
"devDependencies": {
"@babel/compat-data": "^7.23.2",

View File

@ -17,7 +17,7 @@ echo "Publishing $version with swc_core $swc_core_version"
# Update version
npm version "$version" --no-git-tag-version --allow-same-version || true
(cd ./packages/core && npm version "$version" --no-git-tag-version --allow-same-version || true)
(cd ./packages/minifier && npm version "$version" --no-git-tag-version --allow-same-version || true)
(cd ./bindings && cargo set-version $version -p binding_core_wasm -p binding_minifier_wasm)
(cd ./bindings && cargo set-version --bump patch -p swc_cli)