SamKirkland / plop-templates

VSCode extension for plop.js file templates
MIT License
22 stars 5 forks source link

plopTemplates.plopCommand should not magically prefix command #16

Open airtonix opened 2 years ago

airtonix commented 2 years ago

we don't use npm

I get unexpected npm run ... when:

  "plopTemplates.plopCommand": "npx plop"

ends up running npm run npx plop ...

  "plopTemplates.plopCommand": "node_modules/.bin/plop"

ends up running npm run node_modules/.bin/plop ...

  "plopTemplates.plopCommand": "pnpx plop"

ends up running npm run pnpx plop ...

  "plopTemplates.plopCommand": "pnpm run plop"

ends up running npm run pnpm run plop ...


when i just set

  "plopTemplates.plopCommand": "plop"

it only ends up running plop ...

which causes error because we don't globally install package cli tools, nor do we globally install nodejs

moltar commented 1 year ago

Agreed!

Great extension idea, but locks the user into using npm.

We use pnpm on all projects, and thus this cannot work.