diff --git a/.changeset/good-parrots-push.md b/.changeset/good-parrots-push.md new file mode 100644 index 0000000..0407d97 --- /dev/null +++ b/.changeset/good-parrots-push.md @@ -0,0 +1,5 @@ +--- +'@strapi/pack-up': patch +--- + +Fix build option fallback usage diff --git a/.changeset/pre.json b/.changeset/pre.json index 93ef156..98f017c 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -4,8 +4,5 @@ "initialVersions": { "@strapi/pack-up": "5.0.0" }, - "changesets": [ - "four-games-camp", - "red-frogs-cry" - ] + "changesets": ["four-games-camp", "red-frogs-cry"] } diff --git a/src/cli/index.ts b/src/cli/index.ts index ac8b88b..7a6e40c 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -17,8 +17,8 @@ command('check').action(async (options) => { }); command('build') - .option('--sourcemap', 'produce sourcemaps', true) - .option('--minify', 'minify the output', false) + .option('--sourcemap', 'produce sourcemaps') // Default true, as set in the vite config + .option('--minify', 'minify the output') // Default false, as set in the vite config .action(async (options) => { const { build } = await import('./commands/build');