Skip to content

Commit 2f4c806

Browse files
authored
chore(release): fix packaging script to allow release (#97)
1 parent 2a7bbec commit 2f4c806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"setup": "run-s --silent setup:*",
4848
"setup:expkg": "ts-node -O '{\"module\":\"commonjs\"}' scripts/setup-example-pkg.ts",
4949
"prepare": "is-ci || husky install",
50-
"prepack": "run-s build && mv dist/package.json .",
51-
"postpack": "git -c core.hookspath=/dev/null checkout -- package.json",
50+
"prepack": "run-s build && git stash -q -- package.json && mv dist/package.json .",
51+
"postpack": "git stash show || echo '' | grep -q 'package.json' && git -c core.hookspath=/dev/null checkout -q -- package.json && git stash pop --quiet || (exit 0)",
5252
"watch": "npm run test:unit -- --watch --"
5353
},
5454
"devDependencies": {

0 commit comments

Comments
 (0)