Skip to content

Commit ec4f44d

Browse files
authored
Add type-check job (#466)
1 parent ceacb6f commit ec4f44d

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.circleci/config.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ orbs:
1010
browser-tools: circleci/[email protected]
1111

1212
executors:
13-
default:
13+
node:
1414
docker:
1515
- image: cimg/node:20.10.0
1616
working_directory: ~/react-native-url-polyfill
@@ -144,7 +144,7 @@ commands:
144144

145145
jobs:
146146
checkout:
147-
executor: default
147+
executor: node
148148
steps:
149149
- checkout
150150
- restore-cache-yarn
@@ -161,18 +161,25 @@ jobs:
161161
paths:
162162
- .
163163
lint:
164-
executor: default
164+
executor: node
165165
steps:
166166
- attach-workspace
167167
- run:
168168
name: Lint
169169
command: yarn lint
170+
type-check:
171+
executor: node
172+
steps:
173+
- attach-workspace
174+
- run:
175+
name: Type Check
176+
command: yarn type-check
170177
test-js:
171178
parameters:
172179
react-native-version:
173180
type: string
174181
default: ''
175-
executor: default
182+
executor: node
176183
steps:
177184
- attach-workspace
178185
- when:
@@ -282,6 +289,9 @@ workflows:
282289
- lint:
283290
requires:
284291
- checkout
292+
- type-check:
293+
requires:
294+
- checkout
285295
- test-js:
286296
requires:
287297
- checkout

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"scripts": {
2424
"test": "jest",
2525
"lint": "eslint .",
26+
"type-check": "tsc index.d.ts",
2627
"prepare": "husky install",
2728
"bundle-size": "node scripts/bundle-size"
2829
},

0 commit comments

Comments
 (0)