create-nx-workspace 17.0.1 → 17.0.3
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.
|
@@ -32,8 +32,6 @@ exports.commandsObject = yargs
|
|
|
32
32
|
})
|
|
33
33
|
.option('preset', {
|
|
34
34
|
describe: chalk.dim `Customizes the initial content of your workspace. Default presets include: [${Object.values(preset_1.Preset)
|
|
35
|
-
// TODO(v17): Remove this option when @nx/vue is released.
|
|
36
|
-
.filter((p) => p !== preset_1.Preset.VueStandalone && p !== preset_1.Preset.VueMonorepo)
|
|
37
35
|
.map((p) => `"${p}"`)
|
|
38
36
|
.join(', ')}]. To build your own see https://nx.dev/extending-nx/recipes/create-preset`,
|
|
39
37
|
type: 'string',
|
|
@@ -136,7 +134,6 @@ function normalizeAndWarnOnDeprecatedPreset(deprecatedPresets) {
|
|
|
136
134
|
if (!args.preset)
|
|
137
135
|
return;
|
|
138
136
|
if (deprecatedPresets[args.preset]) {
|
|
139
|
-
args.preset = deprecatedPresets[args.preset];
|
|
140
137
|
output_1.output.addVerticalSeparator();
|
|
141
138
|
output_1.output.note({
|
|
142
139
|
title: `The "${args.preset}" preset is deprecated.`,
|
|
@@ -144,6 +141,7 @@ function normalizeAndWarnOnDeprecatedPreset(deprecatedPresets) {
|
|
|
144
141
|
`The "${args.preset}" preset will be removed in a future Nx release. Use the "${deprecatedPresets[args.preset]}" preset instead.`,
|
|
145
142
|
],
|
|
146
143
|
});
|
|
144
|
+
args.preset = deprecatedPresets[args.preset];
|
|
147
145
|
}
|
|
148
146
|
};
|
|
149
147
|
}
|