Skip to content

command line option that works on tsc fails on tsgo #925

Closed
@lukpsaxo

Description

@lukpsaxo

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

Smrtnyk commented on May 23, 2025

@Smrtnyk
lukpsaxo

lukpsaxo commented on May 23, 2025

@lukpsaxo
Author

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

jakebailey commented on May 23, 2025

@jakebailey
Member

It's not ready, no. It's being worked on. See also #909; we should probably produce a better message.

jakebailey

jakebailey commented on May 23, 2025

@jakebailey
Member

#926 will make the problem clearer.

lukpsaxo

lukpsaxo commented on May 24, 2025

@lukpsaxo
Author

thanks! closing issue to reduce noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jakebailey@Smrtnyk@lukpsaxo

        Issue actions

          command line option that works on tsc fails on tsgo · Issue #925 · microsoft/typescript-go