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
Nest CLI doesn't respect existing yarn workspaces while generating the resources.
Current behavior
When a resource is generated, Nest CLI adds @nestjs/mapped-types as a dependency to package.json and generates a package-lock.json.
Input Code
None
Expected behavior
Nest CLI should respect the existing yarn workspaces and instead of generating a package-lock.json, it should add the changes to yarn.lock at the workspace root.
Possible Solution
I believe Nest CLI performs an install using npm instead of yarn which results in generation of package-lock.json since it previously doesn't exist.
If there's a way to tell the nest cli to use yarn instead of npm using the nest-cli.json or during the creation of the nest project, it might solve the problem.
Environment
Nest version: 7.6.0
For Tooling issues:
- Node version: 14.16.0
- Platform: Mac
Others:
Package Manager: yarn
The text was updated successfully, but these errors were encountered:
Bug Report
Nest CLI doesn't respect existing yarn workspaces while generating the resources.
Current behavior
When a resource is generated, Nest CLI adds
@nestjs/mapped-types
as a dependency topackage.json
and generates apackage-lock.json
.Input Code
None
Expected behavior
Nest CLI should respect the existing yarn workspaces and instead of generating a
package-lock.json
, it should add the changes toyarn.lock
at the workspace root.Possible Solution
I believe Nest CLI performs an install using
npm
instead ofyarn
which results in generation ofpackage-lock.json
since it previously doesn't exist.If there's a way to tell the nest cli to use
yarn
instead ofnpm
using thenest-cli.json
or during the creation of the nest project, it might solve the problem.Environment
The text was updated successfully, but these errors were encountered: