Skip to content

fails when run as package.json script #53

@reharik

Description

@reharik

Hi, I'm not using eslint-staged or whatever. I have a script entry in package.json "tsc-files": "git getMyFiles | tsc-files --noEmit"
That's not working so great yet, so I hardcoded a file in there e.g "tsc-files": "tsc-files --noEmit myFile/hasAnError.ts"
when this is run the spawnSync just exits right away. No error, no visible attempt to tsc.
I dug in and basically took the result of the tsconfig that you generate and ran tsc against it and it worked. e.g. the tsconfig had the line files: ['myFile/hasAnError.ts'] and indeed it found that file and found the error.
So it seems that tsc-files spawnSync is returning directly and not actually running tsc or returning directly and perhaps running tsc but it doesn't matter because it has returned.

Any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions