chore: Use prepublish instead of prepublishOnly

This commit is contained in:
강동윤 (Donny) 2024-05-29 22:18:09 +09:00
parent f91e09ec51
commit 626f13eff9
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@
"scripts": {
"postinstall": "node postinstall.js",
"artifacts": "napi artifacts --npm-dir scripts/npm",
"prepublishOnly": "tsc -d && napi prepublish -p scripts/npm --tag-style npm",
"prepublish": "tsc -d && napi prepublish -p scripts/npm --tag-style npm",
"pack": "wasm-pack",
"build:ts": "tsc -d",
"build:wasm": "npm-run-all \"pack -- build ../../bindings/binding_core_wasm --scope swc {1} -t {2} --features plugin\" --",

View File

@ -31,8 +31,8 @@ git tag -a -m "swc_core $swc_core_version" "v$version"
# Update changelog
yarn changelog
git add -A
git commit -m 'chore: Update changelog'
git add -A || true
git commit -m 'chore: Update changelog' || true
# Publish packages
git push