11import { Args , Flags } from '@oclif/core' ;
22import { BaseCommand } from '../base.js' ;
33import { VercelBuildOutputAPIBuilder } from '../lib/builders/vercel-build-output-api.js' ;
4- import { VercelStaticBuilder } from '../lib/builders/vercel-static .js' ;
4+ import { StandaloneBuilder } from '../lib/builders/standalone .js' ;
55import { type BuildTarget , isValidBuildTarget } from '../lib/config/types.js' ;
66import { getWorkflowConfig } from '../lib/config/workflow-config.js' ;
77
@@ -11,15 +11,15 @@ export default class Build extends BaseCommand {
1111 static examples = [
1212 '$ workflow build' ,
1313 '$ workflow build --target vercel-build-output-api' ,
14- '$ workflow build vercel-static ' ,
14+ '$ workflow build standalone ' ,
1515 ] ;
1616
1717 static flags = {
1818 target : Flags . string ( {
1919 char : 't' ,
2020 description : 'build target' ,
21- options : [ 'vercel-static ' , 'vercel-build-output-api' ] ,
22- default : 'vercel-static ' ,
21+ options : [ 'standalone ' , 'vercel-build-output-api' ] ,
22+ default : 'standalone ' ,
2323 } ) ,
2424 'workflow-manifest' : Flags . string ( {
2525 char : 'm' ,
@@ -59,10 +59,10 @@ export default class Build extends BaseCommand {
5959 // Validate build target
6060 if ( ! isValidBuildTarget ( buildTarget ) ) {
6161 this . logWarn (
62- `Invalid target "${ buildTarget } ". Using default "vercel-static ".`
62+ `Invalid target "${ buildTarget } ". Using default "standalone ".`
6363 ) ;
64- this . logWarn ( 'Valid targets: vercel-static , vercel-build-output-api' ) ;
65- buildTarget = 'vercel-static ' ;
64+ this . logWarn ( 'Valid targets: standalone , vercel-build-output-api' ) ;
65+ buildTarget = 'standalone ' ;
6666 }
6767
6868 this . logInfo ( `Using target: ${ buildTarget } ` ) ;
@@ -74,9 +74,9 @@ export default class Build extends BaseCommand {
7474
7575 try {
7676 // Build using appropriate builder
77- if ( config . buildTarget === 'vercel-static ' ) {
78- this . logInfo ( 'Building with VercelStaticBuilder ' ) ;
79- const builder = new VercelStaticBuilder ( config ) ;
77+ if ( config . buildTarget === 'standalone ' ) {
78+ this . logInfo ( 'Building with StandaloneBuilder ' ) ;
79+ const builder = new StandaloneBuilder ( config ) ;
8080 await builder . build ( ) ;
8181 } else if ( config . buildTarget === 'vercel-build-output-api' ) {
8282 this . logInfo ( 'Building with VercelBuildOutputAPIBuilder' ) ;
0 commit comments