-
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
feat(js): refactor usages of npmScope #16947
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.
This seems to be missing a file where you would also want to make the change:
https://github.com/nrwl/nx/blob/master/packages/angular/src/generators/utils/project.ts#L63
@@ -28,7 +27,7 @@ export async function migrateFromAngularCli( | |||
): Promise<GeneratorCallback> { | |||
validateWorkspace(tree); | |||
const projects = getAllProjects(tree); | |||
const options = normalizeOptions(tree, rawOptions, projects); | |||
const options = rawOptions; |
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.
nit: change this
@@ -68,6 +68,7 @@ export interface NxJsonConfiguration<T = '*' | string[]> { | |||
*/ | |||
targetDefaults?: TargetDefaults; | |||
/** | |||
* @deprecated This is inferred from the package.json in the workspace root. Please use {@link getNpmScope} instead. |
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.
update nx-schema.json
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
create-nx-workspace
andnx init
setnpmScope
innx.json
.Expected Behavior
create-nx-workspace
andnx init
no longer setnpmScope
innx.json
. IfnpmScope
is still innx.json
, then that is still read but if not then the scope is read from the rootpackage.json
if available. Otherwise, it will be as if there is nonpmScope
.Related Issue(s)
Fixes #