Skip to content

Commit

Permalink
init when download-dir = before-storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jan 15, 2024
1 parent 1c639e4 commit c897845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/cli/src/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const sandbox = async (
// this is to ensure we DO get the latest version of the template (output of the generator), but we initialize using the version of storybook that the CLI is.
// we warned the user about the fact they are running an old version of storybook
// we warned the user the sandbox step would take longer
if ((isOutdated || isPrerelease) && init) {
if (downloadType === 'before-storybook' && init) {
const before = process.cwd();
process.chdir(templateDestination);
// we run doInitiate, instead of initiate, to avoid sending this init event to telemetry, because it's not a real world project
Expand Down

0 comments on commit c897845

Please sign in to comment.