@nx/workspace 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/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { names } from '@nx/devkit';
5
5
  export { output } from './src/utilities/output';
6
6
  export { readPackageJson } from '@nx/devkit/internal';
7
7
  export { getWorkspacePath, editTarget, parseTarget, serializeTarget, } from './src/utils/cli-config-utils';
8
- export { Linter } from './src/utils/lint';
8
+ export { Linter, type LinterType } from './src/utils/lint';
9
9
  export { moveGenerator } from './src/generators/move/move';
10
10
  export { removeGenerator } from './src/generators/remove/remove';
11
11
  export { runCommandsGenerator } from './src/generators/run-commands/run-commands';
@@ -53,9 +53,9 @@
53
53
  "description": "Application name."
54
54
  },
55
55
  "linter": {
56
- "description": "The tool to use for running lint checks.",
56
+ "description": "The tool to use for running lint checks. Defaults to the linter the workspace already uses.",
57
57
  "type": "string",
58
- "default": "eslint"
58
+ "enum": ["eslint", "oxlint", "none"]
59
59
  },
60
60
  "packageManager": {
61
61
  "description": "The package manager used to install dependencies.",
@@ -282,6 +282,9 @@ async function createPreset(tree, options) {
282
282
  name: options.name,
283
283
  directory: '.',
284
284
  bundler: 'tsc',
285
+ // Forwarded so the library generator's own resolution short-circuits;
286
+ // without it the user is asked which linter to use a second time.
287
+ linter: options.linter,
285
288
  unitTestRunner: 'vitest',
286
289
  testEnvironment: 'node',
287
290
  js: options.js,
@@ -15,9 +15,9 @@
15
15
  "type": "string"
16
16
  },
17
17
  "linter": {
18
- "description": "The tool to use for running lint checks.",
18
+ "description": "The tool to use for running lint checks. Defaults to the linter the workspace already uses.",
19
19
  "type": "string",
20
- "default": "eslint"
20
+ "enum": ["eslint", "oxlint", "none"]
21
21
  },
22
22
  "routing": {
23
23
  "description": "Add routing to the generated application.",
@@ -2,4 +2,4 @@ export declare const enum Linter {
2
2
  EsLint = "eslint",
3
3
  None = "none"
4
4
  }
5
- export type LinterType = 'eslint' | 'none';
5
+ export type LinterType = 'eslint' | 'oxlint' | 'none';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/workspace",
3
- "version": "23.2.0-beta.5",
3
+ "version": "23.2.0-beta.7",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "files": [
@@ -85,11 +85,11 @@
85
85
  "semver": "^7.6.3",
86
86
  "tslib": "^2.3.0",
87
87
  "yargs-parser": "21.1.1",
88
- "nx": "23.2.0-beta.5",
89
- "@nx/devkit": "23.2.0-beta.5"
88
+ "nx": "23.2.0-beta.7",
89
+ "@nx/devkit": "23.2.0-beta.7"
90
90
  },
91
91
  "devDependencies": {
92
- "nx": "23.2.0-beta.5"
92
+ "nx": "23.2.0-beta.7"
93
93
  },
94
94
  "publishConfig": {
95
95
  "access": "public"