@@ -13,7 +13,7 @@ type Options = Omit<Input, 'output'> & {
1313} ;
1414
1515export default async function customTarget ( { options, root, report } : Options ) {
16- if ( options ?. script === undefined ) {
16+ if ( options ?. script == null ) {
1717 report . error (
1818 dedent (
1919 `No script was provided with the custom target.
@@ -25,7 +25,7 @@ export default async function customTarget({ options, root, report }: Options) {
2525
2626 if ( options . clean ) {
2727 report . info (
28- `Cleaning up previous custom build at ${ kleur . blue (
28+ `Cleaning up ${ kleur . blue (
2929 path . relative ( root , options . clean )
3030 ) } `
3131 ) ;
@@ -39,7 +39,7 @@ export default async function customTarget({ options, root, report }: Options) {
3939 // usr/bin/yarn -> yarn
4040 const packageManagerName = path . basename ( packageManager ) ;
4141 report . info (
42- `Calling ${ kleur . blue ( packageManagerName ) } ${ kleur . blue (
42+ `Running ${ kleur . blue ( packageManagerName ) } ${ kleur . blue (
4343 packageManagerArgs . join ( ' ' )
4444 ) } `
4545 ) ;
@@ -49,7 +49,7 @@ export default async function customTarget({ options, root, report }: Options) {
4949 stdio : [ 'ignore' , 'ignore' , 'inherit' ] ,
5050 } ) ;
5151 } catch ( e ) {
52- report . error ( `Couldn't run the ${ kleur . blue ( options . script ) } script ` ) ;
52+ report . error ( `An error occurred when running ${ kleur . blue ( options . script ) } ` ) ;
5353 process . exit ( 1 ) ;
5454 }
5555
0 commit comments