@aravindc26/velu 0.12.2 → 0.12.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/package.json +1 -1
- package/src/cli.ts +2 -1
- package/src/preview-engine/next.config.mjs +1 -1
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { resolve, join, dirname, delimiter } from "node:path";
|
|
|
2
2
|
import { existsSync, mkdirSync, writeFileSync, readdirSync, copyFileSync, rmSync, readFileSync, statSync } from "node:fs";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { tmpdir } from "node:os";
|
|
5
6
|
|
|
6
7
|
const __filename = fileURLToPath(import.meta.url);
|
|
7
8
|
const PACKAGE_ROOT = resolve(dirname(__filename), "..");
|
|
@@ -504,7 +505,7 @@ function previewServerEnv(): NodeJS.ProcessEnv {
|
|
|
504
505
|
}
|
|
505
506
|
|
|
506
507
|
async function previewServer(port: number) {
|
|
507
|
-
const runtimeDir = join(
|
|
508
|
+
const runtimeDir = join(tmpdir(), "velu-preview-out");
|
|
508
509
|
|
|
509
510
|
// Clean and copy preview engine to runtime dir
|
|
510
511
|
try { rmSync(runtimeDir, { recursive: true, force: true }); } catch {}
|