@@ -84,11 +84,17 @@
|
|
84
84
|
const content = readFileSync(sveltekitConfig, 'utf8');
|
85
85
|
const match = regex.exec(content);
|
86
86
|
if (match) {
|
87
|
-
|
87
|
+
const outputPath = path.join(process.cwd(), match[1]);
|
88
|
+
if (existsSync(outputPath)) {
|
89
|
+
return outputPath;
|
90
|
+
}
|
88
91
|
}
|
89
92
|
else {
|
90
93
|
// default output directory
|
91
|
-
|
94
|
+
const outputPath = path.join(process.cwd(), 'build');
|
95
|
+
if (existsSync(outputPath)) {
|
96
|
+
return outputPath;
|
97
|
+
}
|
92
98
|
}
|
93
99
|
}
|
94
100
|
}
|