@nx/workspace 21.3.0-canary.20250628-7430238 → 21.3.0-canary.20250701-bfdf892

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/workspace",
3
- "version": "21.3.0-canary.20250628-7430238",
3
+ "version": "21.3.0-canary.20250701-bfdf892",
4
4
  "private": false,
5
5
  "description": "The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.",
6
6
  "repository": {
@@ -38,14 +38,14 @@
38
38
  }
39
39
  },
40
40
  "dependencies": {
41
- "@nx/devkit": "21.3.0-canary.20250628-7430238",
41
+ "@nx/devkit": "21.3.0-canary.20250701-bfdf892",
42
42
  "@zkochan/js-yaml": "0.0.7",
43
43
  "chalk": "^4.1.0",
44
44
  "enquirer": "~2.3.6",
45
45
  "picomatch": "4.0.2",
46
46
  "tslib": "^2.3.0",
47
47
  "yargs-parser": "21.1.1",
48
- "nx": "21.3.0-canary.20250628-7430238"
48
+ "nx": "21.3.0-canary.20250701-bfdf892"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"
@@ -1,4 +1,4 @@
1
- import { PackageManager, Tree } from '@nx/devkit';
1
+ import { Tree } from '@nx/devkit';
2
2
  import { Linter, LinterType } from '../../utils/lint';
3
3
  interface Schema {
4
4
  directory: string;
@@ -14,18 +14,18 @@ interface Schema {
14
14
  nextAppDir?: boolean;
15
15
  nextSrcDir?: boolean;
16
16
  linter?: Linter | LinterType;
17
- bundler?: 'vite' | 'webpack' | 'rspack';
17
+ bundler?: string;
18
18
  standaloneApi?: boolean;
19
19
  routing?: boolean;
20
20
  useReactRouter?: boolean;
21
- packageManager?: PackageManager;
22
- unitTestRunner?: 'jest' | 'vitest' | 'none';
23
- e2eTestRunner?: 'cypress' | 'playwright' | 'detox' | 'jest' | 'none';
21
+ packageManager?: string;
22
+ unitTestRunner?: string;
23
+ e2eTestRunner?: string;
24
24
  ssr?: boolean;
25
25
  prefix?: string;
26
26
  useGitHub?: boolean;
27
27
  nxCloud?: 'yes' | 'skip' | 'circleci' | 'github';
28
- formatter?: 'none' | 'prettier';
28
+ formatter?: string;
29
29
  workspaces?: boolean;
30
30
  workspaceGlobs?: string | string[];
31
31
  useProjectJson?: boolean;
@@ -55,18 +55,15 @@
55
55
  "linter": {
56
56
  "description": "The tool to use for running lint checks.",
57
57
  "type": "string",
58
- "enum": ["eslint", "none"],
59
58
  "default": "eslint"
60
59
  },
61
60
  "packageManager": {
62
61
  "description": "The package manager used to install dependencies.",
63
- "type": "string",
64
- "enum": ["npm", "yarn", "pnpm", "bun"]
62
+ "type": "string"
65
63
  },
66
64
  "framework": {
67
65
  "description": "The framework which the application is using",
68
- "type": "string",
69
- "enum": ["express", "koa", "fastify", "nest", "none"]
66
+ "type": "string"
70
67
  },
71
68
  "nextAppDir": {
72
69
  "description": "Enable the App Router for this project.",
@@ -80,13 +77,11 @@
80
77
  },
81
78
  "unitTestRunner": {
82
79
  "description": "The tool to use for running unit tests.",
83
- "type": "string",
84
- "enum": ["jest", "vitest", "none"]
80
+ "type": "string"
85
81
  },
86
82
  "e2eTestRunner": {
87
83
  "description": "The tool to use for running e2e tests.",
88
- "type": "string",
89
- "enum": ["playwright", "cypress", "jest", "detox", "none"]
84
+ "type": "string"
90
85
  },
91
86
  "ssr": {
92
87
  "description": "Enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) for the Angular application.",
@@ -100,7 +95,6 @@
100
95
  "formatter": {
101
96
  "description": "The tool to use for code formatting.",
102
97
  "type": "string",
103
- "enum": ["none", "prettier"],
104
98
  "default": "none"
105
99
  },
106
100
  "workspaces": {
@@ -6,20 +6,20 @@ export interface Schema {
6
6
  preset: Preset;
7
7
  style?: string;
8
8
  linter?: string;
9
- formatter?: 'none' | 'prettier';
9
+ formatter?: string;
10
10
  workspaces?: boolean;
11
11
  standaloneConfig?: boolean;
12
12
  framework?: string;
13
- packageManager?: PackageManager;
14
- bundler?: 'vite' | 'rsbuild' | 'webpack' | 'rspack' | 'esbuild';
13
+ packageManager?: string;
14
+ bundler?: string;
15
15
  docker?: boolean;
16
16
  nextAppDir?: boolean;
17
17
  nextSrcDir?: boolean;
18
18
  routing?: boolean;
19
19
  useReactRouter?: boolean;
20
20
  standaloneApi?: boolean;
21
- unitTestRunner?: 'jest' | 'vitest' | 'none';
22
- e2eTestRunner?: 'cypress' | 'playwright' | 'jest' | 'detox' | 'none';
21
+ unitTestRunner?: string;
22
+ e2eTestRunner?: string;
23
23
  js?: boolean;
24
24
  ssr?: boolean;
25
25
  serverRouting?: boolean;
@@ -17,7 +17,6 @@
17
17
  "linter": {
18
18
  "description": "The tool to use for running lint checks.",
19
19
  "type": "string",
20
- "enum": ["eslint", "none"],
21
20
  "default": "eslint"
22
21
  },
23
22
  "routing": {
@@ -66,18 +65,15 @@
66
65
  },
67
66
  "packageManager": {
68
67
  "description": "The package manager used to install dependencies.",
69
- "type": "string",
70
- "enum": ["npm", "yarn", "pnpm", "bun"]
68
+ "type": "string"
71
69
  },
72
70
  "framework": {
73
71
  "description": "The framework which the application is using",
74
- "type": "string",
75
- "enum": ["express", "koa", "fastify", "nest", "none"]
72
+ "type": "string"
76
73
  },
77
74
  "bundler": {
78
75
  "description": "The bundler to use for building the application.",
79
76
  "type": "string",
80
- "enum": ["vite", "rspack", "rsbuild", "esbuild", "webpack"],
81
77
  "default": "vite"
82
78
  },
83
79
  "docker": {
@@ -97,13 +93,11 @@
97
93
  },
98
94
  "unitTestRunner": {
99
95
  "description": "The tool to use for running unit tests.",
100
- "type": "string",
101
- "enum": ["jest", "vitest", "none"]
96
+ "type": "string"
102
97
  },
103
98
  "e2eTestRunner": {
104
99
  "description": "The tool to use for running e2e tests.",
105
- "type": "string",
106
- "enum": ["playwright", "cypress", "jest", "detox", "none"]
100
+ "type": "string"
107
101
  },
108
102
  "ssr": {
109
103
  "description": "Enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) for the Angular application.",
@@ -117,7 +111,6 @@
117
111
  "formatter": {
118
112
  "description": "The tool to use for code formatting.",
119
113
  "type": "string",
120
- "enum": ["none", "prettier"],
121
114
  "default": "none"
122
115
  },
123
116
  "workspaces": {