Skip to content

Commit a38d716

Browse files
committed
ci: add typecheck script
1 parent 4b3ba79 commit a38d716

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
script:
1111
- npm run prettier-check
1212
- npm run tslint
13+
- npm run typecheck
1314
- npm run build
1415
- npm run cover
1516
- nyc report --reporter json

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"prettier-check": "npm run prettier -- --write=false",
6767
"prettier": "prettier '**/*.{js?(on),ts?(x),scss,yml,md}' --write --list-different",
6868
"tslint": "tslint -c tslint.json -p tsconfig.json './src/*.ts?(x)' './*.ts?(x)'",
69+
"typecheck": "tsc -p .",
6970
"test": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha --require ts-node/register --require source-map-support/register --opts mocha.opts",
7071
"cover": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --require ts-node/register --require source-map-support/register --all mocha --opts mocha.opts --timeout 10000",
7172
"build": "parcel build --no-minify --out-file sourcegraph-git-extras.js src/extension.ts",

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"inlineSourceMap": true,
1010
"declaration": false,
1111
"outDir": "dist",
12+
"noEmit": true,
1213
"rootDir": "src",
1314
"esModuleInterop": true,
1415
"allowSyntheticDefaultImports": true

0 commit comments

Comments
 (0)