Closed
Description
we use
tsc --build path/to/tsconfig.json
and with tsgo I get:
error TS6369: Option '--build' must be the first command line argument.
If I use tsgo -p path/to/tsconfig.json
it works.
I am using yarn workspaces to run the command, but I logged argv:
// tsgo.js
console.log('argv:')
console.log(process.argv.slice(2))
execFileSync(exe, process.argv.slice(2), { stdio: "inherit" });
-->
[ '--build', './tsconfig.json' ]
Activity
Smrtnyk commentedon May 23, 2025
https://github.com/microsoft/typescript-go?tab=readme-ov-file#what-works-so-far
seems like not ready?
lukpsaxo commentedon May 23, 2025
could be the reason. happy to close it. We don't actually build - we disable emit in the config file, but it could be because its not done yet, I thought the announcement was that it supports some emit.
jakebailey commentedon May 23, 2025
It's not ready, no. It's being worked on. See also #909; we should probably produce a better message.
jakebailey commentedon May 23, 2025
#926 will make the problem clearer.
lukpsaxo commentedon May 24, 2025
thanks! closing issue to reduce noise.