diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000..d631984d --- /dev/null +++ b/.npmignore @@ -0,0 +1,2 @@ +.vscode +package-lock.json diff --git a/package.json b/package.json index f62d66a2..5c177d94 100644 --- a/package.json +++ b/package.json @@ -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"