UNPKG

6.72 kBJSONView Raw
1{
2 "name": "danger",
3 "version": "10.4.1",
4 "description": "Unit tests for Team Culture",
5 "main": "distribution/danger.js",
6 "typings": "distribution/danger.d.ts",
7 "bin": {
8 "danger": "distribution/commands/danger.js",
9 "danger-js": "distribution/commands/danger.js",
10 "danger-pr": "distribution/commands/danger-pr.js",
11 "danger-runner": "distribution/commands/danger-runner.js",
12 "danger-process": "distribution/commands/danger-process.js",
13 "danger-ci": "distribution/commands/danger-ci.js",
14 "danger-init": "distribution/commands/danger-init.js",
15 "danger-local": "distribution/commands/danger-local.js",
16 "danger-reset-status": "distribution/commands/danger-reset-status.js"
17 },
18 "jest": {
19 "preset": "ts-jest",
20 "testResultsProcessor": "jest-json-reporter",
21 "testPathIgnorePatterns": [
22 "/node_modules/",
23 "/distribution/",
24 "/types/"
25 ],
26 "watchPathIgnorePatterns": [
27 "<rootDir>/test-results.json"
28 ],
29 "cacheDirectory": ".jest/cache"
30 },
31 "lint-staged": {
32 "*.@(json|md)": [
33 "yarn prettier --write",
34 "git add"
35 ],
36 "*.@(ts|tsx)": [
37 "tslint --fix",
38 "yarn prettier --write",
39 "git add"
40 ]
41 },
42 "pkg": {
43 "scripts": "distribution/**/*.js"
44 },
45 "prettier": {
46 "printWidth": 120,
47 "semi": false,
48 "singleQuote": false,
49 "trailingComma": "es5",
50 "bracketSpacing": true,
51 "proseWrap": "always"
52 },
53 "scripts": {
54 "release": "release-it",
55 "test": "jest",
56 "test:fixtures": "node ./scripts/run-fixtures.js",
57 "test:update-fixtures": "yarn test:fixtures --update",
58 "test:watch": "jest --watch",
59 "lint": "tslint \"source/**/*.ts\"",
60 "lint:fix": "tslint \"source/**/*.ts\" --fix",
61 "prepublishOnly": "yarn build && yarn jest && yarn declarations && yarn build:flow-types && yarn build:pretty-types",
62 "build": "shx rm -rf ./distribution && tsc -p tsconfig.production.json && madge ./distribution --circular",
63 "build:fast": "tsc -p tsconfig.production.json",
64 "build:flow-types": "cp source/danger.d.ts source/_danger.d.ts && sed -ie 's/api: GitHub/api: any/g' source/_danger.d.ts && npx flowgen@1.3.0 source/_danger.d.ts -o distribution/danger.js.flow && node scripts/update_flow_types.js",
65 "build:schemas": "typescript-json-schema tsconfig.json DangerJSON > source/danger-incoming-process-schema.json; typescript-json-schema tsconfig.json DangerResults > source/danger-outgoing-process-schema.json; yarn prettier --write source/danger-outgoing-process-schema.json source/danger-incoming-process-schema.json",
66 "build:pretty-types": "yarn prettier --write distribution/danger.d.ts; yarn prettier --parser flow distribution/danger.js.flow --write",
67 "build:watch": "tsc -w",
68 "link": "yarn run build && chmod +x distribution/commands/danger.js && yarn link",
69 "package": "yarn run build; yarn run pkg . --output brew-distribution/danger; zip -j brew-distribution/danger-macos.zip brew-distribution/danger; shasum -a 256 brew-distribution/danger-macos.zip",
70 "declarations": "ts-node ./scripts/create-danger-dts.ts",
71 "docs:cp_defs": "mkdir docs/docs_generate; cp source/danger.d.ts docs/docs_generate; cp node_modules/@octokit/rest/index.d.ts docs/docs_generate/github.d.ts",
72 "docs": "yarn run docs:cp_defs; yarn typedoc --ignoreCompilerErrors --mode modules --json docs/js_ref_dsl_docs.json --includeDeclarations source",
73 "dts-lint": "yarn run declarations && yarn dtslint types",
74 "danger:prepush": "yarn build:fast; yarn test:fixtures; node distribution/commands/danger.js local --dangerfile dangerfile.lite.ts"
75 },
76 "repository": {
77 "type": "git",
78 "url": "git+https://github.com/danger/danger-js.git"
79 },
80 "keywords": [
81 "danger",
82 "ci"
83 ],
84 "author": "Orta Therox",
85 "license": "MIT",
86 "bugs": {
87 "url": "https://github.com/danger/danger-js/issues"
88 },
89 "homepage": "https://github.com/danger/danger-js#readme",
90 "devDependencies": {
91 "@babel/cli": "7.1.2",
92 "@babel/core": "7.1.2",
93 "@babel/plugin-transform-flow-strip-types": "7.0.0",
94 "@babel/plugin-transform-typescript": "7.1.0",
95 "@babel/preset-env": "7.1.0",
96 "@babel/traverse": "7.1.0",
97 "@types/async-retry": "^1.4.1",
98 "@types/debug": "0.0.30",
99 "@types/get-stdin": "^5.0.1",
100 "@types/http-proxy-agent": "^2.0.1",
101 "@types/jest": "^24.0.11",
102 "@types/json5": "^0.0.30",
103 "@types/jsonwebtoken": "^7.2.8",
104 "@types/lodash.includes": "^4.3.4",
105 "@types/lodash.mapvalues": "^4.6.6",
106 "@types/lodash.memoize": "^4.1.3",
107 "@types/micromatch": "^3.1.0",
108 "@types/nock": "^10.0.3",
109 "@types/node": "^10.11.3",
110 "@types/node-fetch": "^2.1.2",
111 "@types/p-limit": "^2.0.0",
112 "@types/prettier": "^1.16.1",
113 "@types/readline-sync": "^1.4.3",
114 "@types/voca": "^1.4.0",
115 "danger-plugin-jest": "^1.0.1",
116 "danger-plugin-yarn": "^1.3.1",
117 "date-fns": "^1.29.0",
118 "flow-bin": "^0.77.0",
119 "husky": "^1.0.1",
120 "jest": "^24.0.0",
121 "jest-json-reporter": "^1.2.2",
122 "lint-staged": "^7.3.0",
123 "madge": "^3.2.0",
124 "nock": "^10.0.6",
125 "pkg": "^4.4.2",
126 "prettier": "^1.14.2",
127 "release-it": "^13.5.2",
128 "shx": "^0.3.2",
129 "ts-jest": "^24.0.2",
130 "ts-node": "^8.0.2",
131 "tslint": "^5.11.0",
132 "tslint-config-prettier": "^1.15.0",
133 "typedoc": "0.9.0",
134 "typescript": "^3.1.1",
135 "typescript-json-schema": "^0.32.0"
136 },
137 "dependencies": {
138 "@babel/polyfill": "^7.2.5",
139 "@octokit/rest": "^16.43.1",
140 "async-retry": "1.2.3",
141 "chalk": "^2.3.0",
142 "commander": "^2.18.0",
143 "debug": "^4.1.1",
144 "fast-json-patch": "^3.0.0-1",
145 "get-stdin": "^6.0.0",
146 "gitlab": "^10.0.1",
147 "http-proxy-agent": "^2.1.0",
148 "https-proxy-agent": "^2.2.1",
149 "hyperlinker": "^1.0.0",
150 "json5": "^2.1.0",
151 "jsonpointer": "^4.0.1",
152 "jsonwebtoken": "^8.4.0",
153 "lodash.find": "^4.6.0",
154 "lodash.includes": "^4.3.0",
155 "lodash.isobject": "^3.0.2",
156 "lodash.keys": "^4.0.8",
157 "lodash.mapvalues": "^4.6.0",
158 "lodash.memoize": "^4.1.2",
159 "memfs-or-file-map-to-github-branch": "^1.1.0",
160 "micromatch": "^3.1.10",
161 "node-cleanup": "^2.1.2",
162 "node-fetch": "2.6.1",
163 "override-require": "^1.1.1",
164 "p-limit": "^2.1.0",
165 "parse-diff": "^0.7.0",
166 "parse-git-config": "^2.0.3",
167 "parse-github-url": "^1.0.2",
168 "parse-link-header": "^1.0.1",
169 "pinpoint": "^1.1.0",
170 "prettyjson": "^1.2.1",
171 "readline-sync": "^1.4.9",
172 "require-from-string": "^2.0.2",
173 "supports-hyperlinks": "^1.0.1"
174 },
175 "optionalDependencies": {},
176 "husky": {
177 "hooks": {
178 "pre-commit": "lint-staged",
179 "pre-push": "yarn build; yarn danger:prepush"
180 }
181 }
182}