mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
fix(npm): use original node regex in npm resolution (#17404)
Fixes regex for matching conditional exports in a package. Updated to the same regex Node.js uses.
This commit is contained in:
parent
b23b4e231c
commit
934ed8e7d1
5 changed files with 9 additions and 2 deletions
3
cli/tests/testdata/npm/registry/@denotest/conditional-exports/1.0.0/foo.js
vendored
Normal file
3
cli/tests/testdata/npm/registry/@denotest/conditional-exports/1.0.0/foo.js
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
export default {
|
||||
hello: "from foo",
|
||||
}
|
|
@ -15,6 +15,7 @@
|
|||
"./client/*": {
|
||||
"types": "./types/src/client/*.d.ts",
|
||||
"import": "./esm/client/*.js"
|
||||
}
|
||||
},
|
||||
"./*": "./*"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue