-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
whether to consider pnpm compatibility? #41
Comments
tsc-files 1.1.4 does not appear to currently work with pnpm. In
At the end of
pnp resolves to undefined, so it goes to the false case of the ternary. Then it resolves the path to incidentally, you have to go up several levels to get to something that does exist: This needs to resolve to This seems to work with pnpm: const { status } = result = spawnSync(
// See: https://github.com/gustavopch/tsc-files/issues/44#issuecomment-1250783206
process.versions.pnp
? 'tsc'
: resolveFromRoot(
`node_modules/.bin/tsc${process.platform === 'win32' ? '.cmd' : ''}`,
),
['-p', tmpTsconfigPath, ...remainingArgsToForward],
{ stdio: 'inherit' },
) |
My fork tried to implement this: https://github.com/skayo/tsc-files |
this code get
.bin
folder failed when usepnpm
The text was updated successfully, but these errors were encountered: