@nx/express 23.2.0-beta.6 → 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.
@@ -89,6 +89,9 @@ async function normalizeOptions(host, options) {
89
89
  const useProjectJson = options.useProjectJson ?? !(0, internal_2.isUsingTsSolutionSetup)(host);
90
90
  return {
91
91
  ...options,
92
+ // Resolved after the spread so the type guarantees it downstream; this
93
+ // generator forwards its options straight into `@nx/node:application`.
94
+ linter: await (0, internal_2.normalizeLinterOption)(host, options.linter),
92
95
  appProjectName,
93
96
  appProjectRoot,
94
97
  useProjectJson,
@@ -1,4 +1,7 @@
1
- import type { Linter, LinterType } from '@nx/eslint';
1
+ // `LinterType` comes from `@nx/js`, which this package declares; `@nx/eslint`
2
+ // is not a dependency here, so importing it would resolve to a published
3
+ // tarball rather than workspace source.
4
+ import type { LinterType } from '@nx/js';
2
5
  import type { UnitTestRunner } from '../../utils/test-runners';
3
6
 
4
7
  export interface Schema {
@@ -8,7 +11,7 @@ export interface Schema {
8
11
  skipPackageJson: boolean;
9
12
  unitTestRunner: UnitTestRunner;
10
13
  tags?: string;
11
- linter: Linter | LinterType;
14
+ linter?: LinterType;
12
15
  frontendProject?: string;
13
16
  swcJest?: boolean;
14
17
  /** @deprecated use `swcJest` instead */
@@ -31,11 +31,9 @@
31
31
  "description": "Do not add dependencies to `package.json`."
32
32
  },
33
33
  "linter": {
34
- "description": "The tool to use for running lint checks.",
34
+ "description": "The tool to use for running lint checks. Defaults to the linter the workspace already uses.",
35
35
  "type": "string",
36
- "enum": ["eslint", "none"],
37
- "default": "none",
38
- "x-prompt": "Which linter would you like to use?",
36
+ "enum": ["eslint", "oxlint", "none"],
39
37
  "x-priority": "important"
40
38
  },
41
39
  "unitTestRunner": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/express",
3
- "version": "23.2.0-beta.6",
3
+ "version": "23.2.0-beta.7",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Express contains executors and generators for allowing your workspace to create powerful Express Node applications and APIs.",
6
6
  "repository": {
@@ -41,9 +41,9 @@
41
41
  "dependencies": {
42
42
  "semver": "^7.6.3",
43
43
  "tslib": "^2.3.0",
44
- "@nx/devkit": "23.2.0-beta.6",
45
- "@nx/js": "23.2.0-beta.6",
46
- "@nx/node": "23.2.0-beta.6"
44
+ "@nx/devkit": "23.2.0-beta.7",
45
+ "@nx/js": "23.2.0-beta.7",
46
+ "@nx/node": "23.2.0-beta.7"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "express": ">=4.0.0 <6.0.0"