commit-message-install
Advanced tools
Comparing version 1.11.0 to 2.0.0
100
package.json
@@ -1,1 +0,99 @@ | ||
{"name":"commit-message-install","description":"NPM install a package by name taken from the last commit message","version":"1.11.0","author":"Gleb Bahmutov <gleb.bahmutov@gmail.com>","bugs":"https://github.com/cypress-io/commit-message-install/issues","bin":{"commit-message-install":"bin/commit-message-install.js","cmi":"bin/commit-message-install.js","run-if":"bin/commit-message-run.js"},"config":{"pre-git":{"commit-msg":"simple","pre-commit":["npm prune","npm run deps","npm test","git add src/*.js bin/*.js","npm run ban"],"pre-push":["npm run secure","npm run license","npm run ban -- --all","npm run size"],"post-commit":[],"post-merge":[]}},"engines":{"node":">=6"},"files":["bin","src/*.js","!src/*-spec.js"],"homepage":"https://github.com/cypress-io/commit-message-install#readme","keywords":["ci","commit","git","install","npm","utility"],"license":"MIT","main":"src/","publishConfig":{"registry":"http://registry.npmjs.org/"},"repository":{"type":"git","url":"https://github.com/cypress-io/commit-message-install.git"},"scripts":{"ban":"ban","deps":"deps-ok && dependency-check --no-dev .","issues":"git-issues","license":"license-checker --production --onlyunknown --csv","lint":"standard --verbose --fix src/*.js bin/*.js","prelint":"npm run pretty","pretest":"npm run lint","pretty":"echo ⚠️ disable prettier-standard 'src/*.js' 'bin/*.js'","secure":"echo disabled nsp check","size":"t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";","test":"npm run unit","unit":"mocha src/*-spec.js","semantic-release":"semantic-release pre && npm publish && semantic-release post","demo":"node bin/commit-message-run.js -f test/run-if.txt echo Foo is \\$FOO"},"release":{"verifyConditions":{"path":"condition-node-version","node":"8"},"analyzeCommits":"simple-commit-message","generateNotes":"github-post-release","verifyRelease":{"path":"dont-crack","test-against":[]}},"devDependencies":{"ban-sensitive-files":"1.9.0","common-tags":"1.5.1","condition-node-version":"1.3.0","dependency-check":"2.9.1","deps-ok":"1.4.1","dont-crack":"1.2.1","git-issues":"1.3.1","github-post-release":"1.13.1","if-node-version":"1.1.1","license-checker":"15.0.0","mocha":"4.0.1","nsp":"2.8.1","pre-git":"3.15.3","prettier-standard":"7.0.3","schema-shot":"1.9.0","semantic-release":"8.2.0","simple-commit-message":"3.3.1","snap-shot-it":"6.3.2","standard":"12.0.1","stub-spawn-once":"2.3.0"},"dependencies":{"chalk":"2.4.2","check-more-types":"2.24.0","debug":"4.1.1","execa":"0.8.0","lazy-ass":"1.6.0","minimist":"1.2.0"}} | ||
{ | ||
"name": "commit-message-install", | ||
"description": "NPM install a package by name taken from the last commit message", | ||
"version": "2.0.0", | ||
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", | ||
"bugs": "https://github.com/cypress-io/commit-message-install/issues", | ||
"bin": { | ||
"commit-message-install": "bin/commit-message-install.js", | ||
"cmi": "bin/commit-message-install.js", | ||
"run-if": "bin/commit-message-run.js" | ||
}, | ||
"config": { | ||
"pre-git": { | ||
"commit-msg": "simple", | ||
"pre-commit": [ | ||
"npm prune", | ||
"npm run deps", | ||
"npm test", | ||
"git add src/*.js bin/*.js", | ||
"npm run ban" | ||
], | ||
"pre-push": [ | ||
"npm run secure", | ||
"npm run license", | ||
"npm run ban -- --all", | ||
"npm run size" | ||
], | ||
"post-commit": [], | ||
"post-merge": [] | ||
} | ||
}, | ||
"engines": { | ||
"node": ">=6" | ||
}, | ||
"files": [ | ||
"bin", | ||
"src/*.js", | ||
"!src/*-spec.js" | ||
], | ||
"homepage": "https://github.com/cypress-io/commit-message-install#readme", | ||
"keywords": [ | ||
"ci", | ||
"commit", | ||
"git", | ||
"install", | ||
"npm", | ||
"utility" | ||
], | ||
"license": "MIT", | ||
"main": "src/", | ||
"publishConfig": { | ||
"registry": "http://registry.npmjs.org/" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/cypress-io/commit-message-install.git" | ||
}, | ||
"scripts": { | ||
"ban": "ban", | ||
"deps": "deps-ok && dependency-check --no-dev .", | ||
"issues": "git-issues", | ||
"license": "license-checker --production --onlyunknown --csv", | ||
"lint": "standard --verbose --fix src/*.js bin/*.js", | ||
"prelint": "npm run pretty", | ||
"pretest": "npm run lint", | ||
"pretty": "echo ⚠️ disable prettier-standard 'src/*.js' 'bin/*.js'", | ||
"secure": "echo disabled nsp check", | ||
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";", | ||
"test": "npm run unit", | ||
"unit": "mocha src/*-spec.js", | ||
"semantic-release": "semantic-release", | ||
"demo": "node bin/commit-message-run.js -f test/run-if.txt echo Foo is \\$FOO" | ||
}, | ||
"devDependencies": { | ||
"ban-sensitive-files": "1.9.0", | ||
"common-tags": "1.5.1", | ||
"dependency-check": "2.9.1", | ||
"deps-ok": "1.4.1", | ||
"git-issues": "1.3.1", | ||
"if-node-version": "1.1.1", | ||
"license-checker": "15.0.0", | ||
"mocha": "4.0.1", | ||
"nsp": "2.8.1", | ||
"prettier-standard": "7.0.3", | ||
"schema-shot": "1.9.0", | ||
"semantic-release": "15.13.3", | ||
"snap-shot-it": "6.3.2", | ||
"standard": "12.0.1", | ||
"stub-spawn-once": "2.3.0" | ||
}, | ||
"dependencies": { | ||
"chalk": "2.4.2", | ||
"check-more-types": "2.24.0", | ||
"debug": "4.1.1", | ||
"execa": "0.8.0", | ||
"lazy-ass": "1.6.0", | ||
"minimist": "1.2.0" | ||
} | ||
} |
@@ -46,2 +46,3 @@ # commit-message-install | ||
"platform": "*", | ||
"architecture": "x64", | ||
"packages": "debug,chalk" | ||
@@ -54,4 +55,3 @@ } | ||
**note** `platform` can be `*` or specific one like `darwin` (from Node `os.platform()`) or a | ||
list of several platforms like `darwin,linux` | ||
**note** `platform` can be `*` or specific one like `darwin` (from Node `os.platform()`) or a list of several platforms like `darwin,linux`. `architecture` is usually 64 bit `x64` as returned by `os.arch()`. | ||
@@ -58,0 +58,0 @@ ### Specific commit |
@@ -14,3 +14,11 @@ const la = require('lazy-ass') | ||
// forms JSON object that can be parsed later | ||
function getInstallJson (packages, env, platform, branch, commit, status) { | ||
function getInstallJson ({ | ||
packages, | ||
env, | ||
platform, | ||
arch, | ||
branch, | ||
commit, | ||
status | ||
}) { | ||
if (!env) { | ||
@@ -22,2 +30,6 @@ env = {} | ||
} | ||
if (!arch) { | ||
arch = os.arch() | ||
} | ||
la( | ||
@@ -24,0 +36,0 @@ is.unemptyString(packages) || is.strings(packages), |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19262
15
378
1