Skip to content

Commit 57d3146

Browse files
committed
npm run tsc:examples
1 parent a10e4f8 commit 57d3146

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- run: npm run build
2727
- run: npm run npm:install:examples
2828
- run: npm run build:examples
29+
- run: npm run tsc:examples
2930
- run: npm run start:examples
3031
- run: npm run test:node-fetch
3132
- run: npm run test:e2e

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- run: npm run build
2020
- run: npm run npm:install:examples
2121
- run: npm run build:examples
22+
- run: npm run tsc:examples
2223
- run: npm run start:examples
2324
- run: npm run test:node-fetch
2425
- run: npm run test:coverage:examples

examples/web/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
"moduleResolution": "node",
77
"esModuleInterop": true,
88

9+
// @jest/types v25.5.0 is incompatible with @types/node v16
10+
// https://github.com/facebook/jest/issues/11640
11+
"skipLibCheck": true,
12+
913
"strict": true,
1014
"noUnusedLocals": true,
1115
"noUnusedParameters": true,

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@
4242
"test:coverage:example:web": "cd examples/web && npm run test:coverage",
4343
"test:coverage:example:node": "cd examples/node && npm run test:coverage",
4444
"tsc": "tsc",
45+
"tsc:examples": "npm run tsc:example:web && npm run tsc:example:node",
46+
"tsc:example:web": "cd examples/web && npm run tsc",
47+
"tsc:example:node": "cd examples/node && npm run tsc",
4548
"format": "prettier --write '**/*'",
4649
"lint": "npm run tsc && eslint . '**/*.{js,ts}'",
4750
"prepare": "husky install",
48-
"precommit": "npm run lint",
51+
"precommit": "npm run lint && npm run tsc:examples",
4952
"prepush": "npm run test",
5053
"prepublishOnly": "npm run build",
5154
"publish:beta": "npm version 0.1.0-beta.1 && npm publish --tag next --dry-run",

0 commit comments

Comments
 (0)