cli: reveal backend:bundle command

This commit is contained in:
Patrik Oldsberg
2020-12-30 17:31:54 +01:00
parent 3fc684738d
commit 45c7db0955
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export default async (cmd: Command) => {
try {
await createDistWorkspace([pkg.name], {
targetDir: tmpDir,
buildDependencies: Boolean(cmd.build),
buildDependencies: Boolean(cmd.buildDependencies),
buildExcludes: [pkg.name],
parallel: parseParallel(process.env[PARALLEL_ENV_VAR]),
skeleton: SKELETON_FILE,
+6 -3
View File
@@ -45,9 +45,12 @@ export function registerCommands(program: CommanderStatic) {
.action(lazy(() => import('./backend/build').then(m => m.default)));
program
.command('backend:__experimental__bundle__', { hidden: true })
.description('Bundle all backend packages into dist-workspace')
.option('--build', 'Build packages before packing them into the image')
.command('backend:bundle')
.description('Bundle the backend into a deployment archive')
.option(
'--build-dependencies',
'Build all local package dependencies before bundling the backend',
)
.action(lazy(() => import('./backend/bundle').then(m => m.default)));
program