Skip to content

Commit 61b7b7a

Browse files
committed
Compile on publish only, not prepack
When installed via git, we don't need to compile, and we can effectively treat this as a dev environment. Tsconfig will be present, so the CLI will run via ts-node directly.
1 parent 3cebd2b commit 61b7b7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"scripts": {
1515
"start": "./bin/run",
16-
"prepack": "rm -rf lib && tsc -b",
16+
"prepublishOnly": "rm -rf lib && tsc -b",
1717
"test": "mocha -r ts-node/register 'test/**/*.spec.ts'"
1818
},
1919
"repository": "httptoolkit/httptoolkit-server",

0 commit comments

Comments
 (0)