Skip to content

Commit 1358c2c

Browse files
committed
prepack with clean-package
1 parent 2fc5a99 commit 1358c2c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"Jeroen",
2020
"jerone",
2121
"lcov",
22+
"postpack",
2223
"SARIF",
2324
"Snyk",
2425
"sonarcloud",

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"clean": "rimraf dist coverage",
3030
"lint": "lockfile-lint && eslint -f checklist .",
3131
"lint:fix": "prettier --write \"**/*\" & eslint -f checklist --fix .",
32-
"prepublishOnly": "npm run build",
32+
"prepack": "npm run build && npx clean-package",
33+
"postpack": "npx clean-package restore",
3334
"security:eslint": "eslint -f @microsoft/eslint-formatter-sarif -o eslint-results.sarif .",
3435
"test": "npm run clean && jest",
3536
"typecheck": "tsc -p tsconfig.json --noEmit"
@@ -70,5 +71,12 @@
7071
},
7172
"engines": {
7273
"node": ">=14.15.0"
74+
},
75+
"clean-package": {
76+
"remove": [
77+
"clean-package",
78+
"devDependencies",
79+
"scripts"
80+
]
7381
}
7482
}

0 commit comments

Comments
 (0)