1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-11-22 01:36:56 +01:00

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
6a32fa4cdc)
This commit is contained in:
Matthias Kretschmann 2017-06-13 20:19:02 +02:00
parent e525ebb105
commit c351f874cc
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 2 additions and 2 deletions

0
.npmignore Normal file
View File

View File

@ -10,7 +10,7 @@
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"author": "BigchainDB", "author": "BigchainDB",
"main": "./src/index.js", "main": "./dist/bundle/bundle.js",
"scripts": { "scripts": {
"lint": "eslint ./", "lint": "eslint ./",
"build": "npm run clean && npm run build:bundle && npm run build:cjs && npm run build:dist", "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": "./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-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", "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" "precommit": "npm run lint"
}, },
"devDependencies": { "devDependencies": {