-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(js): refactor ensurePackage #15074
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on nrwl/js
side
c47f4c4
to
7f14351
Compare
packages/angular/src/generators/change-storybook-targets/change-storybook-targets.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from jest/cypress side
7f14351
to
9bfc34b
Compare
9bfc34b
to
60264ee
Compare
4371281
to
a0900a4
Compare
cdc6126
to
c86ebea
Compare
c86ebea
to
1e08e87
Compare
1e08e87
to
261aa96
Compare
261aa96
to
4db4b8c
Compare
4db4b8c
to
ef5f9a4
Compare
ef5f9a4
to
366a75f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linter part looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cypress/jest look fine. just had a non-blocking question on if jest/cypress really need to call the jsInitGenerator.
await jsInitGenerator(tree, { | ||
...schema, | ||
skipFormat: true, | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is just moving this around, but I was thinking about this and does @nrwl/jest really need to have the jsInitGenerator? Jest doesn't really care to have the root tsconfig just needs it's configurations? just a thought.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, we can investigate removing it.
I think jest needs it for tsconfig.spec.json
?
@@ -1,3 +1,5 @@ | |||
export interface Schema { | |||
skipPackageJson?: boolean; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: extra space. nx format will probably catch it.
366a75f
to
96e7ae7
Compare
96e7ae7
to
b70852b
Compare
b70852b
to
32c9de0
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
ensurePackage
does not work withpnpm
as the files that are currently executing may get moved entirely.ensurePackage
does more of its fair share:Tree
with the updatedpackage.json
yet appears after the generate command.Expected Behavior
ensurePackage
will work withpnpm
.addDependenciesToPackageJson
Breaking Changes
ensurePackage
will no longer install directly into the workspace. This must be done via the normal tools.Related Issue(s)
Fixes #14933