Skip to content

How to run a file that exists in node_modules with pnp? #3481

Answered by merceyz
amirhhashemi asked this question in Q&A
Discussion options

You must be logged in to vote

You can use yarn bin to get the location of their CLI

{
	"scripts": {
		"typeorm": "node --require ts-node/register \"$(yarn bin typeorm)\""
	}
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@amirhhashemi
Comment options

@mgohin
Comment options

Answer selected by amirhhashemi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants