@nx/workspace 24.0.0-beta.1 → 24.0.0-beta.2
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.
|
@@ -4,6 +4,7 @@ exports.presetGenerator = presetGenerator;
|
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const presets_1 = require("../utils/presets");
|
|
6
6
|
const path_1 = require("path");
|
|
7
|
+
const nodeBundlers = ['tsc', 'rolldown', 'esbuild', 'webpack'];
|
|
7
8
|
async function presetGenerator(tree, options) {
|
|
8
9
|
const presetTask = await createPreset(tree, options);
|
|
9
10
|
return async () => {
|
|
@@ -328,7 +329,9 @@ async function createPreset(tree, options) {
|
|
|
328
329
|
}
|
|
329
330
|
else if (options.preset === presets_1.Preset.NodeStandalone) {
|
|
330
331
|
const { applicationGenerator: nodeApplicationGenerator } = require('@nx' + '/node');
|
|
331
|
-
const bundler = options.bundler
|
|
332
|
+
const bundler = nodeBundlers.includes(options.bundler)
|
|
333
|
+
? options.bundler
|
|
334
|
+
: undefined;
|
|
332
335
|
return nodeApplicationGenerator(tree, {
|
|
333
336
|
bundler,
|
|
334
337
|
name: options.workspaces ? undefined : options.name,
|
|
@@ -337,7 +340,7 @@ async function createPreset(tree, options) {
|
|
|
337
340
|
framework: options.framework,
|
|
338
341
|
docker: options.docker,
|
|
339
342
|
rootProject: true,
|
|
340
|
-
e2eTestRunner: options.e2eTestRunner
|
|
343
|
+
e2eTestRunner: options.e2eTestRunner,
|
|
341
344
|
unitTestRunner: options.unitTestRunner,
|
|
342
345
|
addPlugin,
|
|
343
346
|
formatter: options.formatter,
|
|
@@ -345,7 +348,9 @@ async function createPreset(tree, options) {
|
|
|
345
348
|
}
|
|
346
349
|
else if (options.preset === presets_1.Preset.NodeMonorepo) {
|
|
347
350
|
const { applicationGenerator: nodeApplicationGenerator } = require('@nx' + '/node');
|
|
348
|
-
const bundler = options.bundler
|
|
351
|
+
const bundler = nodeBundlers.includes(options.bundler)
|
|
352
|
+
? options.bundler
|
|
353
|
+
: undefined;
|
|
349
354
|
return nodeApplicationGenerator(tree, {
|
|
350
355
|
bundler,
|
|
351
356
|
name: options.workspaces ? undefined : options.name,
|
|
@@ -354,7 +359,7 @@ async function createPreset(tree, options) {
|
|
|
354
359
|
framework: options.framework,
|
|
355
360
|
docker: options.docker,
|
|
356
361
|
rootProject: false,
|
|
357
|
-
e2eTestRunner: options.e2eTestRunner
|
|
362
|
+
e2eTestRunner: options.e2eTestRunner,
|
|
358
363
|
unitTestRunner: options.unitTestRunner,
|
|
359
364
|
addPlugin,
|
|
360
365
|
useTsSolution: options.workspaces,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/workspace",
|
|
3
|
-
"version": "24.0.0-beta.
|
|
3
|
+
"version": "24.0.0-beta.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -78,17 +78,17 @@
|
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@nx/devkit": "24.0.0-beta.
|
|
81
|
+
"@nx/devkit": "24.0.0-beta.2",
|
|
82
82
|
"@zkochan/js-yaml": "0.0.7",
|
|
83
83
|
"chalk": "^4.1.0",
|
|
84
84
|
"picomatch": "4.0.4",
|
|
85
85
|
"semver": "^7.6.3",
|
|
86
86
|
"tslib": "^2.3.0",
|
|
87
87
|
"yargs-parser": "21.1.1",
|
|
88
|
-
"nx": "24.0.0-beta.
|
|
88
|
+
"nx": "24.0.0-beta.2"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"nx": "24.0.0-beta.
|
|
91
|
+
"nx": "24.0.0-beta.2"
|
|
92
92
|
},
|
|
93
93
|
"publishConfig": {
|
|
94
94
|
"access": "public"
|