You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
oxnode watch --tsconfig is overridden by TS_NODE_PROJECT from --env-file #876
Reproduced on main (4759ced, v1.0.0) with Node.js 22.18 on macOS arm64. Found while embedding the watcher in Vite+ for vpx watch (voidzero-dev/vite-plus#3164).
Cause
tsconfigEnv() passes --tsconfig as OXC_TSCONFIG_PATH and removes TS_NODE_PROJECT from the child's environment. Node.js then loads the env file, which adds TS_NODE_PROJECT back, and the binding reads TS_NODE_PROJECT before OXC_TSCONFIG_PATH.
Possible fix
Set TS_NODE_PROJECT to the same path instead of removing it. Node.js keeps a variable the environment already has (FOO=env node --env-file=x.env keeps env when the file sets FOO=file), so the env file can no longer override the choice.
Activity
feat(vpx): run `vpx --watch` on oxc-node's watcher (#3164)