Skip to content

Commit

Permalink
chore: Fix publish.sh by using cd
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed May 28, 2024
1 parent 92af375 commit 6d58a5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6d58a5d

Please sign in to comment.