|
| 1 | +diff --git a/lib/_chunks-es/execScript.js b/lib/_chunks-es/execScript.js |
| 2 | +index bc9aab578a46e17a253cc37188cd7f01c691dd84..5c75e870e67bda7fb74085ba2db51c8d12d7b2c4 100644 |
| 3 | +--- a/lib/_chunks-es/execScript.js |
| 4 | ++++ b/lib/_chunks-es/execScript.js |
| 5 | +@@ -1,10 +1,11 @@ |
| 6 | + import { spawn } from "node:child_process"; |
| 7 | + import fs from "node:fs/promises"; |
| 8 | + import path from "node:path"; |
| 9 | ++import { fileURLToPath } from "node:url"; |
| 10 | + import readPkgUp from "read-pkg-up"; |
| 11 | + import { hideBin } from "yargs/helpers"; |
| 12 | + import yargs from "yargs/yargs"; |
| 13 | +-const __dirname$1 = path.dirname(new URL(import.meta.url).pathname); |
| 14 | ++const __dirname$1 = path.dirname(fileURLToPath(import.meta.url)); |
| 15 | + async function parseCliFlags(args) { |
| 16 | + return { |
| 17 | + ...await yargs(hideBin(args.argv || process.argv).slice(2)).option("with-user-token", { |
| 18 | +diff --git a/lib/_chunks-es/helpers.js b/lib/_chunks-es/helpers.js |
| 19 | +index e8e33439e8c5637a769a002837cc3212b232e61d..858e9c61fefc9a800c5b799d9daaea561b3d0e09 100644 |
| 20 | +--- a/lib/_chunks-es/helpers.js |
| 21 | ++++ b/lib/_chunks-es/helpers.js |
| 22 | +@@ -1,11 +1,12 @@ |
| 23 | + import fs from "node:fs/promises"; |
| 24 | + import path from "node:path"; |
| 25 | ++import { fileURLToPath } from "node:url"; |
| 26 | + import { PassThrough } from "node:stream"; |
| 27 | + import FormData from "form-data"; |
| 28 | + import { customAlphabet } from "nanoid"; |
| 29 | + import readPkgUp from "read-pkg-up"; |
| 30 | + import { debug as debug$1, determineIsApp } from "./_internal.js"; |
| 31 | +-const __dirname$1 = path.dirname(new URL(import.meta.url).pathname), debug = debug$1.extend("deploy"); |
| 32 | ++const __dirname$1 = path.dirname(fileURLToPath(import.meta.url)), debug = debug$1.extend("deploy"); |
| 33 | + function promiseWithResolvers() { |
| 34 | + let resolve, reject; |
| 35 | + return { |
| 36 | +diff --git a/lib/_chunks-es/previewServer.js b/lib/_chunks-es/previewServer.js |
| 37 | +index 150bbcfbe2c4ae2784a801d9e25d84d278c740ac..e9d2533b1edcfb147e52569b21d550003ad03b94 100644 |
| 38 | +--- a/lib/_chunks-es/previewServer.js |
| 39 | ++++ b/lib/_chunks-es/previewServer.js |
| 40 | +@@ -1,11 +1,12 @@ |
| 41 | + import { constants } from "node:fs"; |
| 42 | + import fs from "node:fs/promises"; |
| 43 | + import path from "node:path"; |
| 44 | ++import { fileURLToPath } from "node:url"; |
| 45 | + import readPkgUp from "read-pkg-up"; |
| 46 | + import { debug as debug$2, writeSanityRuntime, getViteConfig, extendViteConfigWithUserConfig, finalizeViteConfig, generateWebManifest } from "./runtime.js"; |
| 47 | + import chalk from "chalk"; |
| 48 | + import { version } from "vite"; |
| 49 | +-const __dirname$1 = path.dirname(new URL(import.meta.url).pathname), debug$1 = debug$2.extend("static"); |
| 50 | ++const __dirname$1 = path.dirname(fileURLToPath(import.meta.url)), debug$1 = debug$2.extend("static"); |
| 51 | + async function buildStaticFiles(options) { |
| 52 | + const { |
| 53 | + cwd, |
| 54 | +diff --git a/lib/_chunks-es/runtime.js b/lib/_chunks-es/runtime.js |
| 55 | +index 4ee5dce07f4ad2090f2435a74285b3e966e41993..afe774cc357ba46e9502f934d8ff943bf502b44d 100644 |
| 56 | +--- a/lib/_chunks-es/runtime.js |
| 57 | ++++ b/lib/_chunks-es/runtime.js |
| 58 | +@@ -765,7 +765,7 @@ function sanityRuntimeRewritePlugin() { |
| 59 | + } |
| 60 | + }; |
| 61 | + } |
| 62 | +-const __dirname$1 = path.dirname(new URL(import.meta.url).pathname); |
| 63 | ++const __dirname$1 = path.dirname(fileURLToPath(import.meta.url)); |
| 64 | + async function getViteConfig(options) { |
| 65 | + const { |
| 66 | + cwd, |
0 commit comments