Skip to content

Commit 7f62f4f

Browse files
refactor: remove unused "direct" flag
1 parent 38dbcc2 commit 7f62f4f

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

packages/icon/scripts/build/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function chunkArray<T>(arr: Array<T>, size: number): Array<Array<T>> {
2828
* Runs the Rollup build command for index and story files.
2929
*/
3030
async function buildIndex({ verbose }: { verbose?: boolean }): Promise<void> {
31-
buildPackage({ direct: true, verbose });
31+
buildPackage({ verbose });
3232
}
3333

3434
/**

tools/build/src/cli-commands.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ export function registerBundleCommand(command: Command) {
88
command
99
.description('Builds a package using Rollup')
1010
.option('-v, --verbose', 'Enable verbose logging', false)
11-
.option(
12-
'-d, --direct',
13-
'Build package using the lg-build rollup command directly from @lg-tools/build',
14-
true,
15-
)
1611
.action(buildPackage);
1712
}
1813

tools/build/src/rollup/build-package.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ const loadConfigFile = _loadConfigFile as LoadConfigFile;
1313
import { bundleStats } from 'rollup-plugin-bundle-stats';
1414

1515
interface BuildPackageOptions {
16-
/**
17-
* Pass this option if the function is called directly, and not via Commander.action.
18-
* We use this option in this package's `bin/build-packages.js` command,
19-
* in order to log a warning to consumers to use the `lg` command from @lg-tools/cli
20-
*/
21-
direct?: boolean;
2216
verbose?: boolean;
2317
}
2418

0 commit comments

Comments
 (0)