mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
chore: Fix publish.sh
by using cd
This commit is contained in:
parent
92af37529d
commit
6d58a5d60d
@ -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",
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user