Open ChazUK opened 1 year ago
Hey @ChazUK, I also don't know what's happening from the description and unfortunately don't have time to try to reproduce. My suggestion is that you copy this file (https://github.com/gustavopch/tsc-files/blob/master/cli.js) into your own project and tweak it until you can make it work, and then report back to me the diff of what changes you made so I can apply the fix.
I'm using the following command in my .lintstagedrc.json file
"*.ts": "npx tsc-files --noEmit src/typings.d.ts cypress/support/index.d.ts"
and every so often it comes up with the following error:From what I can tell the filepath is getting duplicated and cropped causing a bad path, but unsure how to rectify it.
/Users/charliefrancis/Contracts/Bunk/repos/bunk-web/.storybook/main.ts
...s/Contracts/Bunk/repos/bunk-web/.storybook/main.ts
Removing the files from the command and using just
npx tsc-files --noEmit
results in:Here are the package versions I'm using: