|
62 | 62 | "build": "shx rm -rf ./distribution && tsc -p tsconfig.production.json && madge ./distribution --circular",
|
63 | 63 | "build:fast": "tsc -p tsconfig.production.json",
|
64 | 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 [email protected] 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", |
| 65 | + "build:schemas": "set -e; 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": "set -e; yarn prettier --write distribution/danger.d.ts; yarn prettier --parser flow distribution/danger.js.flow --write", |
67 | 67 | "build:watch": "tsc -w",
|
68 | 68 | "link": "yarn run build && chmod +x distribution/commands/danger.js && yarn link",
|
69 |
| - "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": "set -e; 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 | 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", |
| 71 | + "docs:cp_defs": "set -e; 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": "set -e; yarn run docs:cp_defs; yarn typedoc --ignoreCompilerErrors --mode modules --json docs/js_ref_dsl_docs.json --includeDeclarations source", |
73 | 73 | "dts-lint": "yarn run declarations && yarn dtslint types",
|
74 |
| - "danger:prepush": "yarn build:fast; yarn test:fixtures; node distribution/commands/danger.js local --base main --dangerfile dangerfile.lite.ts" |
| 74 | + "danger:prepush": "set -e; yarn build:fast; yarn test:fixtures; node distribution/commands/danger.js local --base main --dangerfile dangerfile.lite.ts" |
75 | 75 | },
|
76 | 76 | "repository": {
|
77 | 77 | "type": "git",
|
|
185 | 185 | "husky": {
|
186 | 186 | "hooks": {
|
187 | 187 | "pre-commit": "lint-staged",
|
188 |
| - "pre-push": "yarn build; yarn danger:prepush" |
| 188 | + "pre-push": "set -e; yarn build; yarn danger:prepush" |
189 | 189 | }
|
190 | 190 | }
|
191 | 191 | }
|
0 commit comments