diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..c20d331 --- /dev/null +++ b/.npmignore @@ -0,0 +1,7 @@ +.vscode +.idea +node_modules +package-lock.json +yarn.lock +temp +*.log diff --git a/package.json b/package.json index 97dffae..bd03c47 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,8 @@ "version": "0.9.14", "description": "record and replay the web", "scripts": { - "prepare": "npm run bundle", + "prepare": "npm run prepack", + "prepack": "npm run bundle", "test": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register test/**/*.test.ts", "test:watch": "PUPPETEER_HEADLESS=true npm run test -- --watch --watch-extensions js,ts", "repl": "npm run bundle:browser && cross-env TS_NODE_CACHE=false TS_NODE_FILES=true ts-node scripts/repl.ts",