@nx/angular 23.2.0-beta.1 → 23.2.0-beta.3
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/add-linting/add-linting.js +18 -7
- package/dist/src/generators/add-linting/schema.d.ts +4 -0
- package/dist/src/generators/add-linting/schema.json +8 -2
- package/dist/src/generators/application/lib/add-e2e.js +2 -1
- package/dist/src/generators/application/lib/add-linting.js +2 -1
- package/dist/src/generators/application/schema.d.ts +4 -0
- package/dist/src/generators/application/schema.json +8 -2
- package/dist/src/generators/host/host.js +2 -1
- package/dist/src/generators/host/schema.d.ts +4 -0
- package/dist/src/generators/host/schema.json +8 -2
- package/dist/src/generators/library/lib/normalized-schema.d.ts +4 -0
- package/dist/src/generators/library/library.js +4 -3
- package/dist/src/generators/library/schema.d.ts +4 -0
- package/dist/src/generators/library/schema.json +8 -2
- package/dist/src/generators/remote/remote.js +4 -3
- package/dist/src/generators/remote/schema.d.ts +4 -0
- package/dist/src/generators/remote/schema.json +8 -2
- package/dist/src/generators/setup-mf/lib/generate-config.js +2 -1
- package/dist/src/generators/setup-mf/schema.d.ts +4 -0
- package/dist/src/generators/setup-mf/schema.json +8 -2
- package/dist/src/generators/utils/tsconfig-utils.js +2 -7
- package/package.json +18 -11
|
@@ -19,7 +19,7 @@ async function addLintingGenerator(tree, options) {
|
|
|
19
19
|
(0, devkit_1.joinPathFragments)(options.projectRoot, 'tsconfig.app.json'),
|
|
20
20
|
],
|
|
21
21
|
unitTestRunner: options.unitTestRunner,
|
|
22
|
-
|
|
22
|
+
enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
|
|
23
23
|
skipFormat: true,
|
|
24
24
|
rootProject: rootProject,
|
|
25
25
|
addPlugin: options.addPlugin ?? false,
|
|
@@ -28,11 +28,6 @@ async function addLintingGenerator(tree, options) {
|
|
|
28
28
|
});
|
|
29
29
|
tasks.push(lintTask);
|
|
30
30
|
if ((0, internal_2.isEslintConfigSupported)(tree)) {
|
|
31
|
-
const eslintFile = (0, internal_2.findEslintFile)(tree, options.projectRoot);
|
|
32
|
-
// keep parser options if they exist
|
|
33
|
-
const hasParserOptions = tree
|
|
34
|
-
.read((0, devkit_1.joinPathFragments)(options.projectRoot, eslintFile), 'utf8')
|
|
35
|
-
.includes(`${options.projectRoot}/tsconfig.*?.json`);
|
|
36
31
|
if ((0, internal_2.useFlatConfig)(tree)) {
|
|
37
32
|
(0, internal_2.addPredefinedConfigToFlatLintConfig)(tree, options.projectRoot, 'flat/angular', { checkBaseConfig: true });
|
|
38
33
|
(0, internal_2.addPredefinedConfigToFlatLintConfig)(tree, options.projectRoot, 'flat/angular-template', { checkBaseConfig: true });
|
|
@@ -63,11 +58,27 @@ async function addLintingGenerator(tree, options) {
|
|
|
63
58
|
});
|
|
64
59
|
}
|
|
65
60
|
else {
|
|
61
|
+
// Legacy `.eslintrc` overrides are fully replaced below, which would drop
|
|
62
|
+
// an existing `parserOptions.project`. Detect it first so we can carry it
|
|
63
|
+
// over. (Flat configs keep typed linting via `lintProjectGenerator`, so
|
|
64
|
+
// this is only needed on the legacy stack.)
|
|
65
|
+
const eslintFile = (0, internal_2.findEslintFile)(tree, options.projectRoot);
|
|
66
|
+
const eslintFileContent = eslintFile
|
|
67
|
+
? tree.read((0, devkit_1.joinPathFragments)(options.projectRoot, eslintFile), 'utf8')
|
|
68
|
+
: null;
|
|
69
|
+
const typedLinting = eslintFileContent
|
|
70
|
+
? (0, internal_2.inspectTypedLinting)(eslintFileContent)
|
|
71
|
+
: null;
|
|
72
|
+
// Only a `project` needs carrying over. A config running the project
|
|
73
|
+
// service needs no glob and typescript-eslint rejects one next to it.
|
|
74
|
+
const carryOverProject = !!typedLinting?.project && !typedLinting.projectService;
|
|
66
75
|
(0, internal_2.replaceOverridesInLintConfig)(tree, options.projectRoot, [
|
|
67
76
|
...(rootProject ? [internal_2.typeScriptOverride, internal_2.javaScriptOverride] : []),
|
|
68
77
|
{
|
|
69
78
|
files: ['*.ts'],
|
|
70
|
-
|
|
79
|
+
// Legacy `.eslintrc` is JSON, which can't express the `__dirname`
|
|
80
|
+
// that `tsconfigRootDir` needs, so it keeps `parserOptions.project`.
|
|
81
|
+
...(carryOverProject
|
|
71
82
|
? {
|
|
72
83
|
parserOptions: {
|
|
73
84
|
project: [`${options.projectRoot}/tsconfig.*?.json`],
|
|
@@ -2,6 +2,10 @@ export interface AddLintingGeneratorSchema {
|
|
|
2
2
|
projectName: string;
|
|
3
3
|
projectRoot: string;
|
|
4
4
|
prefix: string;
|
|
5
|
+
enableTypedLinting?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
8
|
+
*/
|
|
5
9
|
setParserOptionsProject?: boolean;
|
|
6
10
|
skipFormat?: boolean;
|
|
7
11
|
skipPackageJson?: boolean;
|
|
@@ -28,11 +28,17 @@
|
|
|
28
28
|
"description": "The path to the root of the selected project.",
|
|
29
29
|
"x-priority": "important"
|
|
30
30
|
},
|
|
31
|
-
"
|
|
31
|
+
"enableTypedLinting": {
|
|
32
32
|
"type": "boolean",
|
|
33
|
-
"description": "Whether
|
|
33
|
+
"description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
|
|
34
34
|
"default": false
|
|
35
35
|
},
|
|
36
|
+
"setParserOptionsProject": {
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
39
|
+
"default": false,
|
|
40
|
+
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
41
|
+
},
|
|
36
42
|
"skipFormat": {
|
|
37
43
|
"type": "boolean",
|
|
38
44
|
"description": "Skip formatting files.",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addE2e = addE2e;
|
|
4
4
|
const internal_1 = require("@nx/devkit/internal");
|
|
5
|
+
const internal_2 = require("@nx/eslint/internal");
|
|
5
6
|
const devkit_1 = require("@nx/devkit");
|
|
6
7
|
const versions_1 = require("../../../utils/versions");
|
|
7
8
|
async function addE2e(tree, options) {
|
|
@@ -54,7 +55,7 @@ async function addE2e(tree, options) {
|
|
|
54
55
|
directory: 'src',
|
|
55
56
|
js: false,
|
|
56
57
|
linter: options.linter,
|
|
57
|
-
|
|
58
|
+
enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
|
|
58
59
|
webServerCommand: e2eWebServerInfo.e2eWebServerCommand,
|
|
59
60
|
webServerAddress: e2eWebServerInfo.e2eWebServerAddress,
|
|
60
61
|
rootProject: options.rootProject,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addLinting = addLinting;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const internal_1 = require("@nx/eslint/internal");
|
|
5
6
|
const add_linting_1 = tslib_1.__importDefault(require("../../add-linting/add-linting"));
|
|
6
7
|
async function addLinting(host, options) {
|
|
7
8
|
if (options.linter === 'none') {
|
|
@@ -11,7 +12,7 @@ async function addLinting(host, options) {
|
|
|
11
12
|
projectName: options.name,
|
|
12
13
|
projectRoot: options.appProjectRoot,
|
|
13
14
|
prefix: options.prefix,
|
|
14
|
-
|
|
15
|
+
enableTypedLinting: (0, internal_1.isTypedLintingEnabled)(options),
|
|
15
16
|
skipPackageJson: options.skipPackageJson,
|
|
16
17
|
unitTestRunner: options.unitTestRunner,
|
|
17
18
|
skipFormat: true,
|
|
@@ -20,6 +20,10 @@ export interface Schema {
|
|
|
20
20
|
backendProject?: string;
|
|
21
21
|
strict?: boolean;
|
|
22
22
|
port?: number;
|
|
23
|
+
enableTypedLinting?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
26
|
+
*/
|
|
23
27
|
setParserOptionsProject?: boolean;
|
|
24
28
|
skipPackageJson?: boolean;
|
|
25
29
|
standalone?: boolean;
|
|
@@ -133,11 +133,17 @@
|
|
|
133
133
|
"type": "number",
|
|
134
134
|
"description": "The port at which the remote application should be served."
|
|
135
135
|
},
|
|
136
|
-
"
|
|
136
|
+
"enableTypedLinting": {
|
|
137
137
|
"type": "boolean",
|
|
138
|
-
"description": "Whether
|
|
138
|
+
"description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
|
|
139
139
|
"default": false
|
|
140
140
|
},
|
|
141
|
+
"setParserOptionsProject": {
|
|
142
|
+
"type": "boolean",
|
|
143
|
+
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
144
|
+
"default": false,
|
|
145
|
+
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
146
|
+
},
|
|
141
147
|
"standalone": {
|
|
142
148
|
"description": "Generate an application that is setup to use standalone components.",
|
|
143
149
|
"type": "boolean",
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.host = host;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
6
|
+
const internal_2 = require("@nx/eslint/internal");
|
|
6
7
|
const devkit_1 = require("@nx/devkit");
|
|
7
8
|
const js_1 = require("@nx/js");
|
|
8
9
|
const assert_supported_angular_version_1 = require("../../utils/assert-supported-angular-version");
|
|
@@ -81,7 +82,7 @@ async function host(tree, schema) {
|
|
|
81
82
|
prefix: options.prefix,
|
|
82
83
|
typescriptConfiguration,
|
|
83
84
|
standalone: options.standalone,
|
|
84
|
-
|
|
85
|
+
enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
|
|
85
86
|
});
|
|
86
87
|
let installTasks = [appInstallTask];
|
|
87
88
|
if (options.ssr) {
|
|
@@ -9,6 +9,10 @@ export interface Schema {
|
|
|
9
9
|
port?: number;
|
|
10
10
|
remotes?: string[];
|
|
11
11
|
dynamic?: boolean;
|
|
12
|
+
enableTypedLinting?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
15
|
+
*/
|
|
12
16
|
setParserOptionsProject?: boolean;
|
|
13
17
|
skipPackageJson?: boolean;
|
|
14
18
|
skipPostInstall?: boolean;
|
|
@@ -153,11 +153,17 @@
|
|
|
153
153
|
"description": "Create an application with stricter type checking and build optimization options.",
|
|
154
154
|
"default": true
|
|
155
155
|
},
|
|
156
|
-
"
|
|
156
|
+
"enableTypedLinting": {
|
|
157
157
|
"type": "boolean",
|
|
158
|
-
"description": "Whether
|
|
158
|
+
"description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
|
|
159
159
|
"default": false
|
|
160
160
|
},
|
|
161
|
+
"setParserOptionsProject": {
|
|
162
|
+
"type": "boolean",
|
|
163
|
+
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
164
|
+
"default": false,
|
|
165
|
+
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
166
|
+
},
|
|
161
167
|
"skipFormat": {
|
|
162
168
|
"description": "Skip formatting files.",
|
|
163
169
|
"type": "boolean",
|
|
@@ -18,6 +18,10 @@ export interface NormalizedSchema {
|
|
|
18
18
|
tags?: string;
|
|
19
19
|
strict?: boolean;
|
|
20
20
|
compilationMode?: 'full' | 'partial';
|
|
21
|
+
enableTypedLinting?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
24
|
+
*/
|
|
21
25
|
setParserOptionsProject?: boolean;
|
|
22
26
|
skipModule?: boolean;
|
|
23
27
|
skipPackageJson?: boolean;
|
|
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.libraryGenerator = libraryGenerator;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
6
|
+
const internal_2 = require("@nx/eslint/internal");
|
|
6
7
|
const devkit_1 = require("@nx/devkit");
|
|
7
8
|
const js_1 = require("@nx/js");
|
|
8
|
-
const
|
|
9
|
+
const internal_3 = require("@nx/js/internal");
|
|
9
10
|
const init_1 = tslib_1.__importDefault(require("../../generators/init/init"));
|
|
10
11
|
const assert_supported_angular_version_1 = require("../../utils/assert-supported-angular-version");
|
|
11
12
|
const test_runners_1 = require("../../utils/test-runners");
|
|
@@ -71,7 +72,7 @@ async function libraryGenerator(tree, schema) {
|
|
|
71
72
|
() => (0, devkit_1.installPackagesTask)(tree),
|
|
72
73
|
];
|
|
73
74
|
if (libraryOptions.publishable) {
|
|
74
|
-
tasks.push(await (0,
|
|
75
|
+
tasks.push(await (0, internal_3.releaseTasks)(tree));
|
|
75
76
|
}
|
|
76
77
|
tasks.push(() => (0, internal_1.logShowProjectCommand)(libraryOptions.name));
|
|
77
78
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
@@ -123,7 +124,7 @@ async function addLinting(host, options) {
|
|
|
123
124
|
projectRoot: options.projectRoot,
|
|
124
125
|
prefix: options.prefix,
|
|
125
126
|
unitTestRunner: options.unitTestRunner,
|
|
126
|
-
|
|
127
|
+
enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
|
|
127
128
|
skipFormat: true,
|
|
128
129
|
skipPackageJson: options.skipPackageJson,
|
|
129
130
|
});
|
|
@@ -22,6 +22,10 @@ export interface Schema {
|
|
|
22
22
|
linter?: Linter | LinterType;
|
|
23
23
|
unitTestRunner?: UnitTestRunner;
|
|
24
24
|
compilationMode?: 'full' | 'partial';
|
|
25
|
+
enableTypedLinting?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
28
|
+
*/
|
|
25
29
|
setParserOptionsProject?: boolean;
|
|
26
30
|
skipModule?: boolean;
|
|
27
31
|
skipPackageJson?: boolean;
|
|
@@ -107,11 +107,17 @@
|
|
|
107
107
|
"type": "string",
|
|
108
108
|
"enum": ["full", "partial"]
|
|
109
109
|
},
|
|
110
|
-
"
|
|
110
|
+
"enableTypedLinting": {
|
|
111
111
|
"type": "boolean",
|
|
112
|
-
"description": "Whether
|
|
112
|
+
"description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
|
|
113
113
|
"default": false
|
|
114
114
|
},
|
|
115
|
+
"setParserOptionsProject": {
|
|
116
|
+
"type": "boolean",
|
|
117
|
+
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
118
|
+
"default": false,
|
|
119
|
+
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
120
|
+
},
|
|
115
121
|
"skipModule": {
|
|
116
122
|
"type": "boolean",
|
|
117
123
|
"description": "Whether to skip the creation of a default module when generating the library.",
|
|
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.remote = remote;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
6
|
+
const internal_2 = require("@nx/eslint/internal");
|
|
6
7
|
const devkit_1 = require("@nx/devkit");
|
|
7
|
-
const
|
|
8
|
+
const internal_3 = require("@nx/js/internal");
|
|
8
9
|
const assert_supported_angular_version_1 = require("../../utils/assert-supported-angular-version");
|
|
9
10
|
const test_runners_1 = require("../../utils/test-runners");
|
|
10
11
|
const application_1 = require("../application/application");
|
|
@@ -68,12 +69,12 @@ async function remote(tree, schema) {
|
|
|
68
69
|
standalone: options.standalone,
|
|
69
70
|
prefix: options.prefix,
|
|
70
71
|
typescriptConfiguration,
|
|
71
|
-
|
|
72
|
+
enableTypedLinting: (0, internal_2.isTypedLintingEnabled)(options),
|
|
72
73
|
});
|
|
73
74
|
const installTasks = [appInstallTask];
|
|
74
75
|
if (!options.skipPackageJson) {
|
|
75
76
|
const installSwcHelpersTask = (0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|
|
76
|
-
'@swc/helpers':
|
|
77
|
+
'@swc/helpers': internal_3.swcHelpersVersion,
|
|
77
78
|
});
|
|
78
79
|
installTasks.push(installSwcHelpersTask);
|
|
79
80
|
}
|
|
@@ -8,6 +8,10 @@ export interface Schema {
|
|
|
8
8
|
bundler?: 'webpack' | 'rspack';
|
|
9
9
|
host?: string;
|
|
10
10
|
port?: number;
|
|
11
|
+
enableTypedLinting?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
14
|
+
*/
|
|
11
15
|
setParserOptionsProject?: boolean;
|
|
12
16
|
skipPackageJson?: boolean;
|
|
13
17
|
prefix?: string;
|
|
@@ -143,11 +143,17 @@
|
|
|
143
143
|
"description": "Create an application with stricter type checking and build optimization options.",
|
|
144
144
|
"default": true
|
|
145
145
|
},
|
|
146
|
-
"
|
|
146
|
+
"enableTypedLinting": {
|
|
147
147
|
"type": "boolean",
|
|
148
|
-
"description": "Whether
|
|
148
|
+
"description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
|
|
149
149
|
"default": false
|
|
150
150
|
},
|
|
151
|
+
"setParserOptionsProject": {
|
|
152
|
+
"type": "boolean",
|
|
153
|
+
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
154
|
+
"default": false,
|
|
155
|
+
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
156
|
+
},
|
|
151
157
|
"skipFormat": {
|
|
152
158
|
"description": "Skip formatting files.",
|
|
153
159
|
"type": "boolean",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.generateWebpackConfig = generateWebpackConfig;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const internal_1 = require("@nx/eslint/internal");
|
|
5
6
|
function generateWebpackConfig(tree, options, appRoot, remotesWithPorts) {
|
|
6
7
|
if (tree.exists(`${appRoot}/module-federation.config.js`) ||
|
|
7
8
|
tree.exists(`${appRoot}/webpack.config.js`) ||
|
|
@@ -25,7 +26,7 @@ function generateWebpackConfig(tree, options, appRoot, remotesWithPorts) {
|
|
|
25
26
|
standalone: options.standalone,
|
|
26
27
|
entryModuleFileName: options.entryModuleFileName,
|
|
27
28
|
});
|
|
28
|
-
if (!
|
|
29
|
+
if (!(0, internal_1.isTypedLintingEnabled)(options)) {
|
|
29
30
|
tree.delete((0, devkit_1.joinPathFragments)(appRoot, 'tsconfig.lint.json'));
|
|
30
31
|
}
|
|
31
32
|
}
|
|
@@ -17,6 +17,10 @@ export interface Schema {
|
|
|
17
17
|
standalone?: boolean;
|
|
18
18
|
skipE2E?: boolean;
|
|
19
19
|
typescriptConfiguration?: boolean;
|
|
20
|
+
enableTypedLinting?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
23
|
+
*/
|
|
20
24
|
setParserOptionsProject?: boolean;
|
|
21
25
|
}
|
|
22
26
|
|
|
@@ -81,10 +81,16 @@
|
|
|
81
81
|
"description": "Whether the module federation configuration and webpack configuration files should use TS.",
|
|
82
82
|
"default": true
|
|
83
83
|
},
|
|
84
|
-
"
|
|
84
|
+
"enableTypedLinting": {
|
|
85
85
|
"type": "boolean",
|
|
86
|
-
"description": "Whether
|
|
86
|
+
"description": "Whether to enable typed linting. For flat configs, this configures the recommended `parserOptions.projectService` and `tsconfigRootDir`. For legacy `.eslintrc` configs, this configures `parserOptions.project`. We do not enable this by default for lint performance reasons.",
|
|
87
87
|
"default": false
|
|
88
|
+
},
|
|
89
|
+
"setParserOptionsProject": {
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
92
|
+
"default": false,
|
|
93
|
+
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
88
94
|
}
|
|
89
95
|
},
|
|
90
96
|
"required": ["appName", "mfType"],
|
|
@@ -18,12 +18,7 @@ function getDefinedCompilerOption(tree, tsConfigPath, optionName) {
|
|
|
18
18
|
}
|
|
19
19
|
function readCompilerOptionsFromTsConfig(tree, tsConfigPath) {
|
|
20
20
|
const ts = (0, internal_1.ensureTypescript)();
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
readDirectory: () => [],
|
|
24
|
-
readFile: (path) => tree.read(path, 'utf-8'),
|
|
25
|
-
fileExists: (path) => tree.exists(path),
|
|
26
|
-
};
|
|
27
|
-
const parsed = ts.parseJsonConfigFileContent(ts.readConfigFile(tsConfigPath, tsSysFromTree.readFile).config, tsSysFromTree, (0, node_path_1.dirname)(tsConfigPath));
|
|
21
|
+
const host = (0, internal_1.createTreeParseConfigHost)(tree);
|
|
22
|
+
const parsed = ts.parseJsonConfigFileContent(ts.readConfigFile(tsConfigPath, host.readFile).config, host, (0, node_path_1.dirname)(tsConfigPath));
|
|
28
23
|
return parsed.options;
|
|
29
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular",
|
|
3
|
-
"version": "23.2.0-beta.
|
|
3
|
+
"version": "23.2.0-beta.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
|
|
@@ -80,15 +80,14 @@
|
|
|
80
80
|
"picomatch": "4.0.4",
|
|
81
81
|
"semver": "^7.6.3",
|
|
82
82
|
"tslib": "^2.3.0",
|
|
83
|
-
"@nx/devkit": "23.2.0-beta.
|
|
84
|
-
"@nx/
|
|
85
|
-
"@nx/
|
|
86
|
-
"@nx/
|
|
83
|
+
"@nx/devkit": "23.2.0-beta.3",
|
|
84
|
+
"@nx/js": "23.2.0-beta.3",
|
|
85
|
+
"@nx/web": "23.2.0-beta.3",
|
|
86
|
+
"@nx/eslint": "23.2.0-beta.3"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@nx/
|
|
90
|
-
"nx": "23.2.0-beta.
|
|
91
|
-
"@nx/vitest": "23.2.0-beta.1"
|
|
89
|
+
"@nx/vitest": "23.2.0-beta.3",
|
|
90
|
+
"nx": "23.2.0-beta.3"
|
|
92
91
|
},
|
|
93
92
|
"peerDependencies": {
|
|
94
93
|
"@angular/build": ">= 20.0.0 < 23.0.0",
|
|
@@ -99,9 +98,11 @@
|
|
|
99
98
|
"ng-packagr": ">= 20.0.0 < 23.0.0",
|
|
100
99
|
"rxjs": "^6.5.3 || ^7.5.0",
|
|
101
100
|
"webpack-merge": "^5.8.0",
|
|
102
|
-
"@nx/
|
|
103
|
-
"@nx/
|
|
104
|
-
"@nx/
|
|
101
|
+
"@nx/cypress": "23.2.0-beta.3",
|
|
102
|
+
"@nx/playwright": "23.2.0-beta.3",
|
|
103
|
+
"@nx/module-federation": "23.2.0-beta.3",
|
|
104
|
+
"@nx/rspack": "23.2.0-beta.3",
|
|
105
|
+
"@nx/webpack": "23.2.0-beta.3"
|
|
105
106
|
},
|
|
106
107
|
"peerDependenciesMeta": {
|
|
107
108
|
"@angular/build": {
|
|
@@ -110,6 +111,12 @@
|
|
|
110
111
|
"@angular-devkit/build-angular": {
|
|
111
112
|
"optional": true
|
|
112
113
|
},
|
|
114
|
+
"@nx/cypress": {
|
|
115
|
+
"optional": true
|
|
116
|
+
},
|
|
117
|
+
"@nx/playwright": {
|
|
118
|
+
"optional": true
|
|
119
|
+
},
|
|
113
120
|
"@nx/module-federation": {
|
|
114
121
|
"optional": true
|
|
115
122
|
},
|