Skip to content

Commit

Permalink
fix(core): fix preset empty (#26142)
Browse files Browse the repository at this point in the history
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

(cherry picked from commit 7f11a1d)
  • Loading branch information
xiongemi authored and FrozenPandaz committed May 28, 2024
1 parent 742b010 commit c3ca5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-nx-workspace/bin/create-nx-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ async function normalizeArgsMiddleware(

try {
argv.name = await determineFolder(argv);
if (isKnownPreset(argv.preset)) {
if (!argv.preset || isKnownPreset(argv.preset)) {
argv.stack = await determineStack(argv);
const presetOptions = await determinePresetOptions(argv);
Object.assign(argv, presetOptions);
Expand Down

0 comments on commit c3ca5a0

Please sign in to comment.