Skip to content
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

Not working with pnpm #41

Open
sussyGaymer opened this issue Aug 6, 2023 · 1 comment
Open

Not working with pnpm #41

sussyGaymer opened this issue Aug 6, 2023 · 1 comment

Comments

@sussyGaymer
Copy link

sussyGaymer commented Aug 6, 2023

PNPM's node_modules structure is slightly different therefore the injection script isn't found due to there being two module directories in node_modules: [email protected]/package as opposed to npm's way of only having a package dir. This breaks tsc-hooks.

Problematic code:

require('../../tsc-hooks/lib/injection')

If I wanted to use it with PNPM I would need to edit it to this monstrosity:

require('../../../../[email protected][email protected]/node_modules/tsc-hooks/lib/injection')
@1oglop1
Copy link

1oglop1 commented Oct 9, 2023

this has broken running tsc with PNPM, it modified the file node_modules/.pnpm/[email protected]/node_modules/typescript/bin/tsc

then after pnpm remove tsc-hooks the file was still modified because.
So that subsequent runs of pnpm i resulted in broken tsc file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants