Search Terms
yarn pnp plug'n'play plug
Suggestion
Yarn has released a new feature for using modules without having a node_modules directory present: plug'n'play. Some community tooling is available for customizing the TypeScript compilerHost so that it can use plug'n'play modules, but this does not work for users of tsc.
My suggestion is to add a new "moduleResolution": "yarnpnp" option.
Use Cases / Examples
I want to be able to use yarn plug-n-play in my typescript projects. My projects are typically yarn monorepos where common libraries are basic node packages using tsc for compilation. This would allow the basic projects to continue using tsc, but with an alternative module resolution scheme.
Some community tooling has been created here for augmenting the CompileHost with a slightly updated moduleResolution strategy, but using it in basic projects would probably require a forked tsc.
https://github.com/arcanis/ts-pnp
Checklist
My suggestion meets these guidelines:
Search Terms
yarn pnp plug'n'play plug
Suggestion
Yarn has released a new feature for using modules without having a
node_modulesdirectory present: plug'n'play. Some community tooling is available for customizing the TypeScript compilerHost so that it can use plug'n'play modules, but this does not work for users oftsc.My suggestion is to add a new
"moduleResolution": "yarnpnp"option.Use Cases / Examples
I want to be able to use yarn plug-n-play in my typescript projects. My projects are typically yarn monorepos where common libraries are basic node packages using
tscfor compilation. This would allow the basic projects to continue usingtsc, but with an alternative module resolution scheme.Some community tooling has been created here for augmenting the CompileHost with a slightly updated moduleResolution strategy, but using it in basic projects would probably require a forked
tsc.https://github.com/arcanis/ts-pnp
Checklist
My suggestion meets these guidelines: