Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8e2a9e9

Browse files
committed
Detect tsc errors in the future
1 parent d3dbc2b commit 8e2a9e9

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

‎.husky/pre-commit‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
# Lint
55
npm run lint:check;
66

7-
# Test
8-
npm test;
7+
# Check typescript
8+
npm run validate-types:strict
99

1010
# Build
1111
npm run build
1212

13+
# Test
14+
npm test;
15+

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@
7171
"cover": "nyc --check-coverage --lines 30 npm run test:only ",
7272
"lint:check": "eslint .",
7373
"lint": "eslint --fix .",
74-
"validate-types:strict": "tsc && tsc --project tsconfig.validate.json",
75-
"build": "webpack --mode production && tsc",
74+
"validate-types:strict": "npm run generate-types && tsc --project tsconfig.validate.json",
75+
"build": "webpack --mode production && npm run generate-types",
7676
"coveralls-after": "nyc --reporter=lcov mocha --require @babel/register --require @babel/preset-env",
7777
"npm:publish": "npm publish --access public",
7878
"test-single": "mocha 1ドル",
7979
"woql-test": "mocha test/woqlTripleBuilder.spec.js test/woql.spec.js test/woqlTripleBuilder01.spec.js test/woqlExtra.spec.js",
8080
"git-tag": "git tag $npm_package_version",
8181
"prepare": "husky install",
82-
"generate-types": "tsc"
82+
"generate-types": "tsc && node scripts/fix-eval-export.js"
8383
},
8484
"repository": {
8585
"type": "git",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /