Skip to content

fix(core)!: remove deprecated simpleName option from library generators#32716

Merged
jaysoo merged 1 commit intonext-majorfrom
NXC-3107
Sep 12, 2025
Merged

fix(core)!: remove deprecated simpleName option from library generators#32716
jaysoo merged 1 commit intonext-majorfrom
NXC-3107

Conversation

@jaysoo
Copy link
Copy Markdown
Member

@jaysoo jaysoo commented Sep 12, 2025

The deprecated simpleName option has been removed from the library generators for Angular, React, Nest, and JS packages. Use the --name option to provide the exact name for the library.

BREAKING CHANGE: simpleName option is no longer supported in library generators

Closes NXC-3107, NXC-3098, NXC-3093, NXC-3111

@jaysoo jaysoo requested review from a team as code owners September 12, 2025 14:24
@vercel
Copy link
Copy Markdown

vercel bot commented Sep 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Sep 12, 2025 3:01pm

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud bot commented Sep 12, 2025

View your CI Pipeline Execution ↗ for commit bd8936c

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 38m 36s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 2m 30s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 6s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 4s View ↗
nx documentation ✅ Succeeded 2m 16s View ↗

☁️ Nx Cloud last updated this comment at 2025-09-12 15:34:18 UTC

Copy link
Copy Markdown
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nx Cloud is proposing a fix for your failed CI:

We've successfully fixed the TypeScript compilation errors in the Angular library generator tests. The simpleName property was being used in 10 different test cases but doesn't exist in the Schema interface. All references to this obsolete property have been removed, allowing the tests to compile properly while maintaining their original test intent.

We verified this fix by re-running angular:typecheck.

Suggested Fix changes
diff --git a/packages/angular/src/generators/library/library.spec.ts b/packages/angular/src/generators/library/library.spec.ts
index e615e2e..d654432 100644
--- a/packages/angular/src/generators/library/library.spec.ts
+++ b/packages/angular/src/generators/library/library.spec.ts
@@ -44,7 +44,6 @@ describe('lib', () => {
       linter: 'eslint',
       skipFormat: true,
       unitTestRunner: UnitTestRunner.Jest,
-      simpleName: false,
       strict: true,
       standalone: false,
       ...opts,
@@ -525,7 +524,6 @@ describe('lib', () => {
       await runLibraryGeneratorWithOpts({
         name: 'my-lib2',
         directory: 'my-dir/my-lib2',
-        simpleName: true,
       });
 
       // ASSERT
@@ -646,7 +644,6 @@ describe('lib', () => {
       };
       await runLibraryGeneratorWithOpts({
         directory: 'my-dir/my-lib',
-        simpleName: true,
         publishable: true,
         importPath: '@myorg/lib',
       });
@@ -786,7 +783,6 @@ describe('lib', () => {
           directory: 'my-dir/my-lib2',
           routing: true,
           lazy: true,
-          simpleName: true,
         });
 
         // ASSERT
@@ -830,7 +826,6 @@ describe('lib', () => {
           directory: 'my-dir/my-lib2',
           routing: true,
          lazy: true,
-          simpleName: true,
           parent: 'myapp/src/app/app-module.ts',
           skipFormat: false,
         });
@@ -847,7 +842,6 @@ describe('lib', () => {
           directory: 'my-dir/my-lib3',
           routing: true,
           lazy: true,
-          simpleName: true,
           parent: 'myapp/src/app/app-module.ts',
           skipFormat: false,
         });
@@ -962,7 +956,6 @@ describe('lib', () => {
         await runLibraryGeneratorWithOpts({
           name: 'my-lib2',
           directory: 'my-dir/my-lib2',
-          simpleName: true,
           routing: true,
         });
         // ASSERT
@@ -1006,7 +999,6 @@ describe('lib', () => {
         await runLibraryGeneratorWithOpts({
           name: 'my-lib2',
           directory: 'my-dir/my-lib2',
-          simpleName: true,
           routing: true,
           parent: 'myapp/src/app/app-module.ts',
         });
@@ -1020,7 +1012,6 @@ describe('lib', () => {
           directory: 'my-dir/my-lib3',
           routing: true,
           parent: 'myapp/src/app/app-module.ts',
-          simpleName: true,
         });
 
         const moduleContents3 = tree
@@ -1602,7 +1593,6 @@ describe('lib', () => {
       await runLibraryGeneratorWithOpts({
         standalone: true,
         directory: 'my-dir/my-lib',
-        simpleName: true,
       });
 
       expect(

❌ The fix was rejected.

Nx CloudView interactive diff and more actions ↗


⚙️ An Nx Cloud workspace admin can disable these reviews in workspace settings.

The deprecated simpleName option has been removed from the library generators for Angular, React, Nest, and JS packages. Use the --name option to provide the exact name for the library.

BREAKING CHANGE: simpleName option is no longer supported in library generators

Closes NXC-3107, NXC-3098, NXC-3093, NXC-3111
@jaysoo jaysoo merged commit 12a4137 into next-major Sep 12, 2025
15 checks passed
@jaysoo jaysoo deleted the NXC-3107 branch September 12, 2025 16:26
@github-actions
Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants