@nx/nest 23.2.0-beta.5 → 23.2.0-beta.7
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/dist/src/generators/application/lib/normalize-options.js +1 -1
- package/dist/src/generators/application/schema.d.ts +2 -2
- package/dist/src/generators/application/schema.json +2 -4
- package/dist/src/generators/library/lib/normalize-options.js +1 -1
- package/dist/src/generators/library/schema.d.ts +2 -2
- package/dist/src/generators/library/schema.json +2 -4
- package/package.json +5 -5
|
@@ -24,7 +24,7 @@ async function normalizeOptions(tree, options) {
|
|
|
24
24
|
strict: options.strict ?? false,
|
|
25
25
|
appProjectName,
|
|
26
26
|
appProjectRoot,
|
|
27
|
-
linter: options.linter
|
|
27
|
+
linter: await (0, internal_3.normalizeLinterOption)(tree, options.linter),
|
|
28
28
|
unitTestRunner: options.unitTestRunner ?? 'jest',
|
|
29
29
|
e2eTestRunner: options.e2eTestRunner ?? 'jest',
|
|
30
30
|
useProjectJson: options.useProjectJson ?? !(0, internal_3.isUsingTsSolutionSetup)(tree),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LinterType } from '@nx/js';
|
|
2
2
|
|
|
3
3
|
export interface ApplicationGeneratorOptions {
|
|
4
4
|
directory: string;
|
|
5
5
|
name?: string;
|
|
6
6
|
frontendProject?: string;
|
|
7
|
-
linter?:
|
|
7
|
+
linter?: LinterType;
|
|
8
8
|
skipFormat?: boolean;
|
|
9
9
|
skipPackageJson?: boolean;
|
|
10
10
|
tags?: string;
|
|
@@ -34,11 +34,9 @@
|
|
|
34
34
|
"x-priority": "internal"
|
|
35
35
|
},
|
|
36
36
|
"linter": {
|
|
37
|
-
"description": "The tool to use for running lint checks.",
|
|
37
|
+
"description": "The tool to use for running lint checks. Defaults to the linter the workspace already uses.",
|
|
38
38
|
"type": "string",
|
|
39
|
-
"enum": ["eslint", "none"],
|
|
40
|
-
"default": "none",
|
|
41
|
-
"x-prompt": "Which linter would you like to use?",
|
|
39
|
+
"enum": ["eslint", "oxlint", "none"],
|
|
42
40
|
"x-priority": "important"
|
|
43
41
|
},
|
|
44
42
|
"unitTestRunner": {
|
|
@@ -33,7 +33,7 @@ async function normalizeOptions(tree, options) {
|
|
|
33
33
|
controller: options.controller ?? false,
|
|
34
34
|
fileName,
|
|
35
35
|
global: options.global ?? false,
|
|
36
|
-
linter: options.linter
|
|
36
|
+
linter: await (0, internal_3.normalizeLinterOption)(tree, options.linter),
|
|
37
37
|
parsedTags,
|
|
38
38
|
prefix: (0, internal_3.getNpmScope)(tree), // we could also allow customizing this
|
|
39
39
|
projectName: isUsingTsSolutionsConfig && !options.name ? importPath : projectName,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LinterType } from '@nx/js';
|
|
2
2
|
import type { UnitTestRunner } from '../utils';
|
|
3
3
|
|
|
4
4
|
export interface LibraryGeneratorOptions {
|
|
@@ -8,7 +8,7 @@ export interface LibraryGeneratorOptions {
|
|
|
8
8
|
controller?: boolean;
|
|
9
9
|
global?: boolean;
|
|
10
10
|
importPath?: string;
|
|
11
|
-
linter?:
|
|
11
|
+
linter?: LinterType;
|
|
12
12
|
publishable?: boolean;
|
|
13
13
|
service?: boolean;
|
|
14
14
|
skipFormat?: boolean;
|
|
@@ -28,11 +28,9 @@
|
|
|
28
28
|
"type": "string"
|
|
29
29
|
},
|
|
30
30
|
"linter": {
|
|
31
|
-
"description": "The tool to use for running lint checks.",
|
|
31
|
+
"description": "The tool to use for running lint checks. Defaults to the linter the workspace already uses.",
|
|
32
32
|
"type": "string",
|
|
33
|
-
"enum": ["eslint", "none"],
|
|
34
|
-
"default": "none",
|
|
35
|
-
"x-prompt": "Which linter would you like to use?",
|
|
33
|
+
"enum": ["eslint", "oxlint", "none"],
|
|
36
34
|
"x-priority": "important"
|
|
37
35
|
},
|
|
38
36
|
"unitTestRunner": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/nest",
|
|
3
|
-
"version": "23.2.0-beta.
|
|
3
|
+
"version": "23.2.0-beta.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"@nestjs/schematics": "^11.0.0",
|
|
63
63
|
"semver": "^7.6.3",
|
|
64
64
|
"tslib": "^2.3.0",
|
|
65
|
-
"@nx/devkit": "23.2.0-beta.
|
|
66
|
-
"@nx/js": "23.2.0-beta.
|
|
67
|
-
"@nx/eslint": "23.2.0-beta.
|
|
68
|
-
"@nx/node": "23.2.0-beta.
|
|
65
|
+
"@nx/devkit": "23.2.0-beta.7",
|
|
66
|
+
"@nx/js": "23.2.0-beta.7",
|
|
67
|
+
"@nx/eslint": "23.2.0-beta.7",
|
|
68
|
+
"@nx/node": "23.2.0-beta.7"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@nestjs/core": ">=10.0.0 <12.0.0",
|