We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a7bbec commit 2f4c806Copy full SHA for 2f4c806
package.json
@@ -47,8 +47,8 @@
47
"setup": "run-s --silent setup:*",
48
"setup:expkg": "ts-node -O '{\"module\":\"commonjs\"}' scripts/setup-example-pkg.ts",
49
"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",
+ "prepack": "run-s build && git stash -q -- package.json && mv dist/package.json .",
+ "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)",
52
"watch": "npm run test:unit -- --watch --"
53
},
54
"devDependencies": {
0 commit comments