@nx/workspace 18.0.5 → 18.0.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/workspace",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.7",
|
|
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": {
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@nx/devkit": "18.0.
|
|
64
|
+
"@nx/devkit": "18.0.7",
|
|
65
65
|
"chalk": "^4.1.0",
|
|
66
66
|
"enquirer": "~2.3.6",
|
|
67
67
|
"tslib": "^2.3.0",
|
|
68
68
|
"yargs-parser": "21.1.1",
|
|
69
|
-
"nx": "18.0.
|
|
70
|
-
"@nrwl/workspace": "18.0.
|
|
69
|
+
"nx": "18.0.7",
|
|
70
|
+
"@nrwl/workspace": "18.0.7"
|
|
71
71
|
},
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
@@ -124,8 +124,7 @@ function addNpmScripts(tree, options) {
|
|
|
124
124
|
options.preset === presets_1.Preset.ReactStandalone ||
|
|
125
125
|
options.preset === presets_1.Preset.VueStandalone ||
|
|
126
126
|
options.preset === presets_1.Preset.NuxtStandalone ||
|
|
127
|
-
options.preset === presets_1.Preset.NodeStandalone
|
|
128
|
-
options.preset === presets_1.Preset.NextJsStandalone) {
|
|
127
|
+
options.preset === presets_1.Preset.NodeStandalone) {
|
|
129
128
|
(0, devkit_1.updateJson)(tree, (0, path_1.join)(options.directory, 'package.json'), (json) => {
|
|
130
129
|
Object.assign(json.scripts, {
|
|
131
130
|
start: 'nx serve',
|
|
@@ -135,6 +134,17 @@ function addNpmScripts(tree, options) {
|
|
|
135
134
|
return json;
|
|
136
135
|
});
|
|
137
136
|
}
|
|
137
|
+
if (options.preset === presets_1.Preset.NextJsStandalone) {
|
|
138
|
+
(0, devkit_1.updateJson)(tree, (0, path_1.join)(options.directory, 'package.json'), (json) => {
|
|
139
|
+
Object.assign(json.scripts, {
|
|
140
|
+
dev: 'nx dev',
|
|
141
|
+
build: 'nx build',
|
|
142
|
+
start: 'nx start',
|
|
143
|
+
test: 'nx test',
|
|
144
|
+
});
|
|
145
|
+
return json;
|
|
146
|
+
});
|
|
147
|
+
}
|
|
138
148
|
if (options.preset === presets_1.Preset.TsStandalone) {
|
|
139
149
|
(0, devkit_1.updateJson)(tree, (0, path_1.join)(options.directory, 'package.json'), (json) => {
|
|
140
150
|
Object.assign(json.scripts, {
|