@alauda/doom 0.20.7 → 0.20.8
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/export.js +1 -2
- package/lib/cli/load-config.js +1 -1
- package/package.json +1 -1
package/lib/cli/export.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { tmpdir } from 'node:os';
|
|
2
1
|
import path from 'node:path';
|
|
3
2
|
import { removeLeadingSlash, serve } from '@rspress/core';
|
|
4
3
|
import { logger } from '@rspress/shared/logger';
|
|
@@ -52,7 +51,7 @@ export const exportCommand = new Command('export')
|
|
|
52
51
|
return pages;
|
|
53
52
|
};
|
|
54
53
|
const commonOptions = {
|
|
55
|
-
tempDir:
|
|
54
|
+
tempDir: path.resolve(outDir, '.doom'),
|
|
56
55
|
port: port,
|
|
57
56
|
host: host || 'localhost',
|
|
58
57
|
outDir,
|
package/lib/cli/load-config.js
CHANGED
|
@@ -277,7 +277,7 @@ export async function loadConfig(root, { config: configFile, base, prefix, v: ve
|
|
|
277
277
|
}
|
|
278
278
|
outDir ||= mergedConfig.outDir;
|
|
279
279
|
mergedConfig.outDir = `dist${(outDir ? addLeadingSlash(addTrailingSlash(outDir)) : base) +
|
|
280
|
-
(isExplicitlyUnversioned(version) ? UNVERSIONED : version)}`;
|
|
280
|
+
(isExplicitlyUnversioned(version) ? UNVERSIONED : outDir ? version : '')}`;
|
|
281
281
|
if (mergedConfig.builderConfig?.server?.open === true) {
|
|
282
282
|
mergedConfig.builderConfig.server.open = mergedConfig.base;
|
|
283
283
|
}
|