Skip to content

Commit aa97a55

Browse files
authored
ci: refactor types job (#4318)
1 parent f039280 commit aa97a55

File tree

3 files changed

+4
-32
lines changed

3 files changed

+4
-32
lines changed

.github/workflows/nodejs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ jobs:
4343
- name: Lint
4444
run: npm run lint
4545

46+
- name: Build types
47+
run: npm run build:types
48+
4649
- name: Check types
47-
run: npm run check:types
50+
run: if [ -n "$(git status types --porcelain)" ]; then echo "Missing types. Update types by running 'npm run build:types'"; exit 1; else echo "All types are valid"; fi
4851

4952
- name: Security audit
5053
run: npm audit --production

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"build:client": "rimraf ./client/* && babel client-src/ --out-dir client/ --ignore \"client-src/webpack.config.js\" --ignore \"client-src/modules\" && webpack --config client-src/webpack.config.js",
2727
"build:types": "rimraf ./types/* && tsc --declaration --emitDeclarationOnly --outDir types && node ./scripts/extend-webpack-types.js && prettier \"types/**/*.ts\" --write && prettier \"types/**/*.ts\" --write",
2828
"build": "npm-run-all -p \"build:**\"",
29-
"check:types": "node ./scripts/check-types.js",
3029
"test:only": "jest",
3130
"test:coverage": "npm run test:only -- --coverage",
3231
"test:watch": "npm run test:coverage --watch",

scripts/check-types.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)