microsoft / vscode-generator-code

Visual Studio Code extension generator
Other
1.31k stars 226 forks source link

When using pnpm, pretest won't run by default #370

Closed segevfiner closed 2 years ago

segevfiner commented 2 years ago

pnpm doesn't run pre/post scripts by default, and the template uses pretest which won't get invoked, even if you select pnpm as the package manager during generation. We should also generate an .npmrc with:

enable-pre-post-scripts = true

In such a case. See https://pnpm.io/cli/run#enable-pre-post-scripts