File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ export function initApp(commandLineValues: CommandLineOptions) {
95
95
if ( PUBLIC_DIR == null ) {
96
96
console . error ( "❌ required parameter --public-dir not provided." ) ;
97
97
process . exit ( 1 ) ;
98
+ return ;
98
99
}
99
100
const publicDir = path . resolve ( PUBLIC_DIR ) ;
100
101
@@ -124,6 +125,7 @@ export function initApp(commandLineValues: CommandLineOptions) {
124
125
if ( ! spaFilename . startsWith ( publicDir ) ) {
125
126
console . error ( `❌ SPA file '${ spaFilename } ' not inside public directory!` ) ;
126
127
process . exit ( 1 ) ;
128
+ return ;
127
129
}
128
130
}
129
131
@@ -144,13 +146,15 @@ export function initApp(commandLineValues: CommandLineOptions) {
144
146
if ( ! notFoundPageFilename . startsWith ( publicDir ) ) {
145
147
console . error ( `❌ --not-found-page file '${ notFoundPageFilename } ' not inside public directory!` ) ;
146
148
process . exit ( 1 ) ;
149
+ return ;
147
150
}
148
151
}
149
152
150
153
const exists = fs . existsSync ( computeJsDir ) ;
151
154
if ( exists ) {
152
155
console . error ( `❌ '${ COMPUTE_JS_DIR } ' directory already exists!` ) ;
153
156
process . exit ( 1 ) ;
157
+ return ;
154
158
}
155
159
156
160
const author = options [ 'author' ] ;
You can’t perform that action at this time.
0 commit comments