Skip to content

Commit

Permalink
fix(internal): [Resolver#resolvePackageTarget] package.json url f…
Browse files Browse the repository at this point in the history
…or numeric property key error

Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Feb 17, 2023
1 parent 9faefda commit cde6441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ class Resolver {
// ensure prop is not an array index
if (isArrayIndex(prop)) {
throw new ERR_INVALID_PACKAGE_CONFIG(
fileURLToPath(dir),
fileURLToPath(dir).replace(/\/$/, '') + '/package.json',
fileURLToPath(parent),
'"exports" cannot contain numeric property keys'
)
Expand Down

0 comments on commit cde6441

Please sign in to comment.