Skip to content

Commit 9ab60c9

Browse files
committed
chore: fix lifecycle scripts
1 parent 4241433 commit 9ab60c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444
"typescript": "5.7.2"
4545
},
4646
"scripts": {
47-
"build": "npm run build:clean && tsc",
48-
"build:clean": "rm -fr dist",
47+
"build": "rm -fr dist && tsc",
4948
"build:types": "node dist/scripts/build.js",
50-
"build:watch": "npm run build:clean && tsc --watch",
49+
"build:watch": "npm run build -- --watch",
5150
"lint": "prettier -c .",
5251
"lint:fix": "prettier -w .",
5352
"prepack": "npm run build",
53+
"pretest": "npm run build",
5454
"prepublishOnly": "npm test",
5555
"test": "node --test && ./test/exports_test.sh",
5656
"test:watch": "clear && node --enable-source-maps --test --watch test"

test/exports_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mkdir -p $TESTDIR
1010

1111
echo "... building tarball"
1212
cd $SCRIPT_DIR/..
13-
npm pack --silent --pack-destination $TESTDIR > /dev/null 2>&1
13+
npm pack --ignore-scripts --silent --pack-destination $TESTDIR > /dev/null 2>&1
1414

1515
echo ... installing tarball
1616
cd $TESTDIR

0 commit comments

Comments
 (0)