From 5d258a1ea262af50090a6443e3709e40a0d478ff Mon Sep 17 00:00:00 2001 From: Igor Ognichenko Date: Fri, 5 Jan 2018 10:26:17 +0200 Subject: [PATCH] add versioning scripts --- npm-debug.log | 46 ++++++++++++++++++++++++++++++++++++++++++++++ package.json | 5 ++++- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 npm-debug.log diff --git a/npm-debug.log b/npm-debug.log new file mode 100644 index 0000000..31b0c1d --- /dev/null +++ b/npm-debug.log @@ -0,0 +1,46 @@ +0 info it worked if it ends with ok +1 verbose cli [ '/Users/vc/.nvm/versions/node/v6.9.1/bin/node', +1 verbose cli '/Users/vc/.node/bin/npm', +1 verbose cli 'run', +1 verbose cli 'patch' ] +2 info using npm@3.3.10 +3 info using node@v6.9.1 +4 verbose run-script [ 'prepatch', 'patch', 'postpatch' ] +5 info lifecycle vue-gallery@1.2.4~prepatch: vue-gallery@1.2.4 +6 silly lifecycle vue-gallery@1.2.4~prepatch: no script for prepatch, continuing +7 info lifecycle vue-gallery@1.2.4~patch: vue-gallery@1.2.4 +8 verbose lifecycle vue-gallery@1.2.4~patch: unsafe-perm in lifecycle true +9 verbose lifecycle vue-gallery@1.2.4~patch: PATH: /Users/vc/.node/lib/node_modules/npm/bin/node-gyp-bin:/Users/vc/projects/vue-gallery/node_modules/.bin:/Users/vc/.node/bin:~/Library/Android/sdk/platform-tools:~/Library/Android/sdk/tools:/Applications/MAMP/Library/bin:/Applications/MAMP/bin/php/php7.1.1/bin:/opt/local/bin:/opt/local/sbin:~/.composer/vendor/bin:/Users/vc/.nvm/versions/node/v6.9.1/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin +10 verbose lifecycle vue-gallery@1.2.4~patch: CWD: /Users/vc/projects/vue-gallery +11 silly lifecycle vue-gallery@1.2.4~patch: Args: [ '-c', 'npm version patch' ] +12 silly lifecycle vue-gallery@1.2.4~patch: Returned: code: 1 signal: null +13 info lifecycle vue-gallery@1.2.4~patch: Failed to exec patch script +14 verbose stack Error: vue-gallery@1.2.4 patch: `npm version patch` +14 verbose stack Exit status 1 +14 verbose stack at EventEmitter. (/Users/vc/.node/lib/node_modules/npm/lib/utils/lifecycle.js:232:16) +14 verbose stack at emitTwo (events.js:106:13) +14 verbose stack at EventEmitter.emit (events.js:191:7) +14 verbose stack at ChildProcess. (/Users/vc/.node/lib/node_modules/npm/lib/utils/spawn.js:24:14) +14 verbose stack at emitTwo (events.js:106:13) +14 verbose stack at ChildProcess.emit (events.js:191:7) +14 verbose stack at maybeClose (internal/child_process.js:877:16) +14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) +15 verbose pkgid vue-gallery@1.2.4 +16 verbose cwd /Users/vc/projects/vue-gallery +17 error Darwin 16.0.0 +18 error argv "/Users/vc/.nvm/versions/node/v6.9.1/bin/node" "/Users/vc/.node/bin/npm" "run" "patch" +19 error node v6.9.1 +20 error npm v3.3.10 +21 error code ELIFECYCLE +22 error vue-gallery@1.2.4 patch: `npm version patch` +22 error Exit status 1 +23 error Failed at the vue-gallery@1.2.4 patch script 'npm version patch'. +23 error Make sure you have the latest version of node.js and npm installed. +23 error If you do, this is most likely a problem with the vue-gallery package, +23 error not with npm itself. +23 error Tell the author that this fails on your system: +23 error npm version patch +23 error You can get their info via: +23 error npm owner ls vue-gallery +23 error There is likely additional logging output above. +24 verbose exit [ 1, true ] diff --git a/package.json b/package.json index 38563bd..2c4bd53 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,10 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "lint": "node_modules/.bin/eslint ./", - "build": "node_modules/.bin/rollup -c ./build/rollup.config.js && NODE_ENV=production node_modules/.bin/rollup -c ./build/rollup.config.js" + "build": "node_modules/.bin/rollup -c ./build/rollup.config.js && NODE_ENV=production node_modules/.bin/rollup -c ./build/rollup.config.js", + "patch": "npm version patch", + "minor": "npm version minor", + "major": "npm version major" }, "repository": { "type": "git",