UNPKG

7.49 kBJSONView Raw
1{
2 "name": "danger",
3 "version": "12.3.0",
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-ci": "distribution/commands/danger-ci.js",
10 "danger-init": "distribution/commands/danger-init.js",
11 "danger-js": "distribution/commands/danger.js",
12 "danger-local": "distribution/commands/danger-local.js",
13 "danger-pr": "distribution/commands/danger-pr.js",
14 "danger-process": "distribution/commands/danger-process.js",
15 "danger-reset-status": "distribution/commands/danger-reset-status.js",
16 "danger-runner": "distribution/commands/danger-runner.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 ],
35 "*.@(ts|tsx)": [
36 "yarn lint:fix",
37 "yarn prettier --write"
38 ]
39 },
40 "pkg": {
41 "scripts": "distribution/**/*.js"
42 },
43 "prettier": {
44 "printWidth": 120,
45 "semi": false,
46 "singleQuote": false,
47 "trailingComma": "es5",
48 "bracketSpacing": true,
49 "proseWrap": "always"
50 },
51 "scripts": {
52 "release": "release-it",
53 "test": "jest",
54 "test:fixtures": "node ./scripts/run-fixtures.js",
55 "test:update-fixtures": "yarn test:fixtures --update",
56 "test:watch": "jest --watch",
57 "type-check": "tsc --noEmit",
58 "lint": "eslint \"source/*.ts\" \"source/**/*.ts\"",
59 "lint:fix": "yarn --silent lint --fix",
60 "prepublishOnly": "yarn build && yarn jest && yarn declarations && yarn build:flow-types && yarn build:pretty-types",
61 "build": "shx rm -rf ./distribution && tsc -p tsconfig.production.json && yarn madge ./distribution --circular --exclude debug.js",
62 "build:fast": "tsc -p tsconfig.production.json",
63 "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",
64 "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",
65 "build:pretty-types": "yarn prettier --write distribution/danger.d.ts; yarn prettier --parser flow distribution/danger.js.flow --write",
66 "build:watch": "tsc -w",
67 "link": "yarn run build && chmod +x distribution/commands/danger.js && yarn link",
68 "package": "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",
69 "package:x64": "yarn run pkg . --output brew-distribution/danger-x64 --targets node18-macos-x64; zip -j brew-distribution/danger-macos-x64.zip brew-distribution/danger-x64; shasum -a 256 brew-distribution/danger-macos-x64.zip",
70 "package:arm64": "yarn run pkg . --output brew-distribution/danger-arm64 --targets node18-macos-arm64; zip -j brew-distribution/danger-macos-arm64.zip brew-distribution/danger-arm64; shasum -a 256 brew-distribution/danger-macos-arm64.zip",
71 "declarations": "ts-node ./scripts/create-danger-dts.ts",
72 "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",
73 "docs": "yarn run docs:cp_defs; yarn typedoc --ignoreCompilerErrors --mode modules --json docs/js_ref_dsl_docs.json --includeDeclarations source",
74 "dts-lint": "yarn run declarations && yarn dtslint types",
75 "danger:prepush": "yarn build:fast; yarn test:fixtures; node distribution/commands/danger.js local --base main --dangerfile dangerfile.lite.ts"
76 },
77 "repository": {
78 "type": "git",
79 "url": "git+https://github.com/danger/danger-js.git"
80 },
81 "packageManager": "yarn@1.22.19",
82 "keywords": [
83 "danger",
84 "ci"
85 ],
86 "author": "Orta Therox",
87 "license": "MIT",
88 "bugs": {
89 "url": "https://github.com/danger/danger-js/issues"
90 },
91 "homepage": "https://github.com/danger/danger-js#readme",
92 "engines": {
93 "node": ">=18"
94 },
95 "devDependencies": {
96 "@babel/cli": "7.16.7",
97 "@babel/core": "7.16.7",
98 "@babel/plugin-transform-flow-strip-types": "7.16.7",
99 "@babel/plugin-transform-typescript": "7.16.7",
100 "@babel/preset-env": "7.16.7",
101 "@babel/traverse": "7.16.7",
102 "@octokit/openapi-types": "^11.2.0",
103 "@types/async-retry": "^1.4.1",
104 "@types/debug": "0.0.30",
105 "@types/get-stdin": "^5.0.1",
106 "@types/jest": "^28.0.0",
107 "@types/json5": "^2.2.0",
108 "@types/jsonpointer": "^4.0.0",
109 "@types/jsonwebtoken": "^9.0.0",
110 "@types/lodash.includes": "^4.3.4",
111 "@types/lodash.mapvalues": "^4.6.6",
112 "@types/lodash.memoize": "^4.1.3",
113 "@types/micromatch": "^3.1.0",
114 "@types/node": "18.19.18",
115 "@types/node-fetch": "^2.5.12",
116 "@types/p-limit": "^2.0.0",
117 "@types/prettier": "^1.16.1",
118 "@types/readline-sync": "^1.4.3",
119 "@types/voca": "^1.4.0",
120 "@typescript-eslint/eslint-plugin": "^5.10.1",
121 "@typescript-eslint/parser": "^5.10.1",
122 "danger-plugin-jest": "^1.0.1",
123 "danger-plugin-yarn": "^1.3.1",
124 "date-fns": "^1.29.0",
125 "eslint": "^8.8.0",
126 "eslint-config-prettier": "^8.3.0",
127 "eslint-plugin-jest": "^26.0.0",
128 "eslint-plugin-jsdoc": "^48.1.0",
129 "flow-bin": "^0.77.0",
130 "husky": "^1.0.1",
131 "jest": "^28.0.0",
132 "jest-json-reporter": "^1.2.2",
133 "lint-staged": "^12.3.7",
134 "madge": "^6.0.1",
135 "nock": "^13.2.0",
136 "pkg": "^5.8.1",
137 "prettier": "^2.5.1",
138 "release-it": "^13.5.2",
139 "shx": "^0.3.4",
140 "ts-jest": "^28.0.0",
141 "ts-node": "^10.9.2",
142 "typedoc": "0.9.0",
143 "typescript": "^4.5.5",
144 "typescript-json-schema": "^0.53.0"
145 },
146 "dependencies": {
147 "@gitbeaker/rest": "^38.0.0",
148 "@octokit/rest": "^18.12.0",
149 "async-retry": "1.2.3",
150 "chalk": "^2.3.0",
151 "commander": "^2.18.0",
152 "core-js": "^3.8.2",
153 "debug": "^4.1.1",
154 "fast-json-patch": "^3.0.0-1",
155 "get-stdin": "^6.0.0",
156 "http-proxy-agent": "^5.0.0",
157 "https-proxy-agent": "^5.0.1",
158 "hyperlinker": "^1.0.0",
159 "json5": "^2.2.3",
160 "jsonpointer": "^5.0.0",
161 "jsonwebtoken": "^9.0.0",
162 "lodash.find": "^4.6.0",
163 "lodash.includes": "^4.3.0",
164 "lodash.isobject": "^3.0.2",
165 "lodash.keys": "^4.0.8",
166 "lodash.mapvalues": "^4.6.0",
167 "lodash.memoize": "^4.1.2",
168 "memfs-or-file-map-to-github-branch": "^1.2.1",
169 "micromatch": "^4.0.4",
170 "node-cleanup": "^2.1.2",
171 "node-fetch": "^2.6.7",
172 "override-require": "^1.1.1",
173 "p-limit": "^2.1.0",
174 "parse-diff": "^0.7.0",
175 "parse-git-config": "^2.0.3",
176 "parse-github-url": "^1.0.2",
177 "parse-link-header": "^2.0.0",
178 "pinpoint": "^1.1.0",
179 "prettyjson": "^1.2.1",
180 "readline-sync": "^1.4.9",
181 "regenerator-runtime": "^0.13.9",
182 "require-from-string": "^2.0.2",
183 "supports-hyperlinks": "^1.0.1"
184 },
185 "husky": {
186 "hooks": {
187 "pre-commit": "lint-staged",
188 "pre-push": "yarn build; yarn danger:prepush"
189 }
190 }
191}