-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(devkit): ensurePackage should obey npmrc and yarnrc.yml #16652
fix(devkit): ensurePackage should obey npmrc and yarnrc.yml #16652
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
d25f13a
to
f6a5a5f
Compare
const f = findFileInPackageJsonDirectory(packageManagerConfigFile, root); | ||
if (f) { | ||
// Copy config file if it exists, so that the package manager still follows it. | ||
copyFileSync(f, `${destination}/.npmrc`); |
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.
Change this to be the file found
import { Tree } from 'nx/src/generators/tree'; | ||
import { createTreeWithEmptyWorkspace } from 'nx/src/generators/testing-utils/create-tree-with-empty-workspace'; | ||
import { | ||
import type { Tree } from 'nx/src/generators/tree'; |
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.
Remove all changes to spec files
@@ -39,7 +15,29 @@ | |||
{ | |||
"files": ["*.ts", "*.tsx"], | |||
"rules": { | |||
"@typescript-eslint/explicit-module-boundary-types": ["error"] | |||
"@typescript-eslint/explicit-module-boundary-types": ["error"], | |||
"@typescript-eslint/no-restricted-imports": [ |
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.
Move these up to the previous .ts block
4fbcd8b
to
b619127
Compare
b619127
to
01f530b
Compare
(cherry picked from commit 2381dd3)
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 know how to obey.npmrc
,.yarnrc
, or.yarnrc.yml
nx migrate
only obeys.npmrc
Expected Behavior
All package manager config files are obeyed
Related Issue(s)
Fixes #16644