From 6d58a5d60d64219f8a877d1d89ec80e7bdd0b263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 28 May 2024 15:05:02 +0900 Subject: [PATCH] chore: Fix `publish.sh` by using `cd` --- package.json | 3 +-- scripts/publish.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1426a570fc0..4056ac8a69c 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/publish.sh b/scripts/publish.sh index 4fc5de4edba..d561fb782cf 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -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)