Skip to content

Commit c630686

Browse files
committed
Be consistent and use set -e in all scripts
1 parent 5d1e2a3 commit c630686

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,19 @@
5858
"test:watch": "jest --watch",
5959
"lint": "eslint \"source/*.ts\" \"source/**/*.ts\"",
6060
"lint:fix": "yarn --silent lint --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",
61+
"prepublishOnly": "set -e; yarn build; yarn jest; yarn declarations; yarn build:flow-types; yarn build:pretty-types",
62+
"build": "set -e; shx rm -rf ./distribution; tsc -p tsconfig.production.json; madge ./distribution --circular",
6363
"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 [email protected] source/_danger.d.ts -o distribution/danger.js.flow && node scripts/update_flow_types.js",
64+
"build:flow-types": "set -e; 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",
6565
"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",
6666
"build:pretty-types": "set -e; yarn prettier --write distribution/danger.d.ts; yarn prettier --parser flow distribution/danger.js.flow --write",
6767
"build:watch": "tsc -w",
68-
"link": "yarn run build && chmod +x distribution/commands/danger.js && yarn link",
68+
"link": "set -e; yarn run build; chmod +x distribution/commands/danger.js; yarn link",
6969
"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",
7070
"declarations": "ts-node ./scripts/create-danger-dts.ts",
7171
"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",
7272
"docs": "set -e; 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",
73+
"dts-lint": "set -e; yarn run declarations; yarn dtslint types",
7474
"danger:prepush": "set -e; yarn build:fast; yarn test:fixtures; node distribution/commands/danger.js local --base main --dangerfile dangerfile.lite.ts"
7575
},
7676
"repository": {

0 commit comments

Comments
 (0)