diff --git a/package.json b/package.json index 82b7e4a3..2be62ff8 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,7 @@ "dependencies": { "@flex-development/errnode": "3.1.1", "@flex-development/is-builtin": "3.2.0", - "@flex-development/pathe": "3.0.0", + "@flex-development/pathe": "4.0.0", "@flex-development/pkg-types": "4.1.0", "devlop": "1.1.0" }, diff --git a/src/lib/resolver.mts b/src/lib/resolver.mts index 14c3b8e0..fb446095 100644 --- a/src/lib/resolver.mts +++ b/src/lib/resolver.mts @@ -763,7 +763,7 @@ async function packageResolve( let packageUrl: URL = new URL(`node_modules/${packageName}/`, parentUrl) // set parentUrl to the parent folder URL of parentUrl - parentUrl = new URL(pathe.dirname(parentUrl.href) + pathe.sep) + parentUrl = new URL(pathe.dirname(parentUrl.href)) // continue if the folder at packageUrl does not exist if (!(await isDirectory(packageUrl, fs))) continue diff --git a/yarn.lock b/yarn.lock index f1079ac5..ababbd5e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1772,7 +1772,7 @@ __metadata: "@flex-development/import-regex": "npm:3.0.0" "@flex-development/is-builtin": "npm:3.2.0" "@flex-development/mkbuild": "npm:1.0.0-alpha.23" - "@flex-development/pathe": "npm:3.0.0" + "@flex-development/pathe": "npm:4.0.0" "@flex-development/pkg-types": "npm:4.1.0" "@flex-development/tsconfig-utils": "npm:2.0.2" "@flex-development/tutils": "npm:6.0.0-alpha.25" @@ -1926,15 +1926,15 @@ __metadata: languageName: node linkType: hard -"@flex-development/pathe@npm:3.0.0": - version: 3.0.0 - resolution: "@flex-development/pathe@npm:3.0.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fpathe%2F3.0.0%2Ff1d6b40176ea285956642006641bf29da4690ea4" +"@flex-development/pathe@npm:4.0.0": + version: 4.0.0 + resolution: "@flex-development/pathe@npm:4.0.0::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40flex-development%2Fpathe%2F4.0.0%2F6c58f274044f4d5a8d2453ed5f3de044a5e94da3" dependencies: "@flex-development/errnode": "npm:3.1.1" "@types/micromatch": "npm:4.0.9" micromatch: "npm:4.0.8" punycode.js: "npm:2.3.1" - checksum: 10/9b4ced7e24a4dc5eb61e9b7378c149f2d00c00b4561c4360a55ff45149616ba7ac786f53543d3b9d76127909a0829f85128972aee074d53c03129a075cad8265 + checksum: 10/33489adc7e4d9f2ab73c98e854d2ed733a28e521fbbc59e6714ffe51dc5b6b68054525ec7ba44cef84c19a6e56313bcccf04a9b7943b67d587b87939825f1ae0 languageName: node linkType: hard