Skip to content

Commit cde6441

Browse files
committed
fix(internal): [Resolver#resolvePackageTarget] package.json url for numeric property key error
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent 9faefda commit cde6441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/resolver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ class Resolver {
647647
// ensure prop is not an array index
648648
if (isArrayIndex(prop)) {
649649
throw new ERR_INVALID_PACKAGE_CONFIG(
650-
fileURLToPath(dir),
650+
fileURLToPath(dir).replace(/\/$/, '') + '/package.json',
651651
fileURLToPath(parent),
652652
'"exports" cannot contain numeric property keys'
653653
)

0 commit comments

Comments
 (0)