Commit 0de804c
committed
fix(appkit): forward execArgv so the detached typegen worker runs under tsx
The non-blocking CLI spawned its background worker as `node <argv[1]>` without
the parent's node/loader flags. Run from source via tsx, argv[1] is a .ts file
that plain node can't parse, so the worker died silently (detached + stdio
ignore) and the degraded types never refreshed -- the queries appeared to never
run. Forward process.execArgv, which carries tsx's --require/--import loader
flags (and is empty for the built bin, so production is unaffected), so the
worker runs under the same runtime as the parent.
Co-authored-by: Isaac
Signed-off-by: Atila Fassina <atila@fassina.eu>1 parent b698c43 commit 0de804c
2 files changed
Lines changed: 16 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
151 | 158 | | |
152 | 159 | | |
153 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
162 | 169 | | |
163 | 170 | | |
164 | 171 | | |
| |||
0 commit comments