Skip to content

Commit 2271473

Browse files
committed
run fixup in prepare, not postprepare
'npm publish' runs 'npm prepare', but does _not_ run postprepare, leading to a 'works on my machine' problem. Via: microsoft/TypeScript#54546 (comment)
1 parent 676bbef commit 2271473

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
"postversion": "npm publish",
3232
"prepublishOnly": "git push origin --follow-tags",
3333
"preprepare": "rm -rf dist",
34-
"prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
35-
"postprepare": "bash fixup.sh",
34+
"prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json && bash fixup.sh",
3635
"pretest": "npm run prepare",
3736
"presnap": "npm run prepare",
3837
"test": "c8 tap",

0 commit comments

Comments
 (0)