Skip to content

Commit f2b452e

Browse files
committed
Use npm-run-all for danger:prepush to run scripts in sequence
1 parent b912d0c commit f2b452e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
"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",
7272
"docs": "yarn run docs:cp_defs; yarn typedoc --ignoreCompilerErrors --mode modules --json docs/js_ref_dsl_docs.json --includeDeclarations source",
7373
"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:local": "node distribution/commands/danger.js local --base main --dangerfile dangerfile.lite.ts",
75+
"danger:prepush": "npm-run-all build:fast test:fixtures danger:local"
7576
},
7677
"repository": {
7778
"type": "git",
@@ -133,6 +134,7 @@
133134
"lint-staged": "^7.3.0",
134135
"madge": "^3.2.0",
135136
"nock": "^10.0.6",
137+
"npm-run-all": "^4.1.5",
136138
"pkg": "^4.4.2",
137139
"prettier": "^2.5.1",
138140
"release-it": "^13.5.2",

0 commit comments

Comments
 (0)