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
2021-02-19 05:02:13 +01:00
committed by GitHub
parent 2a9057d4f2
commit 2ad7be639b
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"