@nx/workspace 21.0.3 → 21.0.4
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.0.
|
3
|
+
"version": "21.0.4",
|
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.0.
|
41
|
+
"@nx/devkit": "21.0.4",
|
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.0.
|
48
|
+
"nx": "21.0.4"
|
49
49
|
},
|
50
50
|
"publishConfig": {
|
51
51
|
"access": "public"
|
@@ -30,7 +30,7 @@ const presetToPluginMap = {
|
|
30
30
|
[presets_1.Preset.AngularMonorepo]: {
|
31
31
|
generateAppCmd: '@nx/angular',
|
32
32
|
generateLibCmd: '@nx/angular',
|
33
|
-
learnMoreLink: 'https://nx.dev/tutorials/
|
33
|
+
learnMoreLink: 'https://nx.dev/getting-started/tutorials/angular-monorepo-tutorial?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects',
|
34
34
|
},
|
35
35
|
[presets_1.Preset.AngularStandalone]: {
|
36
36
|
generateAppCmd: '@nx/angular',
|
@@ -40,7 +40,7 @@ const presetToPluginMap = {
|
|
40
40
|
[presets_1.Preset.ReactMonorepo]: {
|
41
41
|
generateAppCmd: '@nx/react',
|
42
42
|
generateLibCmd: '@nx/react',
|
43
|
-
learnMoreLink: 'https://nx.dev/tutorials/
|
43
|
+
learnMoreLink: 'https://nx.dev/getting-started/tutorials/react-monorepo-tutorial?utm_source=nx_project&utm_medium=readme&utm_campaign=nx_projects',
|
44
44
|
},
|
45
45
|
[presets_1.Preset.ReactStandalone]: {
|
46
46
|
generateAppCmd: '@nx/react',
|
@@ -61,7 +61,7 @@ async function createPreset(tree, options) {
|
|
61
61
|
const { applicationGenerator: reactApplicationGenerator } = require('@nx' +
|
62
62
|
'/react');
|
63
63
|
return reactApplicationGenerator(tree, {
|
64
|
-
name: options.name,
|
64
|
+
name: options.workspaces ? undefined : options.name,
|
65
65
|
directory: (0, path_1.join)('apps', options.name),
|
66
66
|
style: options.style,
|
67
67
|
linter: options.linter,
|
@@ -102,7 +102,7 @@ async function createPreset(tree, options) {
|
|
102
102
|
const { applicationGenerator: vueApplicationGenerator } = require('@nx' +
|
103
103
|
'/vue');
|
104
104
|
return vueApplicationGenerator(tree, {
|
105
|
-
name: options.name,
|
105
|
+
name: options.workspaces ? undefined : options.name,
|
106
106
|
directory: (0, path_1.join)('apps', options.name),
|
107
107
|
style: options.style,
|
108
108
|
linter: options.linter,
|
@@ -134,7 +134,7 @@ async function createPreset(tree, options) {
|
|
134
134
|
const { applicationGenerator: nuxtApplicationGenerator } = require('@nx' +
|
135
135
|
'/nuxt');
|
136
136
|
return nuxtApplicationGenerator(tree, {
|
137
|
-
name: options.name,
|
137
|
+
name: options.workspaces ? undefined : options.name,
|
138
138
|
directory: (0, path_1.join)('apps', options.name),
|
139
139
|
style: options.style,
|
140
140
|
linter: options.linter,
|
@@ -166,7 +166,7 @@ async function createPreset(tree, options) {
|
|
166
166
|
const { applicationGenerator: nextApplicationGenerator } = require('@nx' +
|
167
167
|
'/next');
|
168
168
|
return nextApplicationGenerator(tree, {
|
169
|
-
name: options.name,
|
169
|
+
name: options.workspaces ? undefined : options.name,
|
170
170
|
directory: (0, path_1.join)('apps', options.name),
|
171
171
|
style: options.style,
|
172
172
|
linter: options.linter,
|
@@ -201,7 +201,7 @@ async function createPreset(tree, options) {
|
|
201
201
|
const { applicationGenerator: webApplicationGenerator } = require('@nx' +
|
202
202
|
'/web');
|
203
203
|
return webApplicationGenerator(tree, {
|
204
|
-
name: options.name,
|
204
|
+
name: options.workspaces ? undefined : options.name,
|
205
205
|
directory: (0, path_1.join)('apps', options.name),
|
206
206
|
style: options.style,
|
207
207
|
linter: options.linter,
|
@@ -215,7 +215,7 @@ async function createPreset(tree, options) {
|
|
215
215
|
const { applicationGenerator: nestApplicationGenerator } = require('@nx' +
|
216
216
|
'/nest');
|
217
217
|
return nestApplicationGenerator(tree, {
|
218
|
-
name: options.name,
|
218
|
+
name: options.workspaces ? undefined : options.name,
|
219
219
|
directory: (0, path_1.join)('apps', options.name),
|
220
220
|
linter: options.linter,
|
221
221
|
e2eTestRunner: options.e2eTestRunner ?? 'jest',
|
@@ -229,7 +229,7 @@ async function createPreset(tree, options) {
|
|
229
229
|
else if (options.preset === presets_1.Preset.Express) {
|
230
230
|
const { applicationGenerator: expressApplicationGenerator, } = require('@nx' + '/express');
|
231
231
|
return expressApplicationGenerator(tree, {
|
232
|
-
name: options.name,
|
232
|
+
name: options.workspaces ? undefined : options.name,
|
233
233
|
directory: (0, path_1.join)('apps', options.name),
|
234
234
|
linter: options.linter,
|
235
235
|
e2eTestRunner: options.e2eTestRunner ?? 'jest',
|
@@ -244,7 +244,7 @@ async function createPreset(tree, options) {
|
|
244
244
|
const { reactNativeApplicationGenerator } = require('@nx' +
|
245
245
|
'/react-native');
|
246
246
|
return reactNativeApplicationGenerator(tree, {
|
247
|
-
name: options.name,
|
247
|
+
name: options.workspaces ? undefined : options.name,
|
248
248
|
directory: (0, path_1.join)('apps', options.name),
|
249
249
|
linter: options.linter,
|
250
250
|
e2eTestRunner: options.e2eTestRunner ?? 'detox',
|
@@ -260,7 +260,7 @@ async function createPreset(tree, options) {
|
|
260
260
|
else if (options.preset === presets_1.Preset.Expo) {
|
261
261
|
const { expoApplicationGenerator } = require('@nx' + '/expo');
|
262
262
|
return expoApplicationGenerator(tree, {
|
263
|
-
name: options.name,
|
263
|
+
name: options.workspaces ? undefined : options.name,
|
264
264
|
directory: (0, path_1.join)('apps', options.name),
|
265
265
|
linter: options.linter,
|
266
266
|
e2eTestRunner: options.e2eTestRunner ?? 'detox',
|
@@ -298,7 +298,7 @@ async function createPreset(tree, options) {
|
|
298
298
|
const bundler = options.bundler === 'webpack' ? 'webpack' : 'esbuild';
|
299
299
|
return nodeApplicationGenerator(tree, {
|
300
300
|
bundler,
|
301
|
-
name: options.name,
|
301
|
+
name: options.workspaces ? undefined : options.name,
|
302
302
|
directory: '.',
|
303
303
|
linter: options.linter,
|
304
304
|
standaloneConfig: options.standaloneConfig,
|
@@ -316,7 +316,7 @@ async function createPreset(tree, options) {
|
|
316
316
|
const bundler = options.bundler === 'webpack' ? 'webpack' : 'esbuild';
|
317
317
|
return nodeApplicationGenerator(tree, {
|
318
318
|
bundler,
|
319
|
-
name: options.name,
|
319
|
+
name: options.workspaces ? undefined : options.name,
|
320
320
|
directory: (0, path_1.join)('apps', options.name),
|
321
321
|
linter: options.linter,
|
322
322
|
framework: options.framework,
|