How to run a file that exists in node_modules with pnp? #3481
-
I'm using TypeOrm in my application and it has CLI that I need it. The CLI doesn't work with typescript and if I want to use it I have to add this script to the package.json file:
and now I can run this command: I recently switched to yarn 3 and I'm using Plug'n'Play. so there is no node_modules directory and running the above command gives me some errors. I need a way to run the Is there a way to do it without creating the node_modules directory? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can use {
"scripts": {
"typeorm": "node --require ts-node/register \"$(yarn bin typeorm)\""
}
} |
Beta Was this translation helpful? Give feedback.
You can use
yarn bin
to get the location of their CLI