Commit 851d5ee
committed
Fix check-typescript script to use workspace type-check scripts
The check-typescript script was using invalid nps syntax:
nps "build --noEmit"
This doesn't work because:
1. There's no 'build' script in package-scripts.yml (only build.prepack)
2. nps doesn't support passing arguments to scripts this way
Fixed by running the type-check script from each workspace package:
- yarn workspace react-on-rails run type-check
- yarn workspace react-on-rails-pro run type-check
- yarn workspace react-on-rails-pro-node-renderer run type-check
All three workspace packages already have type-check scripts that run
tsc with --noEmit and --noErrorTruncation flags.
Tested locally and passes successfully.1 parent b9e887f commit 851d5ee
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments