From c351f874cc5618830c91e058a80778b27af02d8d Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 13 Jun 2017 20:19:02 +0200 Subject: [PATCH] npm package fixes * generate dist output before publishing to npm * empty .npmignore to make sure gitignored `dist/` is included in published npm package * switch back entry point (reverts 6a32fa4cdc369c0b1a3438800ef3fb848829d2b5) --- .npmignore | 0 package.json | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index f01c147..db7345e 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "license": "Apache-2.0", "author": "BigchainDB", - "main": "./src/index.js", + "main": "./dist/bundle/bundle.js", "scripts": { "lint": "eslint ./", "build": "npm run clean && npm run build:bundle && npm run build:cjs && npm run build:dist", @@ -22,7 +22,7 @@ "release": "./node_modules/release-it/bin/release.js --src.tagName='v%s' --github.release --npm.publish --non-interactive", "release-minor": "./node_modules/release-it/bin/release.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive", "release-major": "./node_modules/release-it/bin/release.js major --src.tagName='v%s' --github.release --npm.publish --non-interactive", - "postinstall": "npm i && npm run build", + "prepublishOnly": "npm update && npm run build", "precommit": "npm run lint" }, "devDependencies": {