Skip to content

Commit

Permalink
fix: Fix invocation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenh committed Jul 10, 2023
1 parent 7ad4c79 commit f4e26bd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"proto2pbjs": "docker compose run --rm protoc pbjs.sh",
"bin2ts": "docker compose run --rm protoc codegen.sh",
"test": "yarn jest -c jest.config.js --maxWorkers=2",
"tsc:check": "./tsc-check.sh tsconfig.json integration/tsconfig.json integration/tsconfig.proto.json protos/tsconfig.json",
"tsc:check": "./tsc-check.sh tsconfig.json tests/tsconfig.json integration/tsconfig.json integration/tsconfig.proto.json protos/tsconfig.json",
"format": "prettier --write {src,tests}/**/*.ts integration/*.ts",
"format:check": "prettier --list-different {src,tests}/**/*.ts",
"setup:docker": "docker compose build",
Expand Down
12 changes: 12 additions & 0 deletions tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "es2018",
"lib": ["es2018"],
"module": "commonjs",
"strict": true,
"outDir": "build",
"skipLibCheck": true,
"experimentalDecorators": true
},
"include": ["./*.ts"],
}
2 changes: 1 addition & 1 deletion tsc-check.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
for path in "$@"; do
echo Checking ${path}
yarn tsc --noEmit -p ${path}
yarn tsc --noEmit -p ${path} || exit 1
done
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"skipLibCheck": true,
"experimentalDecorators": true
},
"include": ["src", "integration/codegen.ts", "tests"],
"include": ["src"]
}

0 comments on commit f4e26bd

Please sign in to comment.