From 7a6ba7567ceaa2ab5f9bd10144dd0c63996fdcab Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 15 May 2018 00:45:42 -0400 Subject: [PATCH] publish to npm --- .npmignore | 3 +++ package.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000000..6e4ac06144b --- /dev/null +++ b/.npmignore @@ -0,0 +1,3 @@ +* +!/build +!/build/**/* diff --git a/package.json b/package.json index d9d775c37f8..a61a9aa166b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bitwarden/cli", "description": "A secure and free password manager for all of your devices.", - "version": "0.0.1", + "version": "0.0.5", "keywords": [ "bitwarden", "password", @@ -20,12 +20,12 @@ "sub:init": "git submodule update --init --recursive", "sub:update": "git submodule update --remote", "sub:pull": "git submodule foreach git pull", - "postinstall": "npm run sub:init", "clean": "rimraf dist/**/*", "build": "webpack --config webpack.config.js", "build:watch": "webpack --config webpack.config.js --watch", "build:prod": "cross-env NODE_ENV=production webpack --config webpack.config.js", "build:prod:watch": "cross-env NODE_ENV=production webpack --config webpack.config.js --watch", + "publish:npm": "npm run build:prod && npm publish --access public", "lint": "tslint src/**/*.ts spec/**/*.ts || true", "lint:fix": "tslint src/**/*.ts spec/**/*.ts --fix" },