Skip to content

Commit 77e63d3

Browse files
committed
Add return statement after process.exit to help the compiler
1 parent 74848c8 commit 77e63d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/init-app.ts

+4
Original file line numberDiff line numberDiff 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'];

0 commit comments

Comments
 (0)