diff --git a/package.json b/package.json index 4e7657a..291afba 100644 --- a/package.json +++ b/package.json @@ -44,13 +44,13 @@ "typescript": "5.7.2" }, "scripts": { - "build": "npm run build:clean && tsc", - "build:clean": "rm -fr dist", + "build": "rm -fr dist && tsc", "build:types": "node dist/scripts/build.js", - "build:watch": "npm run build:clean && tsc --watch", + "build:watch": "npm run build -- --watch", "lint": "prettier -c .", "lint:fix": "prettier -w .", "prepack": "npm run build", + "pretest": "npm run build", "prepublishOnly": "npm test", "test": "node --test && ./test/exports_test.sh", "test:watch": "clear && node --enable-source-maps --test --watch test" diff --git a/test/exports_test.sh b/test/exports_test.sh index a2ae680..2904f1d 100755 --- a/test/exports_test.sh +++ b/test/exports_test.sh @@ -10,7 +10,7 @@ mkdir -p $TESTDIR echo "... building tarball" cd $SCRIPT_DIR/.. -npm pack --silent --pack-destination $TESTDIR > /dev/null 2>&1 +npm pack --ignore-scripts --silent --pack-destination $TESTDIR > /dev/null 2>&1 echo ... installing tarball cd $TESTDIR