From 22714736931b145c4c3aed4c253b3cc97fa6f440 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 6 Jun 2023 12:07:35 -0700 Subject: [PATCH] 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: https://github.com/microsoft/TypeScript/pull/54546#issuecomment-1579282304 --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 235d0efb..3865ba75 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,7 @@ "postversion": "npm publish", "prepublishOnly": "git push origin --follow-tags", "preprepare": "rm -rf dist", - "prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json", - "postprepare": "bash fixup.sh", + "prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json && bash fixup.sh", "pretest": "npm run prepare", "presnap": "npm run prepare", "test": "c8 tap",