Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Commit 98af1a9

Browse files
committed
Add typecheck script
* Add a `typecheck` script to the monorepo and each package; given that `tslint` used to do this, and `eslint` doesn't, it needs to be run separately
1 parent 86f1843 commit 98af1a9

File tree

9 files changed

+10
-2
lines changed

9 files changed

+10
-2
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ node_js:
1313
- '10'
1414
script:
1515
- yarn lint
16+
- yarn typecheck
1617
- yarn test:api
1718
- yarn test --silent --coverage --coverageReporters=text-lcov | coveralls ; test ${PIPESTATUS[0]} -eq 0
1819
before_deploy:

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ yarn outdated
7575
git checkout -b <INSERT_YOUR_BRANCH_NAME>
7676
```
7777

78-
5. Run tests, linting, and build
78+
5. Run tests, type checking, linting, and build
7979

8080
```bash
81-
yarn test; yarn lint; yarn build
81+
yarn test; yarn typecheck; yarn lint; yarn build
8282
```
8383

8484
6. Push the branch to your fork of the repo

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
},
2424
"scripts": {
2525
"build": "lerna exec yarn build --stream",
26+
"typecheck": "lerna exec yarn typecheck --stream",
2627
"lint": "eslint --fix 'packages/*/**/*.{ts,tsx}'",
2728
"postinstall": "yarn build",
2829
"test": "jest",

packages/abi/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"scripts": {
1818
"docs": "typedoc",
1919
"prebuild": "rimraf lib",
20+
"typecheck": "tsc --noEmit",
2021
"build": "tsc",
2122
"test": "jest"
2223
},

packages/api/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
},
1919
"scripts": {
2020
"prebuild": "rimraf lib",
21+
"typecheck": "tsc --noEmit",
2122
"build": "tsc",
2223
"test": "cross-env NODE_ENV=test mocha -r ts-node/register 'src/*.spec.js' 'src/**/*.spec.js'"
2324
},

packages/contracts/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"scripts": {
1919
"docs": "typedoc && rimraf docs/README.md",
2020
"prebuild": "rimraf lib",
21+
"typecheck": "tsc --noEmit",
2122
"build": "tsc",
2223
"test": "jest"
2324
},

packages/electron/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"scripts": {
1818
"docs": "typedoc",
1919
"prebuild": "rimraf lib",
20+
"typecheck": "tsc --noEmit",
2021
"build": "tsc",
2122
"test": "jest"
2223
},

packages/light.js-react/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"scripts": {
2424
"prebuild": "rimraf lib",
25+
"typecheck": "tsc --noEmit",
2526
"build": "tsc",
2627
"test": "jest"
2728
},

packages/light.js/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"scripts": {
2323
"docs": "typedoc",
2424
"prebuild": "rimraf lib",
25+
"typecheck": "tsc --noEmit",
2526
"build": "tsc",
2627
"test": "jest --runInBand"
2728
},

0 commit comments

Comments
 (0)