File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 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) {
9595 if ( PUBLIC_DIR == null ) {
9696 console . error ( "❌ required parameter --public-dir not provided." ) ;
9797 process . exit ( 1 ) ;
98+ return ;
9899 }
99100 const publicDir = path . resolve ( PUBLIC_DIR ) ;
100101
@@ -124,6 +125,7 @@ export function initApp(commandLineValues: CommandLineOptions) {
124125 if ( ! spaFilename . startsWith ( publicDir ) ) {
125126 console . error ( `❌ SPA file '${ spaFilename } ' not inside public directory!` ) ;
126127 process . exit ( 1 ) ;
128+ return ;
127129 }
128130 }
129131
@@ -144,13 +146,15 @@ export function initApp(commandLineValues: CommandLineOptions) {
144146 if ( ! notFoundPageFilename . startsWith ( publicDir ) ) {
145147 console . error ( `❌ --not-found-page file '${ notFoundPageFilename } ' not inside public directory!` ) ;
146148 process . exit ( 1 ) ;
149+ return ;
147150 }
148151 }
149152
150153 const exists = fs . existsSync ( computeJsDir ) ;
151154 if ( exists ) {
152155 console . error ( `❌ '${ COMPUTE_JS_DIR } ' directory already exists!` ) ;
153156 process . exit ( 1 ) ;
157+ return ;
154158 }
155159
156160 const author = options [ 'author' ] ;
You can’t perform that action at this time.
0 commit comments