@nx/js 24.0.0-canary.20261020-e7ffd79 → 24.0.0-rc.0
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.
|
@@ -2,6 +2,6 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
|
2
2
|
import type { LibraryGeneratorSchema, NormalizedLibraryGeneratorOptions } from './schema';
|
|
3
3
|
export declare function libraryGenerator(tree: Tree, schema: LibraryGeneratorSchema): Promise<GeneratorCallback>;
|
|
4
4
|
export declare function libraryGeneratorInternal(tree: Tree, schema: LibraryGeneratorSchema): Promise<GeneratorCallback>;
|
|
5
|
-
export type AddLintOptions = Pick<NormalizedLibraryGeneratorOptions, 'name' | 'linter' | 'projectRoot' | 'unitTestRunner' | 'js' | 'enableTypedLinting' | '
|
|
5
|
+
export type AddLintOptions = Pick<NormalizedLibraryGeneratorOptions, 'name' | 'linter' | 'projectRoot' | 'unitTestRunner' | 'js' | 'enableTypedLinting' | 'rootProject' | 'bundler' | 'isUsingTsSolutionConfig'>;
|
|
6
6
|
export declare function addLint(tree: Tree, options: AddLintOptions): Promise<GeneratorCallback>;
|
|
7
7
|
export default libraryGenerator;
|
|
@@ -257,7 +257,7 @@ async function addLint(tree, options) {
|
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
const { lintProjectGenerator } = (0, devkit_1.ensurePackage)('@nx/eslint', versions_1.nxVersion);
|
|
260
|
-
const { addOverrideToLintConfig, lintConfigHasOverride, isEslintConfigSupported, updateOverrideInLintConfig, addIgnoresToLintConfig,
|
|
260
|
+
const { addOverrideToLintConfig, lintConfigHasOverride, isEslintConfigSupported, updateOverrideInLintConfig, addIgnoresToLintConfig,
|
|
261
261
|
// nx-ignore-next-line
|
|
262
262
|
} = require('@nx/eslint/internal');
|
|
263
263
|
const projectConfiguration = (0, devkit_1.readProjectConfiguration)(tree, options.name);
|
|
@@ -269,7 +269,7 @@ async function addLint(tree, options) {
|
|
|
269
269
|
(0, devkit_1.joinPathFragments)(options.projectRoot, 'tsconfig.lib.json'),
|
|
270
270
|
],
|
|
271
271
|
unitTestRunner: options.unitTestRunner,
|
|
272
|
-
enableTypedLinting:
|
|
272
|
+
enableTypedLinting: options.enableTypedLinting,
|
|
273
273
|
rootProject: options.rootProject,
|
|
274
274
|
// Since the build target is inferred now, we need to let the generator know to add @nx/dependency-checks regardless.
|
|
275
275
|
addPackageJsonDependencyChecks: options.bundler !== 'none',
|
|
@@ -24,10 +24,6 @@ export interface LibraryGeneratorSchema {
|
|
|
24
24
|
publishable?: boolean;
|
|
25
25
|
buildable?: boolean;
|
|
26
26
|
enableTypedLinting?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Use `enableTypedLinting` instead. This option will be removed in Nx v24.
|
|
29
|
-
*/
|
|
30
|
-
setParserOptionsProject?: boolean;
|
|
31
27
|
config?: 'workspace' | 'project' | 'npm-scripts';
|
|
32
28
|
compiler?: Compiler;
|
|
33
29
|
bundler?: Bundler;
|
|
@@ -109,12 +109,6 @@
|
|
|
109
109
|
"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.",
|
|
110
110
|
"default": false
|
|
111
111
|
},
|
|
112
|
-
"setParserOptionsProject": {
|
|
113
|
-
"type": "boolean",
|
|
114
|
-
"description": "Deprecated alias for `enableTypedLinting`.",
|
|
115
|
-
"default": false,
|
|
116
|
-
"x-deprecated": "Use `enableTypedLinting` instead. This option will be removed in Nx v24."
|
|
117
|
-
},
|
|
118
112
|
"config": {
|
|
119
113
|
"type": "string",
|
|
120
114
|
"enum": ["workspace", "project", "npm-scripts"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/js",
|
|
3
|
-
"version": "24.0.0-
|
|
3
|
+
"version": "24.0.0-rc.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -162,8 +162,8 @@
|
|
|
162
162
|
"@babel/preset-env": "^7.23.2",
|
|
163
163
|
"@babel/preset-typescript": "^7.22.5",
|
|
164
164
|
"@babel/runtime": "^7.22.6",
|
|
165
|
-
"@nx/devkit": "24.0.0-
|
|
166
|
-
"@nx/workspace": "24.0.0-
|
|
165
|
+
"@nx/devkit": "24.0.0-rc.0",
|
|
166
|
+
"@nx/workspace": "24.0.0-rc.0",
|
|
167
167
|
"@zkochan/js-yaml": "0.0.7",
|
|
168
168
|
"babel-plugin-const-enum": "^1.0.1",
|
|
169
169
|
"babel-plugin-macros": "^3.1.0",
|
|
@@ -183,14 +183,14 @@
|
|
|
183
183
|
"tslib": "^2.3.0"
|
|
184
184
|
},
|
|
185
185
|
"devDependencies": {
|
|
186
|
-
"@nx/esbuild": "24.0.0-
|
|
187
|
-
"@nx/eslint": "24.0.0-
|
|
188
|
-
"@nx/jest": "24.0.0-
|
|
189
|
-
"@nx/oxlint": "24.0.0-
|
|
190
|
-
"@nx/rollup": "24.0.0-
|
|
191
|
-
"@nx/vite": "24.0.0-
|
|
192
|
-
"@nx/vitest": "24.0.0-
|
|
193
|
-
"nx": "24.0.0-
|
|
186
|
+
"@nx/esbuild": "24.0.0-rc.0",
|
|
187
|
+
"@nx/eslint": "24.0.0-rc.0",
|
|
188
|
+
"@nx/jest": "24.0.0-rc.0",
|
|
189
|
+
"@nx/oxlint": "24.0.0-rc.0",
|
|
190
|
+
"@nx/rollup": "24.0.0-rc.0",
|
|
191
|
+
"@nx/vite": "24.0.0-rc.0",
|
|
192
|
+
"@nx/vitest": "24.0.0-rc.0",
|
|
193
|
+
"nx": "24.0.0-rc.0"
|
|
194
194
|
},
|
|
195
195
|
"peerDependencies": {
|
|
196
196
|
"@swc/cli": ">=0.6.0 <0.9.0",
|