@alauda/doom 0.20.3 → 0.20.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli/load-config.js +3 -9
- package/package.json +1 -1
package/lib/cli/load-config.js
CHANGED
|
@@ -271,15 +271,9 @@ export async function loadConfig(root, { config: configFile, base, prefix, v: ve
|
|
|
271
271
|
else {
|
|
272
272
|
mergedConfig.i18nSourcePath = path.resolve(mergedConfig.root, I18N_FILE);
|
|
273
273
|
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
if (mergedConfig.outDir) {
|
|
278
|
-
mergedConfig.outDir = `dist${addLeadingSlash(addTrailingSlash(mergedConfig.outDir)) + version}`;
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
mergedConfig.outDir = `dist${isExplicitlyUnversioned(version) ? `${base}${UNVERSIONED}` : base}`;
|
|
282
|
-
}
|
|
274
|
+
outDir ||= mergedConfig.outDir;
|
|
275
|
+
mergedConfig.outDir = `dist${(outDir ? addLeadingSlash(addTrailingSlash(outDir)) : base) +
|
|
276
|
+
(isExplicitlyUnversioned(version) ? UNVERSIONED : '')}`;
|
|
283
277
|
if (mergedConfig.builderConfig?.server?.open === true) {
|
|
284
278
|
mergedConfig.builderConfig.server.open = mergedConfig.base;
|
|
285
279
|
}
|