Skip to content

Commit 962aae0

Browse files
committed
In CI, check for TS errors in built server code (of example app) by running npx tsc
Fixes #2384
1 parent 4d52bdf commit 962aae0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

waspc/examples/todoApp/ensure_app_compiles_and_builds.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ cd "$dir"
1414
cabal run wasp-cli build
1515

1616
echo "Ensure the user's code has no TypeScript errors (shown in the IDE)."
17-
npx tsc --noEmit --skipLibCheck
17+
npx tsc --noEmit --skipLibCheck --project .
1818

1919
# Make sure they build.
2020
echo "Ensure client builds"
2121
cd .wasp/build/web-app
2222
npm run build
23+
npx tsc --noEmit --skipLibCheck --project ./tsconfig.vite.json
24+
npx tsc --noEmit --skipLibCheck --project ./tsconfig.app.json
2325

2426
echo "Ensure server bundles"
2527
cd ../server
2628
npm run bundle
29+
npx tsc --noEmit --skipLibCheck --project ./tsconfig.json

waspc/examples/todoApp/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)