From c9406b56829919f47579210346517603c9dcf7ff Mon Sep 17 00:00:00 2001 From: KazariEX <1364035137@qq.com> Date: Wed, 25 Dec 2024 19:22:39 +0800 Subject: [PATCH] fix: patch --- package.json | 5 +++++ patches/pathe.patch | 10 ++++++++++ pnpm-lock.yaml | 23 ++++++++++++++--------- tsconfig.base.json | 3 +-- 4 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 patches/pathe.patch diff --git a/package.json b/package.json index b761c8a242..d71d85e855 100644 --- a/package.json +++ b/package.json @@ -26,5 +26,10 @@ "@tsslint/config": "latest", "typescript": "latest", "vitest": "latest" + }, + "pnpm": { + "patchedDependencies": { + "pathe": "patches/pathe.patch" + } } } diff --git a/patches/pathe.patch b/patches/pathe.patch new file mode 100644 index 0000000000..1abecd61a3 --- /dev/null +++ b/patches/pathe.patch @@ -0,0 +1,10 @@ +diff --git a/dist/index.d.ts b/dist/index.d.ts +index 531b6906507206b4594ff0ff830d605c4cf6a16a..a7419c0c83af0880c6a41180f46581c5922bc947 100644 +--- a/dist/index.d.ts ++++ b/dist/index.d.ts +@@ -1,4 +1,4 @@ +-import path$1 from 'node:path'; ++import * as path$1 from 'node:path'; + + declare const sep = "/"; + declare const delimiter = ":"; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 59dfdbaee5..033d3db239 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,11 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +patchedDependencies: + pathe: + hash: tzb4ikqzvp65igqqf3ehxc5e4q + path: patches/pathe.patch + importers: .: @@ -79,7 +84,7 @@ importers: version: link:../language-core pathe: specifier: ^1.1.2 - version: 1.1.2 + version: 1.1.2(patch_hash=tzb4ikqzvp65igqqf3ehxc5e4q) typescript: specifier: '*' version: 5.7.2 @@ -118,7 +123,7 @@ importers: version: 0.4.1 pathe: specifier: ^1.1.2 - version: 1.1.2 + version: 1.1.2(patch_hash=tzb4ikqzvp65igqqf3ehxc5e4q) typescript: specifier: '*' version: 5.7.2 @@ -174,7 +179,7 @@ importers: version: link:../typescript-plugin pathe: specifier: ^1.1.2 - version: 1.1.2 + version: 1.1.2(patch_hash=tzb4ikqzvp65igqqf3ehxc5e4q) vscode-languageserver-protocol: specifier: ^3.17.5 version: 3.17.5 @@ -210,7 +215,7 @@ importers: version: 0.4.9 pathe: specifier: ^1.1.2 - version: 1.1.2 + version: 1.1.2(patch_hash=tzb4ikqzvp65igqqf3ehxc5e4q) volar-service-css: specifier: 0.0.62 version: 0.0.62(@volar/language-service@2.4.11) @@ -4238,13 +4243,13 @@ snapshots: '@vitest/runner@2.1.8': dependencies: '@vitest/utils': 2.1.8 - pathe: 1.1.2 + pathe: 1.1.2(patch_hash=tzb4ikqzvp65igqqf3ehxc5e4q) '@vitest/snapshot@2.1.8': dependencies: '@vitest/pretty-format': 2.1.8 magic-string: 0.30.17 - pathe: 1.1.2 + pathe: 1.1.2(patch_hash=tzb4ikqzvp65igqqf3ehxc5e4q) '@vitest/spy@2.1.8': dependencies: @@ -5882,7 +5887,7 @@ snapshots: lru-cache: 11.0.2 minipass: 7.1.2 - pathe@1.1.2: {} + pathe@1.1.2(patch_hash=tzb4ikqzvp65igqqf3ehxc5e4q): {} pathval@2.0.0: {} @@ -6394,7 +6399,7 @@ snapshots: cac: 6.7.14 debug: 4.4.0 es-module-lexer: 1.5.4 - pathe: 1.1.2 + pathe: 1.1.2(patch_hash=tzb4ikqzvp65igqqf3ehxc5e4q) vite: 5.4.11(@types/node@22.10.2) transitivePeerDependencies: - '@types/node' @@ -6429,7 +6434,7 @@ snapshots: debug: 4.4.0 expect-type: 1.1.0 magic-string: 0.30.17 - pathe: 1.1.2 + pathe: 1.1.2(patch_hash=tzb4ikqzvp65igqqf3ehxc5e4q) std-env: 3.8.0 tinybench: 2.9.0 tinyexec: 0.3.1 diff --git a/tsconfig.base.json b/tsconfig.base.json index 475b62a162..8887f35ffd 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -2,8 +2,7 @@ "compilerOptions": { "target": "ES2021", "lib": [ "ES2021" ], - "module": "Preserve", - "moduleResolution": "bundler", + "module": "Node16", "sourceMap": true, "composite": true, "strict": true,