Skip to content

Commit f4e26bd

Browse files
committed
fix: Fix invocation error.
1 parent 7ad4c79 commit f4e26bd

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"proto2pbjs": "docker compose run --rm protoc pbjs.sh",
1717
"bin2ts": "docker compose run --rm protoc codegen.sh",
1818
"test": "yarn jest -c jest.config.js --maxWorkers=2",
19-
"tsc:check": "./tsc-check.sh tsconfig.json integration/tsconfig.json integration/tsconfig.proto.json protos/tsconfig.json",
19+
"tsc:check": "./tsc-check.sh tsconfig.json tests/tsconfig.json integration/tsconfig.json integration/tsconfig.proto.json protos/tsconfig.json",
2020
"format": "prettier --write {src,tests}/**/*.ts integration/*.ts",
2121
"format:check": "prettier --list-different {src,tests}/**/*.ts",
2222
"setup:docker": "docker compose build",

tests/tsconfig.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es2018",
4+
"lib": ["es2018"],
5+
"module": "commonjs",
6+
"strict": true,
7+
"outDir": "build",
8+
"skipLibCheck": true,
9+
"experimentalDecorators": true
10+
},
11+
"include": ["./*.ts"],
12+
}

tsc-check.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
22
for path in "$@"; do
33
echo Checking ${path}
4-
yarn tsc --noEmit -p ${path}
4+
yarn tsc --noEmit -p ${path} || exit 1
55
done

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"skipLibCheck": true,
99
"experimentalDecorators": true
1010
},
11-
"include": ["src", "integration/codegen.ts", "tests"],
11+
"include": ["src"]
1212
}

0 commit comments

Comments
 (0)