Adding prepare & prepack npm statement (#67)

* Add prepare & prepack

* Create .npmignore

* remove node_modules, they might be needed
This commit is contained in:
Justin Halsall
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 3d463d219c
commit 17b1821a15
2 changed files with 4 additions and 0 deletions

2
.npmignore Normal file
View File

@@ -0,0 +1,2 @@
.vscode
package-lock.json

View File

@@ -3,6 +3,8 @@
"version": "1.0.7",
"description": "rrweb's component to take a snapshot of DOM, aka DOM serializer",
"scripts": {
"prepare": "npm run prepack",
"prepack": "npm run bundle",
"test": "cross-env TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register test/**/*.ts",
"bundle": "rollup --config",
"typings": "tsc -d --declarationDir typings"