You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The documentation mentions that the template engines are optional dependencies which only need to be installed if necessary. Yet at the moment they are listed as peerDependencies in the package.json and therefore installed automatically since npm version 7.
To Reproduce
Steps to reproduce the behavior:
Install the package
Inspect node_modules to see that ejs, handlebars etc. have been installed.
Expected behavior
The optional peer dependencies shouldn't be installed.
Additional context
This can be solved by defining peerDependenciesMeta in the package.json:
Describe the bug
The documentation mentions that the template engines are optional dependencies which only need to be installed if necessary. Yet at the moment they are listed as
peerDependencies
in thepackage.json
and therefore installed automatically since npm version 7.To Reproduce
Steps to reproduce the behavior:
node_modules
to see thatejs
,handlebars
etc. have been installed.Expected behavior
The optional peer dependencies shouldn't be installed.
Additional context
This can be solved by defining
peerDependenciesMeta
in thepackage.json
:https://docs.npmjs.com/cli/v8/configuring-npm/package-json#peerdependenciesmeta
The text was updated successfully, but these errors were encountered: