|
1 | | -import { buildPackage, buildTSDoc, buildTypescript } from '@lg-tools/build'; |
| 1 | +import { |
| 2 | + registerBuildDocsCommand, |
| 3 | + registerBuildTSCommand, |
| 4 | + registerBundleCommand, |
| 5 | +} from '@lg-tools/build'; |
2 | 6 | import { migrator } from '@lg-tools/codemods'; |
3 | 7 | import { createPackage } from '@lg-tools/create'; |
4 | 8 | import { installLeafyGreen } from '@lg-tools/install'; |
@@ -236,33 +240,10 @@ cli |
236 | 240 | .action(migrator); |
237 | 241 |
|
238 | 242 | /** Build steps */ |
239 | | -cli |
240 | | - .command('build-package') |
241 | | - .description('Builds a package') |
242 | | - .option('-v --verbose', 'Prints additional information to the console', false) |
243 | | - .action(buildPackage); |
244 | | -cli |
245 | | - .command('build-ts') |
246 | | - .description("Builds a package's TypeScript definitions") |
247 | | - .argument('[pass-through...]', 'Pass-through options for `tsc`') |
248 | | - .option('-v --verbose', 'Prints additional information to the console', false) |
249 | | - .option( |
250 | | - '--downlevel', |
251 | | - 'Builds all TS downlevel targets based on the typesVersions field in package.json', |
252 | | - false, |
253 | | - ) |
254 | | - .option( |
255 | | - '-u, --update', |
256 | | - 'Update package.json typesVersions and exports fields', |
257 | | - false, |
258 | | - ) |
259 | | - .allowUnknownOption(true) |
260 | | - .action(buildTypescript); |
261 | | -cli |
262 | | - .command('build-tsdoc') |
263 | | - .description("Builds a package's TSDoc file") |
264 | | - .option('-v --verbose', 'Prints additional information to the console', false) |
265 | | - .action(buildTSDoc); |
| 243 | + |
| 244 | +registerBundleCommand(cli.command('build-package')); |
| 245 | +registerBuildTSCommand(cli.command('build-ts')); |
| 246 | +registerBuildDocsCommand(cli.command('build-tsdoc')); |
266 | 247 |
|
267 | 248 | /** Merge editor settings */ |
268 | 249 | cli |
|
0 commit comments