@alauda/doom 0.20.3 → 0.20.5

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.
@@ -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
- if (outDir) {
275
- mergedConfig.outDir = outDir;
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 : version)}`;
283
277
  if (mergedConfig.builderConfig?.server?.open === true) {
284
278
  mergedConfig.builderConfig.server.open = mergedConfig.base;
285
279
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/doom",
3
- "version": "0.20.3",
3
+ "version": "0.20.5",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
6
  "repository": "https://gitlab-ce.alauda.cn/idp/Doom.git",