From 98bd62e87b7675c603080a2476000f338262943f Mon Sep 17 00:00:00 2001 From: Michael Lage Date: Tue, 18 Feb 2020 17:38:28 -0700 Subject: [PATCH] Added scripts for publishing - run the dist webpack and be sure to publish only the /dist directory --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5c6b6dd6b..c74cf4e92 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "botmation", - "version": "1.0.2", + "version": "1.0.3", "description": "A TypeScript library for using Puppeteer with a declarative syntax in composing web crawler automation", "module": "dist/index.js", "types": "dist/index.d.ts", @@ -10,6 +10,8 @@ }, "scripts": { "dist": "webpack", + "publish-to-npm": "npm publish dist", + "prepublish": "npm run dist", "build": "webpack --config webpack.build.config.js", "playground": "node build/playground_bot.js", "examples/simple_functional": "node build/examples/simple_functional.js",