From 4a1e06a590566c9846378e951a715cecd9867522 Mon Sep 17 00:00:00 2001 From: 1aron Date: Wed, 7 Jun 2023 17:23:55 +0800 Subject: [PATCH] Fix(Pack): Missed the `isDefault` option --- packages/pack/src/bin/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pack/src/bin/index.ts b/packages/pack/src/bin/index.ts index 78ad521..f7b78a0 100755 --- a/packages/pack/src/bin/index.ts +++ b/packages/pack/src/bin/index.ts @@ -34,7 +34,7 @@ const externalDependencies = [] dependencies && externalDependencies.push(...Object.keys(dependencies)) peerDependencies && externalDependencies.push(...Object.keys(peerDependencies)) -program.command('pack [entryPaths...]') +program.command('pack [entryPaths...]', { isDefault: true }) .option('-f, --format [formats...]', 'The output format for the generated JavaScript files `iife`, `cjs`, `esm`', ['cjs', 'esm']) .option('-t, --shakable-format [formats...]', 'Tree-shakable module\'s formats', ['cjs', 'esm']) .option('--shakable', 'Enable outputting tree-shakable modules', false)