@nx/nest 21.6.2 → 21.7.0-canary.20250930-e144408

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/nest",
3
- "version": "21.6.2",
3
+ "version": "21.7.0-canary.20250930-e144408",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Nest contains executors and generators for allowing your workspace to create powerful Nest best in class APIs.",
6
6
  "repository": {
@@ -32,10 +32,10 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@nestjs/schematics": "^11.0.0",
35
- "@nx/devkit": "21.6.2",
36
- "@nx/js": "21.6.2",
37
- "@nx/eslint": "21.6.2",
38
- "@nx/node": "21.6.2",
35
+ "@nx/devkit": "21.7.0-canary.20250930-e144408",
36
+ "@nx/js": "21.7.0-canary.20250930-e144408",
37
+ "@nx/eslint": "21.7.0-canary.20250930-e144408",
38
+ "@nx/node": "21.7.0-canary.20250930-e144408",
39
39
  "tslib": "^2.3.0"
40
40
  },
41
41
  "publishConfig": {
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nest/src/generators/library/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAc,MAAM,YAAY,CAAC;AAM9C,OAAO,KAAK,EAAE,sBAAsB,IAAI,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAC/G,OAAO,KAAK,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAM5E,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,iBAAiB,CAAC,CAuD5B;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,iBAAiB,GACzB,wBAAwB,CAmB1B"}
1
+ {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nest/src/generators/library/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAc,MAAM,YAAY,CAAC;AAM9C,OAAO,KAAK,EAAE,sBAAsB,IAAI,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAC/G,OAAO,KAAK,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAM5E,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,iBAAiB,CAAC,CAqD5B;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,iBAAiB,GACzB,wBAAwB,CAmB1B"}
@@ -18,9 +18,7 @@ async function normalizeOptions(tree, options) {
18
18
  const addPlugin = process.env.NX_ADD_PLUGINS !== 'false' &&
19
19
  nxJson.useInferencePlugins !== false;
20
20
  options.addPlugin ??= addPlugin;
21
- const fileName = options.simpleName
22
- ? projectNames.projectSimpleName
23
- : projectNames.projectFileName;
21
+ const fileName = projectNames.projectFileName;
24
22
  const parsedTags = options.tags
25
23
  ? options.tags.split(',').map((s) => s.trim())
26
24
  : [];
@@ -1 +1 @@
1
- {"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../../../packages/nest/src/generators/library/library.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAsB1D,OAAO,KAAK,EAAE,uBAAuB,EAAqB,MAAM,UAAU,CAAC;AAE3E,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,uBAAuB,GAClC,OAAO,CAAC,iBAAiB,CAAC,CAM5B;AAED,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,uBAAuB,GAClC,OAAO,CAAC,iBAAiB,CAAC,CAqC5B;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../../../packages/nest/src/generators/library/library.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAsB1D,OAAO,KAAK,EAAE,uBAAuB,EAAqB,MAAM,UAAU,CAAC;AAE3E,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,uBAAuB,GAClC,OAAO,CAAC,iBAAiB,CAAC,CAM5B;AAED,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,uBAAuB,GAClC,OAAO,CAAC,iBAAiB,CAAC,CA8B5B;AAED,eAAe,gBAAgB,CAAC"}
@@ -17,10 +17,6 @@ async function libraryGenerator(tree, rawOptions) {
17
17
  }
18
18
  async function libraryGeneratorInternal(tree, rawOptions) {
19
19
  const options = await (0, lib_1.normalizeOptions)(tree, rawOptions);
20
- if (rawOptions.simpleName !== undefined && rawOptions.simpleName !== false) {
21
- // TODO(v22): Remove simpleName as user should be using name.
22
- devkit_1.logger.warn(`The "--simpleName" option is deprecated and will be removed in Nx 22. Please use the "--name" option to provide the exact name you want for the library.`);
23
- }
24
20
  const jsLibraryTask = await (0, js_1.libraryGenerator)(tree, (0, lib_1.toJsLibraryGeneratorOptions)(options));
25
21
  updatePackageJson(tree, options);
26
22
  const initTask = await (0, init_1.default)(tree, rawOptions);
@@ -30,7 +30,6 @@ export interface LibraryGeneratorOptions {
30
30
  unitTestRunner?: UnitTestRunner;
31
31
  setParserOptionsProject?: boolean;
32
32
  skipPackageJson?: boolean;
33
- simpleName?: boolean;
34
33
  addPlugin?: boolean;
35
34
  isUsingTsSolutionsConfig?: boolean;
36
35
  useProjectJson?: boolean;
@@ -129,12 +129,6 @@
129
129
  "default": false,
130
130
  "x-priority": "internal"
131
131
  },
132
- "simpleName": {
133
- "description": "Don't include the directory in the name of the module of the library.",
134
- "type": "boolean",
135
- "default": false,
136
- "x-deprecated": "Use the --name option to provide the exact name instead. This option will be removed in Nx 22."
137
- },
138
132
  "useProjectJson": {
139
133
  "type": "boolean",
140
134
  "description": "Use a `project.json` configuration file instead of inlining the Nx configuration in the `package.json` file."