UNPKG

is-fork-pr

Version:

Returns true if CI is building a pull request from a remote fork

101 lines (100 loc) 2.51 kB
{ "name": "is-fork-pr", "description": "Returns true if CI is building a pull request from a remote fork", "version": "2.5.0", "author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", "bugs": "https://github.com/bahmutov/is-fork-pr/issues", "config": { "pre-git": { "commit-msg": "simple", "pre-commit": [ "npm prune", "npm run deps", "npm test", "git add src/*.js", "npm run ban" ], "pre-push": [ "npm run unused-deps", "npm run license", "npm run ban -- --all", "npm run size" ], "post-commit": [], "post-merge": [] } }, "engines": { "node": ">=6" }, "files": [ "src/*.js", "src/bin/*.js", "!src/*-spec.js" ], "bin": { "is-fork-pr": "src/bin/is.js" }, "homepage": "https://github.com/bahmutov/is-fork-pr#readme", "keywords": [ "ci", "fork", "pr", "utility" ], "license": "MIT", "main": "src/", "private": false, "publishConfig": { "registry": "http://registry.npmjs.org/" }, "repository": { "type": "git", "url": "https://github.com/bahmutov/is-fork-pr.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", "prelint": "npm run pretty", "pretest": "npm run lint", "pretty": "prettier-standard 'src/*.js'", "size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";", "test": "npm run unit", "unit": "mocha src/*-spec.js", "unused-deps": "dependency-check --unused --no-dev .", "semantic-release": "semantic-release", "travis-deploy-once": "travis-deploy-once", "start": "node .", "demo": "node ./src/bin/is.js" }, "release": { "analyzeCommits": { "preset": "angular", "releaseRules": [ { "type": "break", "release": "major" } ] } }, "devDependencies": { "@bahmutov/print-env": "1.2.0", "ban-sensitive-files": "1.9.2", "check-more-types": "2.24.0", "dependency-check": "3.4.1", "deps-ok": "1.4.1", "git-issues": "1.3.1", "lazy-ass": "1.6.0", "license-checker": "25.0.1", "mocha": "6.2.1", "mocked-env": "1.3.1", "pre-git": "3.17.1", "prettier-standard": "15.0.1", "semantic-release": "15.13.24", "standard": "14.3.1" } }