diff --git a/packages/create-void/package.json b/packages/create-void/package.json index 67d0d9fcd..eb3a032a4 100644 --- a/packages/create-void/package.json +++ b/packages/create-void/package.json @@ -23,7 +23,7 @@ "devDependencies": { "@clack/prompts": "catalog:", "@types/node": "catalog:", - "pathe": "catalog:", + "pathslash": "catalog:", "picocolors": "^1.1.1", "vite-plus": "catalog:" } diff --git a/packages/create-void/src/index.ts b/packages/create-void/src/index.ts index 8da00d5fa..5dfbd9016 100644 --- a/packages/create-void/src/index.ts +++ b/packages/create-void/src/index.ts @@ -2,7 +2,7 @@ import { existsSync, mkdirSync, readdirSync, writeFileSync } from 'node:fs'; import * as p from '@clack/prompts'; -import { resolve } from 'pathe'; +import { resolve } from 'pathslash'; import pc from 'picocolors'; import { detectPM, pmExec, pmInstall, run } from './pm.ts'; diff --git a/packages/create-void/vite.config.ts b/packages/create-void/vite.config.ts index 453f5d4b4..e98b1c07d 100644 --- a/packages/create-void/vite.config.ts +++ b/packages/create-void/vite.config.ts @@ -15,7 +15,7 @@ export default defineConfig({ 'fast-string-width', 'fast-wrap-ansi', 'sisteransi', - 'pathe', + 'pathslash', 'picocolors', ], }, diff --git a/packages/md/package.json b/packages/md/package.json index 1a8fd0649..86f5b366f 100644 --- a/packages/md/package.json +++ b/packages/md/package.json @@ -48,7 +48,7 @@ "markdown-it-container": "^4.0.0", "markdown-it-emoji": "^3.0.0", "markdown-it-footnote": "^4.0.0", - "pathe": "catalog:", + "pathslash": "catalog:", "shiki": "^4.3.1", "tinyglobby": "^0.2.17" }, diff --git a/packages/md/src/plugin.ts b/packages/md/src/plugin.ts index b921ee97e..762acb28c 100644 --- a/packages/md/src/plugin.ts +++ b/packages/md/src/plugin.ts @@ -1,6 +1,6 @@ import { createHash } from 'node:crypto'; import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync } from 'node:fs'; -import { dirname, join, relative, resolve } from 'pathe'; +import { dirname, join, relative, resolve } from 'pathslash'; import { glob } from 'tinyglobby'; import { normalizePath, type Plugin, type ResolvedConfig, type ViteDevServer } from 'vite'; import { resolvePagesDir } from 'void/pages'; diff --git a/packages/md/src/plugins/snippet.ts b/packages/md/src/plugins/snippet.ts index b68d99351..0d3e4aad2 100644 --- a/packages/md/src/plugins/snippet.ts +++ b/packages/md/src/plugins/snippet.ts @@ -1,7 +1,7 @@ import { existsSync, readFileSync, statSync } from 'node:fs'; import type MarkdownExit from 'markdown-exit'; import type { RuleBlock, Token } from 'markdown-exit'; -import { resolve, dirname } from 'pathe'; +import { resolve, dirname } from 'pathslash'; const rawPathRegexp = /^(.+?(?:(?:\.([a-z0-9]+))?))(?:(#[\w-]+))?(?: ?(?:\{(\d+(?:[,-]\d+)*)? ?(\S+)? ?(\S+)?}))? ?(?:\[(.+)\])?$/; diff --git a/packages/md/test/integration/markdown-blog.test.ts b/packages/md/test/integration/markdown-blog.test.ts index 668911dec..fab51f1f8 100644 --- a/packages/md/test/integration/markdown-blog.test.ts +++ b/packages/md/test/integration/markdown-blog.test.ts @@ -1,6 +1,6 @@ import { execSync } from 'node:child_process'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { chromium, type Browser, type Page } from 'playwright'; import { describe, expect, it, beforeAll, afterAll } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/md/test/unit/md-types.test.ts b/packages/md/test/unit/md-types.test.ts index 220b02af7..8d3cadf6c 100644 --- a/packages/md/test/unit/md-types.test.ts +++ b/packages/md/test/unit/md-types.test.ts @@ -1,6 +1,6 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'; import { generateMdTypes } from '../../src/codegen/md-types.ts'; diff --git a/packages/md/test/unit/plugin-source-dir.test.ts b/packages/md/test/unit/plugin-source-dir.test.ts index d69f2c4b8..cb7ce7fd3 100644 --- a/packages/md/test/unit/plugin-source-dir.test.ts +++ b/packages/md/test/unit/plugin-source-dir.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import type { Plugin } from 'vite'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { voidMarkdown } from '../../src/plugin.ts'; diff --git a/packages/react/package.json b/packages/react/package.json index 8bd6506a7..a897c1212 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -51,7 +51,7 @@ "@types/node": "catalog:", "@types/react": "^19.2.17", "@types/react-dom": "^19.2.3", - "pathe": "catalog:", + "pathslash": "catalog:", "react": "^19.2.7", "react-dom": "^19.2.7", "vite": "catalog:", diff --git a/packages/react/src/plugin-islands.ts b/packages/react/src/plugin-islands.ts index bc6c78f35..851b804d9 100644 --- a/packages/react/src/plugin-islands.ts +++ b/packages/react/src/plugin-islands.ts @@ -1,5 +1,5 @@ import { existsSync, readFileSync } from 'node:fs'; -import { dirname, resolve, relative } from 'pathe'; +import { dirname, resolve, relative } from 'pathslash'; import { normalizePath, type Plugin, type ResolvedConfig } from 'vite'; import { scanPages, resolveEffectiveLayoutChain } from 'void/pages'; import type { PageScanResult } from 'void/pages'; diff --git a/packages/react/src/plugin-pages.ts b/packages/react/src/plugin-pages.ts index 137af552c..57dc1bb57 100644 --- a/packages/react/src/plugin-pages.ts +++ b/packages/react/src/plugin-pages.ts @@ -1,5 +1,5 @@ import { existsSync, readdirSync } from 'node:fs'; -import { dirname, relative } from 'pathe'; +import { dirname, relative } from 'pathslash'; import { normalizePath, type Plugin, type ResolvedConfig, type ViteDevServer } from 'vite'; import { resolveStaticPageDataBuildOptions, scanPages } from 'void/pages'; import type { PageScanResult, StaticPageDataBuildOptions } from 'void/pages'; diff --git a/packages/react/test/integration/react-pages-client.test.ts b/packages/react/test/integration/react-pages-client.test.ts index afc240fe8..608243615 100644 --- a/packages/react/test/integration/react-pages-client.test.ts +++ b/packages/react/test/integration/react-pages-client.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { chromium, type Browser, type Page } from 'playwright'; import { describe, expect, it, beforeAll, afterAll } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/react/test/unit/plugin-islands.test.ts b/packages/react/test/unit/plugin-islands.test.ts index f4468d192..8cf9c6154 100644 --- a/packages/react/test/unit/plugin-islands.test.ts +++ b/packages/react/test/unit/plugin-islands.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, readFileSync, writeFileSync, rmSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it, beforeEach, afterEach } from 'vite-plus/test'; import { islandsPlugin } from '../../src/plugin-islands.ts'; diff --git a/packages/react/test/unit/plugin-pages.test.ts b/packages/react/test/unit/plugin-pages.test.ts index 1c70120f9..f6283cadd 100644 --- a/packages/react/test/unit/plugin-pages.test.ts +++ b/packages/react/test/unit/plugin-pages.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, rmSync, writeFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { pagesPlugin } from '../../src/plugin-pages.ts'; diff --git a/packages/solid/package.json b/packages/solid/package.json index 830f59830..fb7046f90 100644 --- a/packages/solid/package.json +++ b/packages/solid/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/node": "catalog:", - "pathe": "catalog:", + "pathslash": "catalog:", "solid-js": "^1.9.14", "vite": "catalog:", "vite-plus": "catalog:", diff --git a/packages/solid/src/plugin-islands.ts b/packages/solid/src/plugin-islands.ts index bbb9a5629..fb6b20538 100644 --- a/packages/solid/src/plugin-islands.ts +++ b/packages/solid/src/plugin-islands.ts @@ -1,5 +1,5 @@ import { existsSync, readFileSync } from 'node:fs'; -import { dirname, resolve, relative } from 'pathe'; +import { dirname, resolve, relative } from 'pathslash'; import { normalizePath, type Plugin, type ResolvedConfig } from 'vite'; import { scanPages, resolveEffectiveLayoutChain } from 'void/pages'; import type { PageScanResult } from 'void/pages'; diff --git a/packages/solid/src/plugin-pages.ts b/packages/solid/src/plugin-pages.ts index a0585d95b..f64e69288 100644 --- a/packages/solid/src/plugin-pages.ts +++ b/packages/solid/src/plugin-pages.ts @@ -1,5 +1,5 @@ import { existsSync, readdirSync } from 'node:fs'; -import { dirname } from 'pathe'; +import { dirname } from 'pathslash'; import { normalizePath, type Plugin, type ResolvedConfig, type ViteDevServer } from 'vite'; import { resolveStaticPageDataBuildOptions, scanPages } from 'void/pages'; import type { PageScanResult, StaticPageDataBuildOptions } from 'void/pages'; diff --git a/packages/solid/test/integration/solid-pages-playground.test.ts b/packages/solid/test/integration/solid-pages-playground.test.ts index 794cb5531..38e07af2f 100644 --- a/packages/solid/test/integration/solid-pages-playground.test.ts +++ b/packages/solid/test/integration/solid-pages-playground.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, readFileSync, writeFileSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { chromium, type Browser, type Page } from 'playwright'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/solid/test/unit/plugin-islands.test.ts b/packages/solid/test/unit/plugin-islands.test.ts index 0334d78a5..ba870babf 100644 --- a/packages/solid/test/unit/plugin-islands.test.ts +++ b/packages/solid/test/unit/plugin-islands.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, writeFileSync, rmSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it, beforeEach, afterEach } from 'vite-plus/test'; import { islandsPlugin } from '../../src/plugin-islands.ts'; diff --git a/packages/solid/test/unit/plugin-pages.test.ts b/packages/solid/test/unit/plugin-pages.test.ts index 178c9572c..2867a7e37 100644 --- a/packages/solid/test/unit/plugin-pages.test.ts +++ b/packages/solid/test/unit/plugin-pages.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, rmSync, writeFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { pagesPlugin } from '../../src/plugin-pages.ts'; diff --git a/packages/svelte/package.json b/packages/svelte/package.json index bee1712d2..e56da9044 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -45,7 +45,7 @@ }, "devDependencies": { "@types/node": "catalog:", - "pathe": "catalog:", + "pathslash": "catalog:", "svelte": "^5.56.4", "vite": "catalog:", "vite-plus": "catalog:", diff --git a/packages/svelte/src/plugin-islands.ts b/packages/svelte/src/plugin-islands.ts index b036e9237..103226feb 100644 --- a/packages/svelte/src/plugin-islands.ts +++ b/packages/svelte/src/plugin-islands.ts @@ -1,5 +1,5 @@ import { existsSync, readFileSync } from 'node:fs'; -import { dirname, resolve, relative } from 'pathe'; +import { dirname, resolve, relative } from 'pathslash'; import { normalizePath, type Plugin, type ResolvedConfig } from 'vite'; import { scanPages, resolveEffectiveLayoutChain } from 'void/pages'; import type { PageScanResult } from 'void/pages'; diff --git a/packages/svelte/src/plugin-pages.ts b/packages/svelte/src/plugin-pages.ts index 70ee90d39..d511b87fa 100644 --- a/packages/svelte/src/plugin-pages.ts +++ b/packages/svelte/src/plugin-pages.ts @@ -1,5 +1,5 @@ import { existsSync, readdirSync } from 'node:fs'; -import { dirname } from 'pathe'; +import { dirname } from 'pathslash'; import { normalizePath, type Plugin, type ResolvedConfig, type ViteDevServer } from 'vite'; import { resolveStaticPageDataBuildOptions, scanPages } from 'void/pages'; import type { PageScanResult, StaticPageDataBuildOptions } from 'void/pages'; diff --git a/packages/svelte/test/integration/svelte-pages-client.test.ts b/packages/svelte/test/integration/svelte-pages-client.test.ts index 2c637ab34..87b636aa0 100644 --- a/packages/svelte/test/integration/svelte-pages-client.test.ts +++ b/packages/svelte/test/integration/svelte-pages-client.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, readFileSync, writeFileSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { chromium, type Browser, type Page } from 'playwright'; import { describe, expect, it, beforeAll, afterAll } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/svelte/test/unit/plugin-islands.test.ts b/packages/svelte/test/unit/plugin-islands.test.ts index 21873a775..c980867cd 100644 --- a/packages/svelte/test/unit/plugin-islands.test.ts +++ b/packages/svelte/test/unit/plugin-islands.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, writeFileSync, rmSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it, beforeEach, afterEach } from 'vite-plus/test'; import { islandsPlugin } from '../../src/plugin-islands.ts'; diff --git a/packages/svelte/test/unit/plugin-pages.test.ts b/packages/svelte/test/unit/plugin-pages.test.ts index 9622e9435..b2078d051 100644 --- a/packages/svelte/test/unit/plugin-pages.test.ts +++ b/packages/svelte/test/unit/plugin-pages.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, rmSync, writeFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { pagesPlugin } from '../../src/plugin-pages.ts'; diff --git a/packages/void/package.json b/packages/void/package.json index d11994dc0..94cc719dd 100644 --- a/packages/void/package.json +++ b/packages/void/package.json @@ -347,7 +347,7 @@ "estree-walker": "^3.0.3", "magic-string": "^0.30.21", "ofetch": "2.0.0-alpha.3", - "pathe": "catalog:", + "pathslash": "catalog:", "pglite-server": "0.1.5", "picocolors": "^1.1.1", "tinyglobby": "^0.2.17", diff --git a/packages/void/scripts/sync-skill-docs.mjs b/packages/void/scripts/sync-skill-docs.mjs index 54f14f3f1..223a09847 100644 --- a/packages/void/scripts/sync-skill-docs.mjs +++ b/packages/void/scripts/sync-skill-docs.mjs @@ -1,6 +1,6 @@ import { cpSync, existsSync, mkdirSync, rmSync } from 'node:fs'; import { fileURLToPath } from 'node:url'; -import { dirname, resolve } from 'pathe'; +import { dirname, resolve } from 'pathslash'; import { globSync } from 'tinyglobby'; const scriptsDir = dirname(fileURLToPath(import.meta.url)); diff --git a/packages/void/src/auth/node.ts b/packages/void/src/auth/node.ts index e2c6fb451..c6157b3f2 100644 --- a/packages/void/src/auth/node.ts +++ b/packages/void/src/auth/node.ts @@ -1,4 +1,4 @@ -import { join } from 'pathe'; +import { join } from 'pathslash'; import { loadEnv } from 'vite'; import { readConfig } from '../config.ts'; import { getMiniflareDatabasePath } from '../migrations/runner.ts'; diff --git a/packages/void/src/cli/agents.ts b/packages/void/src/cli/agents.ts index 7972b7682..1e8fc9697 100644 --- a/packages/void/src/cli/agents.ts +++ b/packages/void/src/cli/agents.ts @@ -1,6 +1,6 @@ import { existsSync, readFileSync } from 'node:fs'; import { fileURLToPath } from 'node:url'; -import { join } from 'pathe'; +import { join } from 'pathslash'; export function getPackageDir(): string { let dir = join(fileURLToPath(import.meta.url), '..'); diff --git a/packages/void/src/cli/auth.ts b/packages/void/src/cli/auth.ts index 6cbe28ab6..bf7b74dc6 100644 --- a/packages/void/src/cli/auth.ts +++ b/packages/void/src/cli/auth.ts @@ -2,7 +2,7 @@ import { createHash, randomBytes } from 'node:crypto'; import { readFileSync, writeFileSync, mkdirSync } from 'node:fs'; import { homedir } from 'node:os'; import { Entry } from '@napi-rs/keyring'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { cfAccessHeaders } from '../shared/cf-access.ts'; import { ensureCloudflaredToken } from './cf-access.ts'; import { pc } from './output.ts'; diff --git a/packages/void/src/cli/cli.ts b/packages/void/src/cli/cli.ts index 6d9b9f2d2..0942e435f 100644 --- a/packages/void/src/cli/cli.ts +++ b/packages/void/src/cli/cli.ts @@ -2,7 +2,7 @@ import { readFileSync } from 'node:fs'; import { log } from '@clack/prompts'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { getPackageDir } from './agents.ts'; import { parseDeployArgs } from './args.ts'; import { authSubcommands, parseAuthArgs } from './auth-args.ts'; diff --git a/packages/void/src/cli/client.ts b/packages/void/src/cli/client.ts index d8e0b5b3b..29d0d6e71 100644 --- a/packages/void/src/cli/client.ts +++ b/packages/void/src/cli/client.ts @@ -1,5 +1,5 @@ import { readFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { cfAccessHeaders } from '../shared/cf-access.ts'; import { getPackageDir } from './agents.ts'; import { getApiUrl } from './auth.ts'; diff --git a/packages/void/src/cli/db.ts b/packages/void/src/cli/db.ts index 8d824c780..bb72ea1af 100644 --- a/packages/void/src/cli/db.ts +++ b/packages/void/src/cli/db.ts @@ -2,7 +2,7 @@ import { execFileSync } from 'node:child_process'; import { existsSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from 'node:fs'; import { fileURLToPath, pathToFileURL } from 'node:url'; import { confirm, intro, isCancel, outro, log } from '@clack/prompts'; -import { extname, join, relative, resolve } from 'pathe'; +import { extname, join, relative, resolve } from 'pathslash'; import { readConfig, getDatabaseDialect, diff --git a/packages/void/src/cli/deploy.ts b/packages/void/src/cli/deploy.ts index 5b9bfba84..576d331ae 100644 --- a/packages/void/src/cli/deploy.ts +++ b/packages/void/src/cli/deploy.ts @@ -11,7 +11,7 @@ import { } from 'node:fs'; import { fileURLToPath } from 'node:url'; import { parse as parseJsoncConfig, type ParseError } from 'jsonc-parser'; -import { basename, dirname, join, relative, resolve } from 'pathe'; +import { basename, dirname, join, relative, resolve } from 'pathslash'; const drizzleKitBin = join(fileURLToPath(import.meta.resolve('drizzle-kit')), '..', 'bin.cjs'); const deployDriftCheckDir = join('.void', 'deploy-drift-check'); diff --git a/packages/void/src/cli/env-example.ts b/packages/void/src/cli/env-example.ts index 6c63474c2..339fc1380 100644 --- a/packages/void/src/cli/env-example.ts +++ b/packages/void/src/cli/env-example.ts @@ -26,7 +26,7 @@ */ import { existsSync, readFileSync, writeFileSync } from 'node:fs'; import { log, outro } from '@clack/prompts'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { findEnvFile } from '../codegen/env-types.ts'; import { loadUserEnvFile } from '../host/load-user-env.ts'; import type { StandardSchemaV1 } from '../standard-schema.ts'; diff --git a/packages/void/src/cli/env-scaffold.ts b/packages/void/src/cli/env-scaffold.ts index f3a928f07..ecd8026c0 100644 --- a/packages/void/src/cli/env-scaffold.ts +++ b/packages/void/src/cli/env-scaffold.ts @@ -10,7 +10,7 @@ * wrong guess only costs the user a single-line edit. */ import { existsSync, writeFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { expandDotenv, parseDotenvFile as sharedParseDotenvFile } from '../shared/dotenv.ts'; /** Dotenv files we harvest keys from, in trust order (first wins per key). */ diff --git a/packages/void/src/cli/env-schema-probe.ts b/packages/void/src/cli/env-schema-probe.ts index 19f1352e6..df06a5663 100644 --- a/packages/void/src/cli/env-schema-probe.ts +++ b/packages/void/src/cli/env-schema-probe.ts @@ -1,7 +1,7 @@ import { spawnSync } from 'node:child_process'; import { writeSync } from 'node:fs'; import { fileURLToPath } from 'node:url'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import type { SelfHostSchemaFacts, SelfHostSchemaFailureReason } from './env-validation.ts'; /** diff --git a/packages/void/src/cli/env-validation.ts b/packages/void/src/cli/env-validation.ts index cc00bf97a..995f1efc0 100644 --- a/packages/void/src/cli/env-validation.ts +++ b/packages/void/src/cli/env-validation.ts @@ -11,7 +11,7 @@ import { spawn } from 'node:child_process'; import { existsSync, readFileSync } from 'node:fs'; import { parse as parseJsonc, type ParseError } from 'jsonc-parser'; -import { dirname, join, resolve } from 'pathe'; +import { dirname, join, resolve } from 'pathslash'; import { findEnvFile } from '../codegen/env-types.ts'; import { loadUserEnvFile } from '../host/load-user-env.ts'; import { voidWarn } from '../log.ts'; diff --git a/packages/void/src/cli/env.ts b/packages/void/src/cli/env.ts index 2e94dbefb..20001643f 100644 --- a/packages/void/src/cli/env.ts +++ b/packages/void/src/cli/env.ts @@ -1,6 +1,6 @@ import { mkdirSync, writeFileSync } from 'node:fs'; import { intro, outro, log, note } from '@clack/prompts'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { findEnvFile, generateEnvTypes } from '../codegen/env-types.ts'; import { getToken } from './auth.ts'; import { PlatformClient } from './client.ts'; diff --git a/packages/void/src/cli/gen.ts b/packages/void/src/cli/gen.ts index 892e89108..640e97b83 100644 --- a/packages/void/src/cli/gen.ts +++ b/packages/void/src/cli/gen.ts @@ -9,7 +9,7 @@ import { } from 'node:fs'; import { fileURLToPath } from 'node:url'; import { intro, outro, log, select, isCancel, cancel } from '@clack/prompts'; -import { join, dirname, relative } from 'pathe'; +import { join, dirname, relative } from 'pathslash'; import { ensureProjectTsconfig } from '../codegen/project-tsconfig.ts'; import { readConfig, getDatabaseDialect } from '../config.ts'; import { writeDrizzleConfig } from '../drizzle/config.ts'; diff --git a/packages/void/src/cli/headers.ts b/packages/void/src/cli/headers.ts index fae55d8c1..7d6ddccdf 100644 --- a/packages/void/src/cli/headers.ts +++ b/packages/void/src/cli/headers.ts @@ -1,5 +1,5 @@ import { existsSync, readFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { convertFallbacksConfig, convertHeadersConfig, diff --git a/packages/void/src/cli/help.ts b/packages/void/src/cli/help.ts index d4d82c41d..c6575c060 100644 --- a/packages/void/src/cli/help.ts +++ b/packages/void/src/cli/help.ts @@ -1,6 +1,6 @@ import { readFileSync } from 'node:fs'; import { note, outro } from '@clack/prompts'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { getPackageDir } from './agents.ts'; import { asciiArts } from './ascii.ts'; import { categoryTitle, helpLine, pc, sectionTitle } from './output.ts'; diff --git a/packages/void/src/cli/init.ts b/packages/void/src/cli/init.ts index c2b62dbc9..ac706ca06 100644 --- a/packages/void/src/cli/init.ts +++ b/packages/void/src/cli/init.ts @@ -14,7 +14,7 @@ import { parseArgs } from 'node:util'; import { intro, outro, log, confirm, isCancel, cancel, note, select, text } from '@clack/prompts'; import { parse, type ParseError } from 'jsonc-parser'; import MagicString from 'magic-string'; -import { basename, dirname, isAbsolute, join, relative, resolve } from 'pathe'; +import { basename, dirname, isAbsolute, join, relative, resolve } from 'pathslash'; import { createProjectTsconfig, ensureProjectTsconfig } from '../codegen/project-tsconfig.ts'; import { getDatabaseDialect, readConfig, type DatabaseDialect } from '../config.ts'; import { writeDrizzleConfig } from '../drizzle/config.ts'; diff --git a/packages/void/src/cli/log-file.ts b/packages/void/src/cli/log-file.ts index 15cab75c4..89238b065 100644 --- a/packages/void/src/cli/log-file.ts +++ b/packages/void/src/cli/log-file.ts @@ -1,6 +1,6 @@ import { createWriteStream, mkdirSync, type WriteStream } from 'node:fs'; import { homedir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; type Level = 'debug' | 'info' | 'warn' | 'error'; diff --git a/packages/void/src/cli/mcp.ts b/packages/void/src/cli/mcp.ts index 633a79a91..185cf0ab7 100644 --- a/packages/void/src/cli/mcp.ts +++ b/packages/void/src/cli/mcp.ts @@ -1,7 +1,7 @@ import { existsSync, readdirSync, readFileSync } from 'node:fs'; import { createInterface } from 'node:readline'; import { fileURLToPath } from 'node:url'; -import { dirname, join } from 'pathe'; +import { dirname, join } from 'pathslash'; import { getToken } from './auth.ts'; import { PlatformClient } from './client.ts'; import { writeProjectConfig } from './project.ts'; diff --git a/packages/void/src/cli/package.ts b/packages/void/src/cli/package.ts index 497f82989..003a8cab4 100644 --- a/packages/void/src/cli/package.ts +++ b/packages/void/src/cli/package.ts @@ -2,7 +2,7 @@ import { createHash } from 'node:crypto'; import { existsSync, readFileSync, readdirSync } from 'node:fs'; import { hash as blake3hash } from 'blake3-jit'; import ignore from 'ignore'; -import { extname, join, relative } from 'pathe'; +import { extname, join, relative } from 'pathslash'; import type { InferredBindings } from '../inference/walk.ts'; import { buildMigrationPlanBundle } from '../migrations/plan.ts'; import type { MigrationFile } from '../migrations/validate.ts'; diff --git a/packages/void/src/cli/preset.ts b/packages/void/src/cli/preset.ts index 48ca410a3..655491cbb 100644 --- a/packages/void/src/cli/preset.ts +++ b/packages/void/src/cli/preset.ts @@ -1,7 +1,7 @@ import { existsSync, readFileSync } from 'node:fs'; import { createRequire } from 'node:module'; import { fileURLToPath } from 'node:url'; -import { dirname, join, resolve } from 'pathe'; +import { dirname, join, resolve } from 'pathslash'; import { readProjectPaths } from '../project-paths.ts'; import { getPackageDependencies, diff --git a/packages/void/src/cli/project.ts b/packages/void/src/cli/project.ts index 3e40b329d..ff2056e43 100644 --- a/packages/void/src/cli/project.ts +++ b/packages/void/src/cli/project.ts @@ -1,5 +1,5 @@ import { readFileSync, writeFileSync, mkdirSync, rmSync } from 'node:fs'; -import { join, dirname } from 'pathe'; +import { join, dirname } from 'pathslash'; export type ProjectConfig = { projectId: string; diff --git a/packages/void/src/cli/provision.ts b/packages/void/src/cli/provision.ts index fd577f151..0134b01d0 100644 --- a/packages/void/src/cli/provision.ts +++ b/packages/void/src/cli/provision.ts @@ -17,7 +17,7 @@ import { import { createRequire } from 'node:module'; import { types as utilTypes } from 'node:util'; import { parse, type ParseError } from 'jsonc-parser'; -import { basename, dirname, join, normalize, resolve } from 'pathe'; +import { basename, dirname, join, normalize, resolve } from 'pathslash'; import lockfile from 'proper-lockfile'; import { voidLog, voidWarn } from '../log.ts'; import { scanWranglerDotenvKeys } from '../shared/dotenv.ts'; @@ -2406,7 +2406,7 @@ function loadProperLockfileInternals(): ProperLockfileInternals | undefined { /** * `realpathSync` is `node:fs`, so it returns a NATIVE path — backslashes on Windows — - * while every other path in this module comes from `pathe` and is POSIX-normalized, + * while every other path in this module comes from `pathslash` and is POSIX-normalized, * including the not-yet-created branch below (whose `join()` already normalizes). Without * this, `canonicalizeConfigPath` hands back TWO different spellings of the same file * depending only on whether it happens to exist yet, defeating the "ONE identity" contract diff --git a/packages/void/src/cli/resolve-project.ts b/packages/void/src/cli/resolve-project.ts index 28cc4656e..cc689cc1c 100644 --- a/packages/void/src/cli/resolve-project.ts +++ b/packages/void/src/cli/resolve-project.ts @@ -1,5 +1,5 @@ import { readFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import type { ProjectResponse } from './client.ts'; import type { ProjectConfig } from './project.ts'; diff --git a/packages/void/src/cli/skills.ts b/packages/void/src/cli/skills.ts index f8a1f8f15..2333a800a 100644 --- a/packages/void/src/cli/skills.ts +++ b/packages/void/src/cli/skills.ts @@ -7,7 +7,7 @@ import { symlinkSync, } from 'node:fs'; import { log } from '@clack/prompts'; -import { join, relative } from 'pathe'; +import { join, relative } from 'pathslash'; import { getPackageDir, type AgentConfig } from './agents.ts'; type SkillInfo = { diff --git a/packages/void/src/cli/wrangler.ts b/packages/void/src/cli/wrangler.ts index fd05652a6..176f3f681 100644 --- a/packages/void/src/cli/wrangler.ts +++ b/packages/void/src/cli/wrangler.ts @@ -12,7 +12,7 @@ import { type Node, type ParseError, } from 'jsonc-parser'; -import { join, normalize } from 'pathe'; +import { join, normalize } from 'pathslash'; import type { VoidConfig } from '../config.ts'; import type { InferredBindings } from '../inference/walk.ts'; import type { WebSocketRouteDefinition } from '../router/websocket.ts'; diff --git a/packages/void/src/cli/wrapper.ts b/packages/void/src/cli/wrapper.ts index d7d28fad6..ab3510ed1 100644 --- a/packages/void/src/cli/wrapper.ts +++ b/packages/void/src/cli/wrapper.ts @@ -9,7 +9,7 @@ import { readdirSync, } from 'node:fs'; import { createRequire } from 'node:module'; -import { dirname, join, extname } from 'pathe'; +import { dirname, join, extname } from 'pathslash'; import { build } from 'vite'; import type { MigrationPlanBundle } from '../migrations/plan.ts'; import { readProjectPaths } from '../project-paths.ts'; diff --git a/packages/void/src/cli/yarn-pnp.ts b/packages/void/src/cli/yarn-pnp.ts index 19c66028f..7de423ee1 100644 --- a/packages/void/src/cli/yarn-pnp.ts +++ b/packages/void/src/cli/yarn-pnp.ts @@ -1,6 +1,6 @@ import { existsSync, readdirSync } from 'node:fs'; import { pathToFileURL } from 'node:url'; -import { dirname, join } from 'pathe'; +import { dirname, join } from 'pathslash'; /** * Read PnP runtime files at a single directory without walking diff --git a/packages/void/src/codegen/db-types.ts b/packages/void/src/codegen/db-types.ts index 5335bb010..d9b0dd2c2 100644 --- a/packages/void/src/codegen/db-types.ts +++ b/packages/void/src/codegen/db-types.ts @@ -1,5 +1,5 @@ import { mkdirSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import type { SchemaLocation } from '../drizzle/discover.ts'; import { writeFileIfChanged } from './write-if-changed.ts'; diff --git a/packages/void/src/codegen/env-types.ts b/packages/void/src/codegen/env-types.ts index 50254ab1c..cb6a252fc 100644 --- a/packages/void/src/codegen/env-types.ts +++ b/packages/void/src/codegen/env-types.ts @@ -1,5 +1,5 @@ import { existsSync } from 'node:fs'; -import { relative } from 'pathe'; +import { relative } from 'pathslash'; import { voidWarn } from '../log.ts'; import { readProjectPaths, type ProjectPaths } from '../project-paths.ts'; diff --git a/packages/void/src/codegen/prepare.ts b/packages/void/src/codegen/prepare.ts index f46365194..fe3fad11d 100644 --- a/packages/void/src/codegen/prepare.ts +++ b/packages/void/src/codegen/prepare.ts @@ -1,6 +1,6 @@ import { existsSync, mkdirSync, rmSync } from 'node:fs'; import { fileURLToPath } from 'node:url'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { loadEnv } from 'vite'; import { findVoidAuthConfig, loadVoidAuthConfig } from '../auth/config.ts'; import { generateVoidAuthDatabaseModule, generateVoidAuthDrizzleSchema } from '../auth/drizzle.ts'; diff --git a/packages/void/src/codegen/project-tsconfig.ts b/packages/void/src/codegen/project-tsconfig.ts index 893858f23..b02ef886c 100644 --- a/packages/void/src/codegen/project-tsconfig.ts +++ b/packages/void/src/codegen/project-tsconfig.ts @@ -1,5 +1,5 @@ import { existsSync, mkdirSync } from 'node:fs'; -import { join, relative } from 'pathe'; +import { join, relative } from 'pathslash'; import { readProjectPaths, type ProjectPaths } from '../project-paths.ts'; import { writeFileIfChanged } from './write-if-changed.ts'; diff --git a/packages/void/src/codegen/queue-types.ts b/packages/void/src/codegen/queue-types.ts index 01627ba30..4697afdb8 100644 --- a/packages/void/src/codegen/queue-types.ts +++ b/packages/void/src/codegen/queue-types.ts @@ -1,4 +1,4 @@ -import { relative } from 'pathe'; +import { relative } from 'pathslash'; import type { QueueDefinition } from '../queues/scan.ts'; /** diff --git a/packages/void/src/codegen/route-types.ts b/packages/void/src/codegen/route-types.ts index b38418d3d..de019a70a 100644 --- a/packages/void/src/codegen/route-types.ts +++ b/packages/void/src/codegen/route-types.ts @@ -1,4 +1,4 @@ -import { relative } from 'pathe'; +import { relative } from 'pathslash'; import type { ScanResult } from '../router/scan.ts'; export type RouteTypesResult = { diff --git a/packages/void/src/codegen/write-if-changed.ts b/packages/void/src/codegen/write-if-changed.ts index 01fa4864f..d7c4ffa8f 100644 --- a/packages/void/src/codegen/write-if-changed.ts +++ b/packages/void/src/codegen/write-if-changed.ts @@ -1,5 +1,5 @@ import { mkdirSync, readFileSync, writeFileSync } from 'node:fs'; -import { dirname } from 'pathe'; +import { dirname } from 'pathslash'; export function writeFileIfChanged(path: string, content: string): boolean { let existing: string | null = null; diff --git a/packages/void/src/config.ts b/packages/void/src/config.ts index 9d3ef1121..8d7806274 100644 --- a/packages/void/src/config.ts +++ b/packages/void/src/config.ts @@ -1,5 +1,5 @@ import { readFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import type { RewriteDestination } from 'void/routes'; import type { DevRedirectRule, HeaderRule, RedirectRule } from './cli/types.ts'; export type { RedirectRule }; diff --git a/packages/void/src/crons/scan.ts b/packages/void/src/crons/scan.ts index 6d0e48149..58d4bc7a2 100644 --- a/packages/void/src/crons/scan.ts +++ b/packages/void/src/crons/scan.ts @@ -1,5 +1,5 @@ import { readFileSync } from 'node:fs'; -import { isAbsolute, join } from 'pathe'; +import { isAbsolute, join } from 'pathslash'; import { glob, globSync } from 'tinyglobby'; const JOB_EXTENSIONS = ['ts', 'mts', 'js', 'mjs']; diff --git a/packages/void/src/drizzle/config.ts b/packages/void/src/drizzle/config.ts index 1584394e8..11a7c1725 100644 --- a/packages/void/src/drizzle/config.ts +++ b/packages/void/src/drizzle/config.ts @@ -1,5 +1,5 @@ import { mkdirSync, writeFileSync } from 'node:fs'; -import { join, relative } from 'pathe'; +import { join, relative } from 'pathslash'; import { readProjectPaths } from '../project-paths.ts'; import { discoverSchema, schemaSpecifier } from './discover.ts'; diff --git a/packages/void/src/drizzle/discover.ts b/packages/void/src/drizzle/discover.ts index 52724493d..9c1fbef99 100644 --- a/packages/void/src/drizzle/discover.ts +++ b/packages/void/src/drizzle/discover.ts @@ -1,5 +1,5 @@ import { existsSync, statSync } from 'node:fs'; -import { relative } from 'pathe'; +import { relative } from 'pathslash'; import { readProjectPaths, type ProjectPaths } from '../project-paths.ts'; export type SchemaLocation = { type: 'file'; path: string } | { type: 'directory'; path: string }; diff --git a/packages/void/src/index.ts b/packages/void/src/index.ts index 5bb5eedcf..e8afe4cda 100644 --- a/packages/void/src/index.ts +++ b/packages/void/src/index.ts @@ -1,7 +1,7 @@ import { closeSync, existsSync, mkdirSync, openSync, readFileSync, writeSync } from 'node:fs'; import { fileURLToPath } from 'node:url'; import { cloudflare, type PluginConfig, type WorkerConfig } from '@cloudflare/vite-plugin'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import pc from 'picocolors'; import { loadEnv, type Plugin } from 'vite'; import { diff --git a/packages/void/src/migrations/collect.ts b/packages/void/src/migrations/collect.ts index b211a739c..dff57c26a 100644 --- a/packages/void/src/migrations/collect.ts +++ b/packages/void/src/migrations/collect.ts @@ -1,5 +1,5 @@ import { mkdirSync, readFileSync, readdirSync, writeFileSync, existsSync } from 'node:fs'; -import { dirname, join } from 'pathe'; +import { dirname, join } from 'pathslash'; /** * Collect all .sql migration files from the migrations directory, diff --git a/packages/void/src/migrations/runner.ts b/packages/void/src/migrations/runner.ts index d24c125a7..181d7a36e 100644 --- a/packages/void/src/migrations/runner.ts +++ b/packages/void/src/migrations/runner.ts @@ -1,6 +1,6 @@ import { createHash, createHmac } from 'node:crypto'; import { existsSync, mkdirSync } from 'node:fs'; -import { dirname, join } from 'pathe'; +import { dirname, join } from 'pathslash'; import { hasPackageDependency, readNearestPackageJson } from '../shared/package-json.ts'; import { collectMigrations } from './collect.ts'; import { classifyMigration } from './plan.ts'; diff --git a/packages/void/src/migrations/validate.ts b/packages/void/src/migrations/validate.ts index 293f2045d..e40e2d854 100644 --- a/packages/void/src/migrations/validate.ts +++ b/packages/void/src/migrations/validate.ts @@ -1,5 +1,5 @@ import { existsSync, readdirSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { readJournal, stripSqlExt, diff --git a/packages/void/src/pages/islands-plugin.ts b/packages/void/src/pages/islands-plugin.ts index c70166086..47889903f 100644 --- a/packages/void/src/pages/islands-plugin.ts +++ b/packages/void/src/pages/islands-plugin.ts @@ -1,5 +1,5 @@ import { existsSync, readFileSync, readdirSync } from 'node:fs'; -import { dirname, resolve } from 'pathe'; +import { dirname, resolve } from 'pathslash'; import { normalizePath, type ResolvedConfig, type ViteDevServer } from 'vite'; import { resolveEffectiveLayoutChain, scanPages } from './scan.ts'; import type { PageScanResult } from './types.ts'; diff --git a/packages/void/src/pages/scan.ts b/packages/void/src/pages/scan.ts index 17f21adc7..200cfa064 100644 --- a/packages/void/src/pages/scan.ts +++ b/packages/void/src/pages/scan.ts @@ -1,5 +1,5 @@ import { existsSync, readFileSync } from 'node:fs'; -import { join, dirname, basename, extname } from 'pathe'; +import { join, dirname, basename, extname } from 'pathslash'; import { glob } from 'tinyglobby'; import { readProjectPaths, type ProjectPaths } from '../project-paths.ts'; import { parseRouteFilename } from '../router/parse-filename.ts'; diff --git a/packages/void/src/pages/static-data.ts b/packages/void/src/pages/static-data.ts index 26a75b408..e20b42bcf 100644 --- a/packages/void/src/pages/static-data.ts +++ b/packages/void/src/pages/static-data.ts @@ -1,4 +1,4 @@ -import { join } from 'pathe'; +import { join } from 'pathslash'; import { parseRedirectsFile } from '../cli/headers.ts'; import { readConfig } from '../config.ts'; diff --git a/packages/void/src/plugin-dev-triggers-hint.ts b/packages/void/src/plugin-dev-triggers-hint.ts index 6ffe8d66f..5a4b7b8ec 100644 --- a/packages/void/src/plugin-dev-triggers-hint.ts +++ b/packages/void/src/plugin-dev-triggers-hint.ts @@ -1,4 +1,4 @@ -import { join } from 'pathe'; +import { join } from 'pathslash'; import type { Plugin } from 'vite'; import { scanJobsSync } from './crons/scan.ts'; import { voidLog } from './log.ts'; diff --git a/packages/void/src/plugin-drizzle.ts b/packages/void/src/plugin-drizzle.ts index 3d3007a19..bcb61b082 100644 --- a/packages/void/src/plugin-drizzle.ts +++ b/packages/void/src/plugin-drizzle.ts @@ -1,6 +1,6 @@ import { existsSync, readdirSync } from 'node:fs'; import { fileURLToPath } from 'node:url'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { normalizePath, type Plugin } from 'vite'; import { DRIZZLE_OPERATORS, generateDbDts } from './codegen/db-types.ts'; import { ensureProjectTsconfig } from './codegen/project-tsconfig.ts'; diff --git a/packages/void/src/plugin-env-client-guard.ts b/packages/void/src/plugin-env-client-guard.ts index fb9761abf..ccb5ecfec 100644 --- a/packages/void/src/plugin-env-client-guard.ts +++ b/packages/void/src/plugin-env-client-guard.ts @@ -1,5 +1,5 @@ import { walk } from 'estree-walker'; -import { relative } from 'pathe'; +import { relative } from 'pathslash'; import { parseSync, type Plugin } from 'vite'; import { isIdentifier, diff --git a/packages/void/src/plugin-env-schema.ts b/packages/void/src/plugin-env-schema.ts index 330423cab..d767a247a 100644 --- a/packages/void/src/plugin-env-schema.ts +++ b/packages/void/src/plugin-env-schema.ts @@ -1,5 +1,5 @@ import { mkdirSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { type Plugin, type ResolvedConfig } from 'vite'; import { findEnvFile, generateEnvTypes } from './codegen/env-types.ts'; import { writeFileIfChanged } from './codegen/write-if-changed.ts'; diff --git a/packages/void/src/plugin-framework-triggers.ts b/packages/void/src/plugin-framework-triggers.ts index 12be78192..f71f6c77f 100644 --- a/packages/void/src/plugin-framework-triggers.ts +++ b/packages/void/src/plugin-framework-triggers.ts @@ -1,5 +1,5 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; -import { dirname, join } from 'pathe'; +import { dirname, join } from 'pathslash'; import { normalizePath, type Plugin } from 'vite'; import { scanJobsSync, type JobDefinition } from './crons/scan.ts'; import { voidWarn } from './log.ts'; diff --git a/packages/void/src/plugin-inference.ts b/packages/void/src/plugin-inference.ts index 805d7281c..77b163404 100644 --- a/packages/void/src/plugin-inference.ts +++ b/packages/void/src/plugin-inference.ts @@ -1,5 +1,5 @@ import { existsSync, readFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { globSync } from 'tinyglobby'; import { inferBindingsFromSource, mergeBindings, type InferredBindings } from './inference/walk.ts'; import { readProjectPaths, type ProjectPaths } from './project-paths.ts'; diff --git a/packages/void/src/plugin-migration.ts b/packages/void/src/plugin-migration.ts index b3bdc5348..c17dd45f3 100644 --- a/packages/void/src/plugin-migration.ts +++ b/packages/void/src/plugin-migration.ts @@ -1,5 +1,5 @@ import { existsSync, readFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import type { Plugin } from 'vite'; import type { DatabaseDialect } from './config.ts'; import { voidLog, voidWarn, voidError } from './log.ts'; diff --git a/packages/void/src/plugin-node-target.ts b/packages/void/src/plugin-node-target.ts index 42fb08f7e..cd1aefdb7 100644 --- a/packages/void/src/plugin-node-target.ts +++ b/packages/void/src/plugin-node-target.ts @@ -1,7 +1,7 @@ import { existsSync } from 'node:fs'; import type { IncomingMessage, ServerResponse } from 'node:http'; import { pathToFileURL } from 'node:url'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import type { Plugin } from 'vite'; import { readProjectPaths } from './project-paths.ts'; diff --git a/packages/void/src/plugin-prerender.ts b/packages/void/src/plugin-prerender.ts index 332182908..a5d1054eb 100644 --- a/packages/void/src/plugin-prerender.ts +++ b/packages/void/src/plugin-prerender.ts @@ -1,4 +1,4 @@ -import { join } from 'pathe'; +import { join } from 'pathslash'; import type { Plugin } from 'vite'; import { resolveDistDir, resolveWorkerDirName } from './cli/deploy.ts'; import { isNodeTarget, type VoidConfig } from './config.ts'; diff --git a/packages/void/src/plugin-routing.ts b/packages/void/src/plugin-routing.ts index 51b8958ba..66243893e 100644 --- a/packages/void/src/plugin-routing.ts +++ b/packages/void/src/plugin-routing.ts @@ -1,7 +1,7 @@ import { existsSync, mkdirSync } from 'node:fs'; import { homedir } from 'node:os'; import { fileURLToPath } from 'node:url'; -import { dirname, join, relative } from 'pathe'; +import { dirname, join, relative } from 'pathslash'; import { loadEnv, normalizePath, type Plugin } from 'vite'; import { hasApiRoutes, diff --git a/packages/void/src/prerender.ts b/packages/void/src/prerender.ts index 44b9bc0e2..774490547 100644 --- a/packages/void/src/prerender.ts +++ b/packages/void/src/prerender.ts @@ -9,7 +9,7 @@ import { } from 'node:fs'; import { createRequire } from 'node:module'; import { pathToFileURL } from 'node:url'; -import { dirname, join, relative } from 'pathe'; +import { dirname, join, relative } from 'pathslash'; import { loadEnv } from 'vite'; import { getToken, isStagingMode } from './cli/auth.ts'; import { ensureWranglerCompat } from './cli/wrangler.ts'; @@ -452,7 +452,7 @@ async function runNodePrerenderRunner(root: string, config: NodeRunnerConfig) runnerPath, ` import { pathToFileURL } from "node:url"; -import { join, dirname } from "pathe"; +import { join, dirname } from "pathslash"; import { mkdirSync, readFileSync, writeFileSync } from "node:fs"; const config = JSON.parse(process.argv[2]); diff --git a/packages/void/src/project-paths.ts b/packages/void/src/project-paths.ts index c2b9b0908..d24b6b410 100644 --- a/packages/void/src/project-paths.ts +++ b/packages/void/src/project-paths.ts @@ -1,5 +1,5 @@ import { existsSync, readFileSync } from 'node:fs'; -import { isAbsolute, join, normalize, relative } from 'pathe'; +import { isAbsolute, join, normalize, relative } from 'pathslash'; import type { VoidConfig } from './config.ts'; const SOURCE_CONVENTION_DIRECTORIES = [ diff --git a/packages/void/src/queues/scan.ts b/packages/void/src/queues/scan.ts index fae2c4312..3dae42da8 100644 --- a/packages/void/src/queues/scan.ts +++ b/packages/void/src/queues/scan.ts @@ -1,5 +1,5 @@ import { readFileSync } from 'node:fs'; -import { isAbsolute, join } from 'pathe'; +import { isAbsolute, join } from 'pathslash'; import { glob, globSync } from 'tinyglobby'; const QUEUE_EXTENSIONS = ['ts', 'mts', 'js', 'mjs']; diff --git a/packages/void/src/router/detect-exports.ts b/packages/void/src/router/detect-exports.ts index a5853b52e..2246af195 100644 --- a/packages/void/src/router/detect-exports.ts +++ b/packages/void/src/router/detect-exports.ts @@ -1,5 +1,5 @@ import { readFileSync } from 'node:fs'; -import { basename } from 'pathe'; +import { basename } from 'pathslash'; import { parseSync } from 'vite'; import { isIdentifier, diff --git a/packages/void/src/router/scan.ts b/packages/void/src/router/scan.ts index dfb36532a..2dbdcd13d 100644 --- a/packages/void/src/router/scan.ts +++ b/packages/void/src/router/scan.ts @@ -1,4 +1,4 @@ -import { join } from 'pathe'; +import { join } from 'pathslash'; import { glob, globSync } from 'tinyglobby'; import { scanJobs, type JobDefinition } from '../crons/scan.ts'; import { scanPages } from '../pages/scan.ts'; diff --git a/packages/void/src/router/websocket.ts b/packages/void/src/router/websocket.ts index 4483e3931..fbdd3ee91 100644 --- a/packages/void/src/router/websocket.ts +++ b/packages/void/src/router/websocket.ts @@ -1,5 +1,5 @@ import { readFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { glob, globSync } from 'tinyglobby'; import { parseSync } from 'vite'; import { readProjectPaths, type ProjectPaths } from '../project-paths.ts'; diff --git a/packages/void/src/sandbox/config.ts b/packages/void/src/sandbox/config.ts index 28d3d3076..06de5d0b6 100644 --- a/packages/void/src/sandbox/config.ts +++ b/packages/void/src/sandbox/config.ts @@ -1,6 +1,6 @@ import { readFileSync } from 'node:fs'; import { createRequire } from 'node:module'; -import { dirname, isAbsolute, join } from 'pathe'; +import { dirname, isAbsolute, join } from 'pathslash'; import type { VoidConfig } from '../config.ts'; export const DEFAULT_SANDBOX_BINDING = 'SANDBOX'; diff --git a/packages/void/src/shared/package-json.ts b/packages/void/src/shared/package-json.ts index d6df4669a..7779277e1 100644 --- a/packages/void/src/shared/package-json.ts +++ b/packages/void/src/shared/package-json.ts @@ -1,5 +1,5 @@ import { existsSync, readFileSync } from 'node:fs'; -import { dirname, join } from 'pathe'; +import { dirname, join } from 'pathslash'; export type PackageJson = Record; diff --git a/packages/void/src/shared/utils.ts b/packages/void/src/shared/utils.ts index af5a27e5e..cb402d577 100644 --- a/packages/void/src/shared/utils.ts +++ b/packages/void/src/shared/utils.ts @@ -1,4 +1,4 @@ -import { posix } from 'pathe'; +import { posix } from 'pathslash'; export const isWindows: boolean = typeof process !== 'undefined' && process.platform === 'win32'; diff --git a/packages/void/src/ssr/entry.ts b/packages/void/src/ssr/entry.ts index 6a2bbd5c8..46606d020 100644 --- a/packages/void/src/ssr/entry.ts +++ b/packages/void/src/ssr/entry.ts @@ -1,5 +1,5 @@ import { existsSync, readFileSync } from 'node:fs'; -import { join, relative } from 'pathe'; +import { join, relative } from 'pathslash'; import { parseSync } from 'vite'; import { readProjectPaths, type ProjectPaths } from '../project-paths.ts'; import { diff --git a/packages/void/src/sveltekit.ts b/packages/void/src/sveltekit.ts index 00f79f6f5..39fc03710 100644 --- a/packages/void/src/sveltekit.ts +++ b/packages/void/src/sveltekit.ts @@ -1,5 +1,5 @@ import { existsSync, readFileSync } from 'node:fs'; -import { isAbsolute, join, relative, resolve } from 'pathe'; +import { isAbsolute, join, relative, resolve } from 'pathslash'; type Tsconfig = Record; type TsconfigHook = (config: Tsconfig) => Tsconfig | void; diff --git a/packages/void/test/e2e/cloudflare-deploy-live.test.ts b/packages/void/test/e2e/cloudflare-deploy-live.test.ts index 8da4cca2f..4440acd23 100644 --- a/packages/void/test/e2e/cloudflare-deploy-live.test.ts +++ b/packages/void/test/e2e/cloudflare-deploy-live.test.ts @@ -1,6 +1,6 @@ import { existsSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; // --------------------------------------------------------------------------------------------- diff --git a/packages/void/test/integration/analog.test.ts b/packages/void/test/integration/analog.test.ts index f217be594..e4e97117c 100644 --- a/packages/void/test/integration/analog.test.ts +++ b/packages/void/test/integration/analog.test.ts @@ -1,6 +1,6 @@ import { existsSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/integration/astro.test.ts b/packages/void/test/integration/astro.test.ts index 95945fdce..bd4471621 100644 --- a/packages/void/test/integration/astro.test.ts +++ b/packages/void/test/integration/astro.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, readFileSync, rmSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/integration/cli-help.test.ts b/packages/void/test/integration/cli-help.test.ts index 13532d366..38f3acc8e 100644 --- a/packages/void/test/integration/cli-help.test.ts +++ b/packages/void/test/integration/cli-help.test.ts @@ -1,7 +1,7 @@ import { spawnSync } from 'node:child_process'; import { mkdtempSync, rmSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; const PACKAGE_ROOT = join(import.meta.dirname, '..', '..'); diff --git a/packages/void/test/integration/cloudflare-deploy-build.test.ts b/packages/void/test/integration/cloudflare-deploy-build.test.ts index d334ff98e..0f994ac33 100644 --- a/packages/void/test/integration/cloudflare-deploy-build.test.ts +++ b/packages/void/test/integration/cloudflare-deploy-build.test.ts @@ -1,6 +1,6 @@ import { existsSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join, normalize } from 'pathe'; +import { join, normalize } from 'pathslash'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { computeDesiredCloudflareResources, @@ -169,7 +169,7 @@ describe('playground/kitchen-sink --backend cloudflare real-build deploy guard', ) as { configPath?: string }; // The CF plugin writes this with node:path.relative, so the separator is PLATFORM-NATIVE // (`..\..\dist\ssr\wrangler.json` on Windows). The guard that consumes it resolves through - // pathe, which normalizes backslashes, so compare the normalized form rather than pinning + // pathslash, which normalizes backslashes, so compare the normalized form rather than pinning // a POSIX literal that only holds on one platform. expect(normalize(pointer.configPath ?? '')).toBe('../../dist/ssr/wrangler.json'); }); diff --git a/packages/void/test/integration/direct-r2-deploy.test.ts b/packages/void/test/integration/direct-r2-deploy.test.ts index f9300a170..67019f82b 100644 --- a/packages/void/test/integration/direct-r2-deploy.test.ts +++ b/packages/void/test/integration/direct-r2-deploy.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'; // Capture how many times each asset path is read via `readFileSync`. Mocked diff --git a/packages/void/test/integration/env-cli.test.ts b/packages/void/test/integration/env-cli.test.ts index 676d39c64..35875dca6 100644 --- a/packages/void/test/integration/env-cli.test.ts +++ b/packages/void/test/integration/env-cli.test.ts @@ -2,7 +2,7 @@ import { spawnSync } from 'node:child_process'; import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; import { pathToFileURL } from 'node:url'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; /** diff --git a/packages/void/test/integration/env-prod-validation.test.ts b/packages/void/test/integration/env-prod-validation.test.ts index 81a1d9fb7..0818be4bb 100644 --- a/packages/void/test/integration/env-prod-validation.test.ts +++ b/packages/void/test/integration/env-prod-validation.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'; import { formatEnvReport, validateProdEnv } from '../../src/cli/env-validation.ts'; import { number, string } from '../../src/runtime/env-helpers.ts'; diff --git a/packages/void/test/integration/full-deploy-manifest.test.ts b/packages/void/test/integration/full-deploy-manifest.test.ts index 5ad82df3d..b41fcc902 100644 --- a/packages/void/test/integration/full-deploy-manifest.test.ts +++ b/packages/void/test/integration/full-deploy-manifest.test.ts @@ -1,6 +1,6 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterAll, afterEach, diff --git a/packages/void/test/integration/kitchen-sink-build.test.ts b/packages/void/test/integration/kitchen-sink-build.test.ts index 9d9f07d8f..899c5972e 100644 --- a/packages/void/test/integration/kitchen-sink-build.test.ts +++ b/packages/void/test/integration/kitchen-sink-build.test.ts @@ -1,6 +1,6 @@ import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { assembleVoidManifest } from '../../src/cli/deploy.ts'; import { readConfig } from '../../src/config.ts'; diff --git a/packages/void/test/integration/kitchen-sink.test.ts b/packages/void/test/integration/kitchen-sink.test.ts index 15f1d8882..da763cf07 100644 --- a/packages/void/test/integration/kitchen-sink.test.ts +++ b/packages/void/test/integration/kitchen-sink.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { readFileSync, rmSync, writeFileSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { chromium, type Browser, type Page } from 'playwright'; import { describe, expect, it, beforeAll, afterAll } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/integration/list-command.test.ts b/packages/void/test/integration/list-command.test.ts index df137e4d3..d8f1e8272 100644 --- a/packages/void/test/integration/list-command.test.ts +++ b/packages/void/test/integration/list-command.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, rmSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it, vi } from 'vite-plus/test'; const tempHomes: Array = []; diff --git a/packages/void/test/integration/mcp-dist.test.ts b/packages/void/test/integration/mcp-dist.test.ts index 7f2973a38..d20a3bd6f 100644 --- a/packages/void/test/integration/mcp-dist.test.ts +++ b/packages/void/test/integration/mcp-dist.test.ts @@ -1,5 +1,5 @@ import { spawn, type ChildProcess } from 'node:child_process'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, it, expect } from 'vite-plus/test'; function sendRpc(proc: ChildProcess, request: object): Promise> { diff --git a/packages/void/test/integration/named-layouts.test.ts b/packages/void/test/integration/named-layouts.test.ts index 2bbe52b70..5ed23fcec 100644 --- a/packages/void/test/integration/named-layouts.test.ts +++ b/packages/void/test/integration/named-layouts.test.ts @@ -1,5 +1,5 @@ import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it, beforeAll, afterAll } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/integration/node-static.test.ts b/packages/void/test/integration/node-static.test.ts index fed26fa48..e795d0263 100644 --- a/packages/void/test/integration/node-static.test.ts +++ b/packages/void/test/integration/node-static.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, mkdirSync, readFileSync, rmSync, statSync, writeFileSync } from 'node:fs'; import { createServer, type Server } from 'node:http'; -import { extname, isAbsolute, join, relative, resolve } from 'pathe'; +import { extname, isAbsolute, join, relative, resolve } from 'pathslash'; import { chromium } from 'playwright'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { collectPrerenderPathsNode } from '../../src/prerender.ts'; diff --git a/packages/void/test/integration/node-target.test.ts b/packages/void/test/integration/node-target.test.ts index 33b1bdd99..dd1a492de 100644 --- a/packages/void/test/integration/node-target.test.ts +++ b/packages/void/test/integration/node-target.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, readFileSync, rmSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/integration/nuxt.test.ts b/packages/void/test/integration/nuxt.test.ts index 801cd4ff0..a51bd158f 100644 --- a/packages/void/test/integration/nuxt.test.ts +++ b/packages/void/test/integration/nuxt.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, readFileSync, rmSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/integration/pg-test.test.ts b/packages/void/test/integration/pg-test.test.ts index 18335f465..79cde9387 100644 --- a/packages/void/test/integration/pg-test.test.ts +++ b/packages/void/test/integration/pg-test.test.ts @@ -2,7 +2,7 @@ import { once } from 'node:events'; import { readFileSync, writeFileSync, unlinkSync } from 'node:fs'; import { PGlite } from '@electric-sql/pglite'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { createServer } from 'pglite-server'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/integration/plugin-env-schema.test.ts b/packages/void/test/integration/plugin-env-schema.test.ts index 52673ef33..7d895b957 100644 --- a/packages/void/test/integration/plugin-env-schema.test.ts +++ b/packages/void/test/integration/plugin-env-schema.test.ts @@ -1,6 +1,6 @@ import { existsSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it, vi } from 'vite-plus/test'; import { envSchemaPlugin } from '../../src/plugin-env-schema.ts'; diff --git a/packages/void/test/integration/prepare-cli.test.ts b/packages/void/test/integration/prepare-cli.test.ts index 940e51948..f26ea0f31 100644 --- a/packages/void/test/integration/prepare-cli.test.ts +++ b/packages/void/test/integration/prepare-cli.test.ts @@ -2,7 +2,7 @@ import { spawnSync } from 'node:child_process'; import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; import { pathToFileURL } from 'node:url'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; const PACKAGE_ROOT = join(import.meta.dirname, '..', '..'); diff --git a/packages/void/test/integration/projects-command.test.ts b/packages/void/test/integration/projects-command.test.ts index 3aecb446c..889c22679 100644 --- a/packages/void/test/integration/projects-command.test.ts +++ b/packages/void/test/integration/projects-command.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it, vi } from 'vite-plus/test'; const tempHomes: Array = []; diff --git a/packages/void/test/integration/purge-cache-command.test.ts b/packages/void/test/integration/purge-cache-command.test.ts index c98034134..fe2ce5ff5 100644 --- a/packages/void/test/integration/purge-cache-command.test.ts +++ b/packages/void/test/integration/purge-cache-command.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it, vi } from 'vite-plus/test'; const tempHomes: Array = []; diff --git a/packages/void/test/integration/react-router.test.ts b/packages/void/test/integration/react-router.test.ts index 81d1c1df2..fa2667ac9 100644 --- a/packages/void/test/integration/react-router.test.ts +++ b/packages/void/test/integration/react-router.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, readFileSync, rmSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/integration/spa-middleware-auth.test.ts b/packages/void/test/integration/spa-middleware-auth.test.ts index 05f393d5a..bf7b80a56 100644 --- a/packages/void/test/integration/spa-middleware-auth.test.ts +++ b/packages/void/test/integration/spa-middleware-auth.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { getPort, killChild, waitForServer } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/integration/ssr-playground.test.ts b/packages/void/test/integration/ssr-playground.test.ts index a01e9a192..5a8780aae 100644 --- a/packages/void/test/integration/ssr-playground.test.ts +++ b/packages/void/test/integration/ssr-playground.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, readFileSync, rmSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/integration/static-pages.test.ts b/packages/void/test/integration/static-pages.test.ts index dbc8ca66e..f4f82e530 100644 --- a/packages/void/test/integration/static-pages.test.ts +++ b/packages/void/test/integration/static-pages.test.ts @@ -1,6 +1,6 @@ import { execSync } from 'node:child_process'; import { existsSync, readFileSync, rmSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { beforeAll, describe, expect, it } from 'vite-plus/test'; import { collectPrerenderPaths } from '../../src/prerender.ts'; diff --git a/packages/void/test/integration/sveltekit.test.ts b/packages/void/test/integration/sveltekit.test.ts index ac908dfd9..aa194d3ce 100644 --- a/packages/void/test/integration/sveltekit.test.ts +++ b/packages/void/test/integration/sveltekit.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/integration/tanstack-start.test.ts b/packages/void/test/integration/tanstack-start.test.ts index f75ad199e..ca49d2755 100644 --- a/packages/void/test/integration/tanstack-start.test.ts +++ b/packages/void/test/integration/tanstack-start.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, readFileSync, rmSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/integration/vinext-app.test.ts b/packages/void/test/integration/vinext-app.test.ts index 742069516..ae04db3dd 100644 --- a/packages/void/test/integration/vinext-app.test.ts +++ b/packages/void/test/integration/vinext-app.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, readFileSync, rmSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/integration/vinext-pages.test.ts b/packages/void/test/integration/vinext-pages.test.ts index 100408d67..d44968666 100644 --- a/packages/void/test/integration/vinext-pages.test.ts +++ b/packages/void/test/integration/vinext-pages.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, readFileSync, rmSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/integration/websockets-playground.test.ts b/packages/void/test/integration/websockets-playground.test.ts index 0a8f2534f..e4f425d8d 100644 --- a/packages/void/test/integration/websockets-playground.test.ts +++ b/packages/void/test/integration/websockets-playground.test.ts @@ -1,5 +1,5 @@ import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { chromium, type Browser, type Page } from 'playwright'; import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'; import { getPort, killChild, waitForServer } from '../../../../test/integration-helpers.ts'; diff --git a/packages/void/test/unit/asset-hashing.test.ts b/packages/void/test/unit/asset-hashing.test.ts index 7c4fe556a..7f324dce3 100644 --- a/packages/void/test/unit/asset-hashing.test.ts +++ b/packages/void/test/unit/asset-hashing.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, rmSync, writeFileSync } from 'node:fs'; import { hash as blake3hash } from 'blake3-jit'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'; // `vi.mock` is hoisted above all imports — declare the mock before importing diff --git a/packages/void/test/unit/client-subpath-exports.test.ts b/packages/void/test/unit/client-subpath-exports.test.ts index ab8e490d0..8987736bc 100644 --- a/packages/void/test/unit/client-subpath-exports.test.ts +++ b/packages/void/test/unit/client-subpath-exports.test.ts @@ -1,5 +1,5 @@ import { readFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it } from 'vite-plus/test'; describe('client package exports', () => { diff --git a/packages/void/test/unit/cloudflare-deploy.test.ts b/packages/void/test/unit/cloudflare-deploy.test.ts index b0578b2db..cf3ece3ca 100644 --- a/packages/void/test/unit/cloudflare-deploy.test.ts +++ b/packages/void/test/unit/cloudflare-deploy.test.ts @@ -1,7 +1,7 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { pathToFileURL } from 'node:url'; import { log } from '@clack/prompts'; -import { dirname, join } from 'pathe'; +import { dirname, join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { assertMigrationsProduceAuthSchema, @@ -106,7 +106,7 @@ function emittedVars(vars: Record = {}): EmittedWorkerVarsResul /** * `file://` URLs for the runtime imports inside spawned-child env.ts fixtures. These are ESM - * SPECIFIERS, not filesystem paths: an absolute Windows path (`D:/…`, as `pathe` spells it) + * SPECIFIERS, not filesystem paths: an absolute Windows path (`D:/…`, as `pathslash` spells it) * parses as a URL whose protocol is `d:`, so Node rejects it with * ERR_UNSUPPORTED_ESM_URL_SCHEME and the child's env.ts never evaluates — the probe then * reports `schema-error` for reasons that have nothing to do with the schema. diff --git a/packages/void/test/unit/collect-migrations.test.ts b/packages/void/test/unit/collect-migrations.test.ts index 44ea88b85..01400a716 100644 --- a/packages/void/test/unit/collect-migrations.test.ts +++ b/packages/void/test/unit/collect-migrations.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, writeFileSync, rmSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, it, expect } from 'vite-plus/test'; import { collectMigrations } from '../../src/migrations/collect.ts'; diff --git a/packages/void/test/unit/config.test.ts b/packages/void/test/unit/config.test.ts index a4e99e0ba..88fa851f5 100644 --- a/packages/void/test/unit/config.test.ts +++ b/packages/void/test/unit/config.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, writeFileSync, rmSync, readFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, it, expect, vi, beforeEach } from 'vite-plus/test'; vi.mock('../../src/log', () => ({ diff --git a/packages/void/test/unit/db-commands.test.ts b/packages/void/test/unit/db-commands.test.ts index d1be02daa..b5d4aba4a 100644 --- a/packages/void/test/unit/db-commands.test.ts +++ b/packages/void/test/unit/db-commands.test.ts @@ -8,7 +8,7 @@ import { writeFileSync, } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, it, expect, vi } from 'vite-plus/test'; const mockExecFileSync = vi.hoisted(() => vi.fn()); diff --git a/packages/void/test/unit/db-execute-remote.test.ts b/packages/void/test/unit/db-execute-remote.test.ts index a63efee38..f20db7f73 100644 --- a/packages/void/test/unit/db-execute-remote.test.ts +++ b/packages/void/test/unit/db-execute-remote.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'; // ---- hoisted mocks --------------------------------------------------------- diff --git a/packages/void/test/unit/db-export-stdout.test.ts b/packages/void/test/unit/db-export-stdout.test.ts index e9fe85d37..88a943eaa 100644 --- a/packages/void/test/unit/db-export-stdout.test.ts +++ b/packages/void/test/unit/db-export-stdout.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it, vi } from 'vite-plus/test'; const shared = vi.hoisted(() => ({ dbPath: '' })); diff --git a/packages/void/test/unit/db-migrate.test.ts b/packages/void/test/unit/db-migrate.test.ts index ec699110c..e2a44ccbf 100644 --- a/packages/void/test/unit/db-migrate.test.ts +++ b/packages/void/test/unit/db-migrate.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'; const mockIntro = vi.fn(); diff --git a/packages/void/test/unit/db-seed.test.ts b/packages/void/test/unit/db-seed.test.ts index 0a79595c6..066b24684 100644 --- a/packages/void/test/unit/db-seed.test.ts +++ b/packages/void/test/unit/db-seed.test.ts @@ -1,5 +1,5 @@ import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'; import { getMiniflareDatabasePath } from '../../src/migrations/runner.ts'; diff --git a/packages/void/test/unit/db-studio-remote.test.ts b/packages/void/test/unit/db-studio-remote.test.ts index 7bc2b20d9..37be207c5 100644 --- a/packages/void/test/unit/db-studio-remote.test.ts +++ b/packages/void/test/unit/db-studio-remote.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'; // ---- hoisted mocks --------------------------------------------------------- diff --git a/packages/void/test/unit/deploy-auth.test.ts b/packages/void/test/unit/deploy-auth.test.ts index 453395316..bac6ba405 100644 --- a/packages/void/test/unit/deploy-auth.test.ts +++ b/packages/void/test/unit/deploy-auth.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, rmSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'; import { buildEnv, runDeploy } from '../../src/cli/deploy.ts'; diff --git a/packages/void/test/unit/deploy-drift.test.ts b/packages/void/test/unit/deploy-drift.test.ts index 18dba2b39..97aee5522 100644 --- a/packages/void/test/unit/deploy-drift.test.ts +++ b/packages/void/test/unit/deploy-drift.test.ts @@ -9,7 +9,7 @@ import { writeFileSync, } from 'node:fs'; import { fileURLToPath } from 'node:url'; -import { join, relative } from 'pathe'; +import { join, relative } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { hasDeploySchemaDrift } from '../../src/cli/deploy.ts'; import { writeDrizzleConfig } from '../../src/drizzle/config.ts'; diff --git a/packages/void/test/unit/deploy-env-expand.test.ts b/packages/void/test/unit/deploy-env-expand.test.ts index 17cf1bccd..17c75364a 100644 --- a/packages/void/test/unit/deploy-env-expand.test.ts +++ b/packages/void/test/unit/deploy-env-expand.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { loadDeployEnv } from '../../src/cli/deploy.ts'; diff --git a/packages/void/test/unit/deploy-project-setup.test.ts b/packages/void/test/unit/deploy-project-setup.test.ts index dec20dbb2..01325d5f0 100644 --- a/packages/void/test/unit/deploy-project-setup.test.ts +++ b/packages/void/test/unit/deploy-project-setup.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'; import type { PlatformClient } from '../../src/cli/client.ts'; diff --git a/packages/void/test/unit/deploy-project.test.ts b/packages/void/test/unit/deploy-project.test.ts index 4f33b3c4f..b43eac9eb 100644 --- a/packages/void/test/unit/deploy-project.test.ts +++ b/packages/void/test/unit/deploy-project.test.ts @@ -1,6 +1,6 @@ import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import type { PlatformClient, ProjectResponse } from '../../src/cli/client.ts'; import { diff --git a/packages/void/test/unit/detect-exports.test.ts b/packages/void/test/unit/detect-exports.test.ts index e1697e2d1..a1fc7ca64 100644 --- a/packages/void/test/unit/detect-exports.test.ts +++ b/packages/void/test/unit/detect-exports.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, writeFileSync, rmSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it, beforeEach, afterEach } from 'vite-plus/test'; import { detectHttpExports } from '../../src/router/detect-exports.ts'; diff --git a/packages/void/test/unit/dotenv.test.ts b/packages/void/test/unit/dotenv.test.ts index 1ae4e73b8..2bedb1c69 100644 --- a/packages/void/test/unit/dotenv.test.ts +++ b/packages/void/test/unit/dotenv.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it, vi } from 'vite-plus/test'; import { expandDotenv, diff --git a/packages/void/test/unit/drizzle-config.test.ts b/packages/void/test/unit/drizzle-config.test.ts index 9c3b97319..678eb1906 100644 --- a/packages/void/test/unit/drizzle-config.test.ts +++ b/packages/void/test/unit/drizzle-config.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, it, expect, beforeEach, afterEach } from 'vite-plus/test'; import { writeDrizzleConfig } from '../../src/drizzle/config.ts'; diff --git a/packages/void/test/unit/drizzle-discover.test.ts b/packages/void/test/unit/drizzle-discover.test.ts index cad73348b..2075780ae 100644 --- a/packages/void/test/unit/drizzle-discover.test.ts +++ b/packages/void/test/unit/drizzle-discover.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, writeFileSync, rmSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, it, expect, beforeEach, afterEach } from 'vite-plus/test'; import { discoverSchema, schemaSpecifier } from '../../src/drizzle/discover.ts'; diff --git a/packages/void/test/unit/env-export-conditions.test.ts b/packages/void/test/unit/env-export-conditions.test.ts index d3e793ab7..ff46958ea 100644 --- a/packages/void/test/unit/env-export-conditions.test.ts +++ b/packages/void/test/unit/env-export-conditions.test.ts @@ -1,5 +1,5 @@ import { readFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it } from 'vite-plus/test'; /** diff --git a/packages/void/test/unit/env-scaffold.test.ts b/packages/void/test/unit/env-scaffold.test.ts index 34b66f92d..fabdd50e2 100644 --- a/packages/void/test/unit/env-scaffold.test.ts +++ b/packages/void/test/unit/env-scaffold.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, readFileSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it } from 'vite-plus/test'; import { collectInferredEntries, diff --git a/packages/void/test/unit/env-types-codegen.test.ts b/packages/void/test/unit/env-types-codegen.test.ts index f8c6d16fa..ba92f467d 100644 --- a/packages/void/test/unit/env-types-codegen.test.ts +++ b/packages/void/test/unit/env-types-codegen.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, mkdirSync, writeFileSync, rmSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, it, expect } from 'vite-plus/test'; import { generateEnvTypes, findEnvFile } from '../../src/codegen/env-types.ts'; diff --git a/packages/void/test/unit/env-validation-selfhost.test.ts b/packages/void/test/unit/env-validation-selfhost.test.ts index 36702de89..3bd9fd701 100644 --- a/packages/void/test/unit/env-validation-selfhost.test.ts +++ b/packages/void/test/unit/env-validation-selfhost.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'; import { collectPlaintextVarWarningsFromVars, diff --git a/packages/void/test/unit/gen.test.ts b/packages/void/test/unit/gen.test.ts index e3a679681..5fd5a3043 100644 --- a/packages/void/test/unit/gen.test.ts +++ b/packages/void/test/unit/gen.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync, existsSync } from 'node:fs'; import { pathToFileURL } from 'node:url'; -import { dirname, join } from 'pathe'; +import { dirname, join } from 'pathslash'; import { describe, it, expect, afterEach, beforeEach, vi } from 'vite-plus/test'; import { runGenCommand, formatTimestamp } from '../../src/cli/gen.ts'; diff --git a/packages/void/test/unit/generate-headers-redirects.test.ts b/packages/void/test/unit/generate-headers-redirects.test.ts index afff31033..6f06a26d0 100644 --- a/packages/void/test/unit/generate-headers-redirects.test.ts +++ b/packages/void/test/unit/generate-headers-redirects.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, writeFileSync, rmSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it, vi } from 'vite-plus/test'; vi.mock('@clack/prompts', () => ({ diff --git a/packages/void/test/unit/headers-file.test.ts b/packages/void/test/unit/headers-file.test.ts index a8a5efa1e..ba0ad2cd5 100644 --- a/packages/void/test/unit/headers-file.test.ts +++ b/packages/void/test/unit/headers-file.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, writeFileSync, rmSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, it, expect, afterEach } from 'vite-plus/test'; import { parseHeadersFile } from '../../src/cli/headers.ts'; diff --git a/packages/void/test/unit/init-starter-migrations.test.ts b/packages/void/test/unit/init-starter-migrations.test.ts index a6e16fff9..188bdc721 100644 --- a/packages/void/test/unit/init-starter-migrations.test.ts +++ b/packages/void/test/unit/init-starter-migrations.test.ts @@ -8,7 +8,7 @@ import { writeFileSync, } from 'node:fs'; import { fileURLToPath } from 'node:url'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it, vi } from 'vite-plus/test'; import { hasDeploySchemaDrift } from '../../src/cli/deploy.ts'; import { generateStarterMigration } from '../../src/cli/init.ts'; diff --git a/packages/void/test/unit/init.test.ts b/packages/void/test/unit/init.test.ts index b8438a2e4..8ef0e174c 100644 --- a/packages/void/test/unit/init.test.ts +++ b/packages/void/test/unit/init.test.ts @@ -8,7 +8,7 @@ import { writeFileSync, } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'; import { detectProjectState, diff --git a/packages/void/test/unit/island-css-rewrite.test.ts b/packages/void/test/unit/island-css-rewrite.test.ts index 2a0abab24..d171fe27a 100644 --- a/packages/void/test/unit/island-css-rewrite.test.ts +++ b/packages/void/test/unit/island-css-rewrite.test.ts @@ -1,4 +1,4 @@ -import { resolve } from 'pathe'; +import { resolve } from 'pathslash'; import { normalizePath } from 'vite'; import { describe, it, expect } from 'vite-plus/test'; import { rewriteCssImportForVirtualModule } from '../../src/pages/islands-plugin.ts'; diff --git a/packages/void/test/unit/link.test.ts b/packages/void/test/unit/link.test.ts index d2d83d9f9..84d1fd07a 100644 --- a/packages/void/test/unit/link.test.ts +++ b/packages/void/test/unit/link.test.ts @@ -1,7 +1,7 @@ import { existsSync, mkdtempSync, readFileSync, rmSync } from 'node:fs'; import { tmpdir } from 'node:os'; import { stripVTControlCharacters } from 'node:util'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'; const mockCancel = vi.fn(); diff --git a/packages/void/test/unit/load-user-env.test.ts b/packages/void/test/unit/load-user-env.test.ts index c56eb32ee..a287aae97 100644 --- a/packages/void/test/unit/load-user-env.test.ts +++ b/packages/void/test/unit/load-user-env.test.ts @@ -1,6 +1,6 @@ import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { loadUserEnvFile } from '../../src/host/load-user-env.ts'; diff --git a/packages/void/test/unit/mcp.test.ts b/packages/void/test/unit/mcp.test.ts index 6a62077c2..cf1a7b347 100644 --- a/packages/void/test/unit/mcp.test.ts +++ b/packages/void/test/unit/mcp.test.ts @@ -1,5 +1,5 @@ import { existsSync, readdirSync, readFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { vi, describe, it, expect, beforeAll, beforeEach, afterEach } from 'vite-plus/test'; import { handleRequest, type McpContext } from '../../src/cli/mcp.ts'; diff --git a/packages/void/test/unit/merge-routing-rules.test.ts b/packages/void/test/unit/merge-routing-rules.test.ts index 21cbcce26..eeaa9c548 100644 --- a/packages/void/test/unit/merge-routing-rules.test.ts +++ b/packages/void/test/unit/merge-routing-rules.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, rmSync, writeFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { mergeRoutingRules } from '../../src/cli/headers.ts'; diff --git a/packages/void/test/unit/migration-binding-consistency.test.ts b/packages/void/test/unit/migration-binding-consistency.test.ts index 9e35c638d..1466234bf 100644 --- a/packages/void/test/unit/migration-binding-consistency.test.ts +++ b/packages/void/test/unit/migration-binding-consistency.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, writeFileSync, rmSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, it, expect, beforeEach, afterEach } from 'vite-plus/test'; import { buildVoidManifest, buildFrameworkManifest } from '../../src/cli/package.ts'; import { inferBindingsFromSource, mergeBindings } from '../../src/inference/walk.ts'; diff --git a/packages/void/test/unit/package-manifest.test.ts b/packages/void/test/unit/package-manifest.test.ts index b59e88a0e..04ccb607e 100644 --- a/packages/void/test/unit/package-manifest.test.ts +++ b/packages/void/test/unit/package-manifest.test.ts @@ -1,5 +1,5 @@ import { existsSync, readdirSync, readFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it } from 'vite-plus/test'; type PackageJson = { diff --git a/packages/void/test/unit/package.test.ts b/packages/void/test/unit/package.test.ts index b3351c1be..0bb835bcf 100644 --- a/packages/void/test/unit/package.test.ts +++ b/packages/void/test/unit/package.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, writeFileSync, rmSync, symlinkSync } from 'node:fs'; import { hash as blake3hash } from 'blake3-jit'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'; import { buildVoidManifest, diff --git a/packages/void/test/unit/pages-scan.test.ts b/packages/void/test/unit/pages-scan.test.ts index fecd4a012..3a5d152d2 100644 --- a/packages/void/test/unit/pages-scan.test.ts +++ b/packages/void/test/unit/pages-scan.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, writeFileSync, rmSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it, beforeEach, afterEach } from 'vite-plus/test'; import { resolveLayoutIds } from '../../src/pages/layout-resolution.ts'; import { diff --git a/packages/void/test/unit/plugin-class-a-wrapper.test.ts b/packages/void/test/unit/plugin-class-a-wrapper.test.ts index f18023fa2..529d7c219 100644 --- a/packages/void/test/unit/plugin-class-a-wrapper.test.ts +++ b/packages/void/test/unit/plugin-class-a-wrapper.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import type { Plugin, ResolvedConfig } from 'vite'; import { afterEach, describe, expect, it, vi } from 'vite-plus/test'; diff --git a/packages/void/test/unit/plugin-dev-asset-routing.test.ts b/packages/void/test/unit/plugin-dev-asset-routing.test.ts index a9a28e6cc..1c364db02 100644 --- a/packages/void/test/unit/plugin-dev-asset-routing.test.ts +++ b/packages/void/test/unit/plugin-dev-asset-routing.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import type { Plugin } from 'vite'; import { afterEach, describe, expect, it, vi } from 'vite-plus/test'; diff --git a/packages/void/test/unit/plugin-dev-triggers-hint.test.ts b/packages/void/test/unit/plugin-dev-triggers-hint.test.ts index 41b1492a4..3eb4bc773 100644 --- a/packages/void/test/unit/plugin-dev-triggers-hint.test.ts +++ b/packages/void/test/unit/plugin-dev-triggers-hint.test.ts @@ -1,7 +1,7 @@ import { EventEmitter } from 'node:events'; import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it, vi } from 'vite-plus/test'; import { devTriggersHintPlugin } from '../../src/plugin-dev-triggers-hint.ts'; diff --git a/packages/void/test/unit/plugin-drizzle.test.ts b/packages/void/test/unit/plugin-drizzle.test.ts index 12a2c7b00..505369fca 100644 --- a/packages/void/test/unit/plugin-drizzle.test.ts +++ b/packages/void/test/unit/plugin-drizzle.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { dirname, join } from 'pathe'; +import { dirname, join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'; vi.mock('../../src/log', () => ({ diff --git a/packages/void/test/unit/plugin-framework-triggers.test.ts b/packages/void/test/unit/plugin-framework-triggers.test.ts index d9e9a2d2f..5c0fe65bb 100644 --- a/packages/void/test/unit/plugin-framework-triggers.test.ts +++ b/packages/void/test/unit/plugin-framework-triggers.test.ts @@ -1,6 +1,6 @@ import { existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it, vi } from 'vite-plus/test'; import { analogDevTriggerInjectPlugin, diff --git a/packages/void/test/unit/plugin-inference.test.ts b/packages/void/test/unit/plugin-inference.test.ts index 1d15d6c92..1995b2cd6 100644 --- a/packages/void/test/unit/plugin-inference.test.ts +++ b/packages/void/test/unit/plugin-inference.test.ts @@ -1,6 +1,6 @@ import { existsSync, mkdtempSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it, vi } from 'vite-plus/test'; import { LATEST_KNOWN_COMPAT_DATE } from '../../src/cli/wrangler.ts'; import { voidPlugin } from '../../src/index.ts'; diff --git a/packages/void/test/unit/plugin-migration.test.ts b/packages/void/test/unit/plugin-migration.test.ts index d7bc23236..a36dab683 100644 --- a/packages/void/test/unit/plugin-migration.test.ts +++ b/packages/void/test/unit/plugin-migration.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, mkdirSync, rmSync, writeFileSync, existsSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { getMiniflareDatabasePath } from '../../src/migrations/runner.ts'; import { migrationPlugin } from '../../src/plugin-migration.ts'; diff --git a/packages/void/test/unit/plugin-routing.test.ts b/packages/void/test/unit/plugin-routing.test.ts index 6b5c37f8d..24727a489 100644 --- a/packages/void/test/unit/plugin-routing.test.ts +++ b/packages/void/test/unit/plugin-routing.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it, vi } from 'vite-plus/test'; import { routingPlugin } from '../../src/plugin-routing.ts'; diff --git a/packages/void/test/unit/plugin-vite-environment.test.ts b/packages/void/test/unit/plugin-vite-environment.test.ts index ae2150333..c416d08db 100644 --- a/packages/void/test/unit/plugin-vite-environment.test.ts +++ b/packages/void/test/unit/plugin-vite-environment.test.ts @@ -1,6 +1,6 @@ import { existsSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { resolveConfig } from 'vite'; import { afterEach, describe, expect, it, vi } from 'vite-plus/test'; import { voidPlugin } from '../../src/index.ts'; diff --git a/packages/void/test/unit/prerender.test.ts b/packages/void/test/unit/prerender.test.ts index 0f8a7469b..e697b3ce7 100644 --- a/packages/void/test/unit/prerender.test.ts +++ b/packages/void/test/unit/prerender.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join, relative } from 'pathe'; +import { join, relative } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { buildPrerenderBindings, collectPrerenderWorkerModules } from '../../src/prerender.ts'; import { INTERNAL_ENV_KEYS, stripInternalEnvKeys } from '../../src/shared/env.ts'; diff --git a/packages/void/test/unit/preset.test.ts b/packages/void/test/unit/preset.test.ts index e2deeb94b..fa9caec6d 100644 --- a/packages/void/test/unit/preset.test.ts +++ b/packages/void/test/unit/preset.test.ts @@ -1,6 +1,6 @@ import { execSync } from 'node:child_process'; import { chmodSync, mkdirSync, writeFileSync, rmSync } from 'node:fs'; -import { join, resolve } from 'pathe'; +import { join, resolve } from 'pathslash'; import { describe, expect, it, beforeEach, afterEach } from 'vite-plus/test'; import { detectPreset, diff --git a/packages/void/test/unit/project-config.test.ts b/packages/void/test/unit/project-config.test.ts index ebbfcbe62..d0d9bfffc 100644 --- a/packages/void/test/unit/project-config.test.ts +++ b/packages/void/test/unit/project-config.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { getApiUrl } from '../../src/cli/auth.ts'; import { diff --git a/packages/void/test/unit/project-paths.test.ts b/packages/void/test/unit/project-paths.test.ts index 07fa54fe7..12c2344f3 100644 --- a/packages/void/test/unit/project-paths.test.ts +++ b/packages/void/test/unit/project-paths.test.ts @@ -1,6 +1,6 @@ import { existsSync, mkdirSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'; import { readConfig } from '../../src/config.ts'; import { diff --git a/packages/void/test/unit/project-tsconfig.test.ts b/packages/void/test/unit/project-tsconfig.test.ts index 8c035ac2c..40c131e71 100644 --- a/packages/void/test/unit/project-tsconfig.test.ts +++ b/packages/void/test/unit/project-tsconfig.test.ts @@ -8,7 +8,7 @@ import { writeFileSync, } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'; import { ensureProjectTsconfig } from '../../src/codegen/project-tsconfig.ts'; diff --git a/packages/void/test/unit/provision.test.ts b/packages/void/test/unit/provision.test.ts index 4c2945385..1f0a165bf 100644 --- a/packages/void/test/unit/provision.test.ts +++ b/packages/void/test/unit/provision.test.ts @@ -18,7 +18,7 @@ import { } from 'node:fs'; import { types as nodeUtilTypes } from 'node:util'; import { parse as parseJsoncRaw } from 'jsonc-parser'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'; import { acquireProvisionLock, diff --git a/packages/void/test/unit/queue-scan.test.ts b/packages/void/test/unit/queue-scan.test.ts index b2706a52e..93b0350ee 100644 --- a/packages/void/test/unit/queue-scan.test.ts +++ b/packages/void/test/unit/queue-scan.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, writeFileSync, rmSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it, beforeEach, afterEach } from 'vite-plus/test'; import { scanQueuesSync } from '../../src/queues/scan.ts'; diff --git a/packages/void/test/unit/runner-sqlite.test.ts b/packages/void/test/unit/runner-sqlite.test.ts index 630a63109..be2aa1809 100644 --- a/packages/void/test/unit/runner-sqlite.test.ts +++ b/packages/void/test/unit/runner-sqlite.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { getAppliedMigrations, diff --git a/packages/void/test/unit/scan.test.ts b/packages/void/test/unit/scan.test.ts index 05b9fb6fb..26b4db47a 100644 --- a/packages/void/test/unit/scan.test.ts +++ b/packages/void/test/unit/scan.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, writeFileSync, rmSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it, beforeEach, afterEach } from 'vite-plus/test'; import { scanRoutes } from '../../src/router/scan.ts'; diff --git a/packages/void/test/unit/secret-sync.test.ts b/packages/void/test/unit/secret-sync.test.ts index 815b56912..d9647b066 100644 --- a/packages/void/test/unit/secret-sync.test.ts +++ b/packages/void/test/unit/secret-sync.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it } from 'vite-plus/test'; import { parseDotenvFile } from '../../src/cli/secret.ts'; diff --git a/packages/void/test/unit/ssr-entry.test.ts b/packages/void/test/unit/ssr-entry.test.ts index 7ed01c4b7..463614644 100644 --- a/packages/void/test/unit/ssr-entry.test.ts +++ b/packages/void/test/unit/ssr-entry.test.ts @@ -1,6 +1,6 @@ import { mkdtempSync, rmSync, mkdirSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it, afterEach } from 'vite-plus/test'; import { getSsrServerEntryPath, hasSsrEntry, validateSsrEntry } from '../../src/ssr/entry.ts'; diff --git a/packages/void/test/unit/static-data.test.ts b/packages/void/test/unit/static-data.test.ts index f64a7c7e3..4300b1555 100644 --- a/packages/void/test/unit/static-data.test.ts +++ b/packages/void/test/unit/static-data.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, rmSync, writeFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { resolveStaticPageDataBuildOptions } from '../../src/pages/static-data.ts'; diff --git a/packages/void/test/unit/sveltekit-tsconfig.test.ts b/packages/void/test/unit/sveltekit-tsconfig.test.ts index ab94d4562..a5cbbb245 100644 --- a/packages/void/test/unit/sveltekit-tsconfig.test.ts +++ b/packages/void/test/unit/sveltekit-tsconfig.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, rmSync, writeFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'; import { mergeVoidSvelteKitTsconfig, withVoidTSConfig } from '../../src/sveltekit.ts'; diff --git a/packages/void/test/unit/validate-migrations.test.ts b/packages/void/test/unit/validate-migrations.test.ts index 3a743ca17..7b3320dd9 100644 --- a/packages/void/test/unit/validate-migrations.test.ts +++ b/packages/void/test/unit/validate-migrations.test.ts @@ -1,6 +1,6 @@ import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs'; import { tmpdir } from 'node:os'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, beforeEach, describe, it, expect } from 'vite-plus/test'; import { classifyMigration } from '../../src/migrations/plan.ts'; import { diff --git a/packages/void/test/unit/wrangler.test.ts b/packages/void/test/unit/wrangler.test.ts index 16085772f..27c4964eb 100644 --- a/packages/void/test/unit/wrangler.test.ts +++ b/packages/void/test/unit/wrangler.test.ts @@ -1,6 +1,6 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { parse as parseJsoncRaw, type ParseError } from 'jsonc-parser'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, it, expect, afterEach } from 'vite-plus/test'; import { bindingEntriesForField, diff --git a/packages/void/test/unit/wrapper.test.ts b/packages/void/test/unit/wrapper.test.ts index c48db0430..a220dbd99 100644 --- a/packages/void/test/unit/wrapper.test.ts +++ b/packages/void/test/unit/wrapper.test.ts @@ -1,5 +1,5 @@ import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { needsWrapper, diff --git a/packages/void/vite.config.ts b/packages/void/vite.config.ts index ef2496bb9..c1631d879 100644 --- a/packages/void/vite.config.ts +++ b/packages/void/vite.config.ts @@ -172,7 +172,7 @@ export default defineConfig({ 'sisteransi', 'picocolors', 'ofetch', - 'pathe', + 'pathslash', ], }, }, diff --git a/packages/vue/package.json b/packages/vue/package.json index 02e930602..6dc14e7be 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -45,7 +45,7 @@ }, "devDependencies": { "@types/node": "catalog:", - "pathe": "catalog:", + "pathslash": "catalog:", "vite": "catalog:", "vite-plus": "catalog:", "void": "workspace:*", diff --git a/packages/vue/src/plugin-islands.ts b/packages/vue/src/plugin-islands.ts index 996e51170..fd02081df 100644 --- a/packages/vue/src/plugin-islands.ts +++ b/packages/vue/src/plugin-islands.ts @@ -1,5 +1,5 @@ import { existsSync, readFileSync } from 'node:fs'; -import { dirname, resolve, relative } from 'pathe'; +import { dirname, resolve, relative } from 'pathslash'; import { normalizePath, type Plugin, type ResolvedConfig } from 'vite'; import { scanPages, resolveEffectiveLayoutChain } from 'void/pages'; import type { PageScanResult } from 'void/pages'; diff --git a/packages/vue/src/plugin-pages.ts b/packages/vue/src/plugin-pages.ts index 860225e10..5d935b6e2 100644 --- a/packages/vue/src/plugin-pages.ts +++ b/packages/vue/src/plugin-pages.ts @@ -1,5 +1,5 @@ import { existsSync, readdirSync } from 'node:fs'; -import { dirname } from 'pathe'; +import { dirname } from 'pathslash'; import { normalizePath, type Plugin, type ResolvedConfig, type ViteDevServer } from 'vite'; import { resolveStaticPageDataBuildOptions, scanPages } from 'void/pages'; import type { PageScanResult, StaticPageDataBuildOptions } from 'void/pages'; diff --git a/packages/vue/test/integration/vue-pages-client.test.ts b/packages/vue/test/integration/vue-pages-client.test.ts index 5c9930c7e..3d4d00e43 100644 --- a/packages/vue/test/integration/vue-pages-client.test.ts +++ b/packages/vue/test/integration/vue-pages-client.test.ts @@ -1,7 +1,7 @@ import { execSync } from 'node:child_process'; import { existsSync, readFileSync, writeFileSync } from 'node:fs'; import spawn from 'cross-spawn'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { chromium, type Browser, type Page } from 'playwright'; import { describe, expect, it, beforeAll, afterAll } from 'vite-plus/test'; import { getPort, waitForServer, killChild } from '../../../../test/integration-helpers.ts'; diff --git a/packages/vue/test/unit/plugin-islands.test.ts b/packages/vue/test/unit/plugin-islands.test.ts index 9425cf6e7..9b0650ed2 100644 --- a/packages/vue/test/unit/plugin-islands.test.ts +++ b/packages/vue/test/unit/plugin-islands.test.ts @@ -1,6 +1,6 @@ import { EventEmitter } from 'node:events'; import { mkdirSync, writeFileSync, rmSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { describe, expect, it, beforeEach, afterEach, vi } from 'vite-plus/test'; import { islandsPlugin } from '../../src/plugin-islands.ts'; diff --git a/packages/vue/test/unit/plugin-pages.test.ts b/packages/vue/test/unit/plugin-pages.test.ts index c74a85899..c58604e40 100644 --- a/packages/vue/test/unit/plugin-pages.test.ts +++ b/packages/vue/test/unit/plugin-pages.test.ts @@ -1,5 +1,5 @@ import { mkdirSync, rmSync, writeFileSync } from 'node:fs'; -import { join } from 'pathe'; +import { join } from 'pathslash'; import { afterEach, describe, expect, it } from 'vite-plus/test'; import { pagesPlugin } from '../../src/plugin-pages.ts'; diff --git a/playground/analog/package.json b/playground/analog/package.json index 61c05aec6..6444065d8 100644 --- a/playground/analog/package.json +++ b/playground/analog/package.json @@ -24,7 +24,7 @@ "@angular/build": "^22.0.5", "@angular/compiler-cli": "^22.0.5", "nitro-cloudflare-dev": "^0.2.2", - "pathe": "catalog:", + "pathslash": "catalog:", "typescript": "~6.0.3", "vite": "catalog:", "vite-plus": "catalog:", diff --git a/playground/analog/vite.config.ts b/playground/analog/vite.config.ts index bec04b2d4..bbdb47e5b 100644 --- a/playground/analog/vite.config.ts +++ b/playground/analog/vite.config.ts @@ -1,5 +1,5 @@ import analog from '@analogjs/platform'; -import { resolve } from 'pathe'; +import { resolve } from 'pathslash'; import { defineConfig } from 'vite-plus'; import { voidPlugin } from 'void'; diff --git a/playground/node-static/package.json b/playground/node-static/package.json index 9f8a4c06c..bc098995d 100644 --- a/playground/node-static/package.json +++ b/playground/node-static/package.json @@ -18,7 +18,7 @@ "@types/react": "^19.2.17", "@types/react-dom": "^19.2.3", "@void/react": "workspace:*", - "pathe": "catalog:", + "pathslash": "catalog:", "vite": "catalog:", "vite-plus": "catalog:", "void": "workspace:*" diff --git a/playground/node-static/scripts/serve-static.mjs b/playground/node-static/scripts/serve-static.mjs index 6de2d5555..a251ef900 100644 --- a/playground/node-static/scripts/serve-static.mjs +++ b/playground/node-static/scripts/serve-static.mjs @@ -1,6 +1,6 @@ import { existsSync, readFileSync, statSync } from 'node:fs'; import { createServer } from 'node:http'; -import { extname, isAbsolute, relative, resolve } from 'pathe'; +import { extname, isAbsolute, relative, resolve } from 'pathslash'; const root = resolve(import.meta.dirname, '../dist/client'); const port = Number(process.env.PORT || 4179); diff --git a/playground/nuxt/nuxt.config.ts b/playground/nuxt/nuxt.config.ts index 9888748e0..45eaafa74 100644 --- a/playground/nuxt/nuxt.config.ts +++ b/playground/nuxt/nuxt.config.ts @@ -1,4 +1,4 @@ -import { resolve } from 'pathe'; +import { resolve } from 'pathslash'; import type { PluginOption } from 'vite-plus'; import { voidPlugin } from 'void'; diff --git a/playground/nuxt/package.json b/playground/nuxt/package.json index 8dce6bd95..e9cb65009 100644 --- a/playground/nuxt/package.json +++ b/playground/nuxt/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@typescript/native-preview": "catalog:", - "pathe": "catalog:", + "pathslash": "catalog:", "vite": "catalog:", "vite-plus": "catalog:", "void": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1fb9b4580..ff167d485 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,9 +18,9 @@ catalogs: '@typescript/native-preview': specifier: 7.0.0-dev.20260507.1 version: 7.0.0-dev.20260507.1 - pathe: - specifier: ^2.0.3 - version: 2.0.3 + pathslash: + specifier: ^0.1.0 + version: 0.1.0 vite-plus: specifier: ^0.2.2 version: 0.2.2 @@ -94,9 +94,9 @@ importers: '@types/node': specifier: 'catalog:' version: 26.1.0 - pathe: + pathslash: specifier: 'catalog:' - version: 2.0.3 + version: 0.1.0 picocolors: specifier: ^1.1.1 version: 1.1.1 @@ -133,9 +133,9 @@ importers: markdown-it-footnote: specifier: ^4.0.0 version: 4.0.0 - pathe: + pathslash: specifier: 'catalog:' - version: 2.0.3 + version: 0.1.0 shiki: specifier: ^4.3.1 version: 4.3.1 @@ -177,9 +177,9 @@ importers: '@types/react-dom': specifier: ^19.2.3 version: 19.2.3(@types/react@19.2.17) - pathe: + pathslash: specifier: 'catalog:' - version: 2.0.3 + version: 0.1.0 react: specifier: ^19.2.7 version: 19.2.7 @@ -205,9 +205,9 @@ importers: '@types/node': specifier: 'catalog:' version: 26.1.0 - pathe: + pathslash: specifier: 'catalog:' - version: 2.0.3 + version: 0.1.0 solid-js: specifier: ^1.9.14 version: 1.9.14 @@ -230,9 +230,9 @@ importers: '@types/node': specifier: 'catalog:' version: 26.1.0 - pathe: + pathslash: specifier: 'catalog:' - version: 2.0.3 + version: 0.1.0 svelte: specifier: ^5.56.4 version: 5.56.4 @@ -345,9 +345,9 @@ importers: ofetch: specifier: 2.0.0-alpha.3 version: 2.0.0-alpha.3 - pathe: + pathslash: specifier: 'catalog:' - version: 2.0.3 + version: 0.1.0 pglite-server: specifier: 0.1.5 version: 0.1.5(@electric-sql/pglite@0.5.4) @@ -379,9 +379,9 @@ importers: '@types/node': specifier: 'catalog:' version: 26.1.0 - pathe: + pathslash: specifier: 'catalog:' - version: 2.0.3 + version: 0.1.0 vite-plus: specifier: 'catalog:' version: 0.2.2(@types/node@26.1.0)(@voidzero-dev/vite-plus-core@0.2.2(@types/node@26.1.0)(esbuild@0.27.7)(jiti@2.7.0)(sass@1.99.0)(terser@5.48.0)(tsx@4.23.0)(typescript@6.0.3)(yaml@2.9.0))(esbuild@0.27.7)(jiti@2.7.0)(sass@1.99.0)(svelte@5.56.4)(terser@5.48.0)(tsx@4.23.0)(typescript@6.0.3)(yaml@2.9.0) @@ -440,9 +440,9 @@ importers: nitro-cloudflare-dev: specifier: ^0.2.2 version: 0.2.2 - pathe: + pathslash: specifier: 'catalog:' - version: 2.0.3 + version: 0.1.0 typescript: specifier: ~6.0.3 version: 6.0.3 @@ -635,9 +635,9 @@ importers: '@void/react': specifier: workspace:* version: link:../../packages/react - pathe: + pathslash: specifier: 'catalog:' - version: 2.0.3 + version: 0.1.0 vite: specifier: npm:@voidzero-dev/vite-plus-core@0.2.2 version: '@voidzero-dev/vite-plus-core@0.2.2(@types/node@26.1.0)(esbuild@0.27.7)(jiti@2.7.0)(sass@1.99.0)(terser@5.48.0)(tsx@4.23.0)(typescript@6.0.3)(yaml@2.9.0)' @@ -657,9 +657,9 @@ importers: '@typescript/native-preview': specifier: 'catalog:' version: 7.0.0-dev.20260507.1 - pathe: + pathslash: specifier: 'catalog:' - version: 2.0.3 + version: 0.1.0 vite: specifier: npm:@voidzero-dev/vite-plus-core@0.2.2 version: '@voidzero-dev/vite-plus-core@0.2.2(@types/node@26.1.0)(esbuild@0.27.7)(jiti@2.7.0)(sass@1.99.0)(terser@5.48.0)(tsx@4.23.0)(typescript@6.0.3)(yaml@2.9.0)' @@ -1928,11 +1928,11 @@ packages: '@esbuild-kit/core-utils@3.3.2': resolution: {integrity: sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ==} - deprecated: 'Merged into tsx: https://tsx.hirok.io' + deprecated: 'Merged into tsx: https://tsx.is' '@esbuild-kit/esm-loader@2.6.5': resolution: {integrity: sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA==} - deprecated: 'Merged into tsx: https://tsx.hirok.io' + deprecated: 'Merged into tsx: https://tsx.is' '@esbuild/aix-ppc64@0.27.7': resolution: {integrity: sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==} @@ -7959,6 +7959,10 @@ packages: pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + pathslash@0.1.0: + resolution: {integrity: sha512-mJSfhMv8Ra0gN4xGqzRQ7IpUSc4v6rV+r3X5FY9HrxC9Te2ZvtZe6RPS6UDmgOVUI5DKGDHuPXRuNzhffawG2Q==} + engines: {node: '>=22'} + perfect-debounce@2.1.0: resolution: {integrity: sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==} @@ -16323,6 +16327,8 @@ snapshots: pathe@2.0.3: {} + pathslash@0.1.0: {} + perfect-debounce@2.1.0: {} pg-cloudflare@1.4.0: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index ecb0e5e79..1bf138462 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -23,7 +23,7 @@ catalog: '@cloudflare/workers-types': ^4.20260702.1 '@types/node': ^26.1.0 '@typescript/native-preview': 7.0.0-dev.20260507.1 - pathe: ^2.0.3 + pathslash: ^0.1.0 vite: npm:@voidzero-dev/vite-plus-core@0.2.2 vite-plus: ^0.2.2 vitest: ^4.1.9 diff --git a/vite.config.ts b/vite.config.ts index 651d6f5c6..f09231d97 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -272,12 +272,12 @@ export default defineConfig({ { name: 'node:path', message: - "Use `pathe` instead. It re-exports the same API but always emits forward slashes, which avoids cross-platform breakage when paths are embedded in module specifiers, generated source, or compared against Vite's normalized watcher events. If you genuinely need format-specific behavior, import `node:path/win32` or `node:path/posix` explicitly.", + "Use `pathslash` instead. It re-exports the same API but always emits forward slashes, which avoids cross-platform breakage when paths are embedded in module specifiers, generated source, or compared against Vite's normalized watcher events. If you genuinely need format-specific behavior, import `node:path/win32` or `node:path/posix` explicitly.", }, { name: 'path', message: - 'Use `pathe` instead of the unprefixed `path` import (and prefer `node:path/win32` / `node:path/posix` for explicit format-specific behavior).', + 'Use `pathslash` instead of the unprefixed `path` import (and prefer `node:path/win32` / `node:path/posix` for explicit format-specific behavior).', }, ], },