diff options
| author | Kiryl Dziamura <2wontem@gmail.com> | 2023-01-14 00:57:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-14 00:57:24 +0100 |
| commit | 934ed8e7d1709927e2ab0f7e0716b320b3e575b1 (patch) | |
| tree | 1c45039b5aa6f94b550575e297970a7c91a1096b /cli/tests/testdata/npm/registry | |
| parent | b23b4e231c5c6a4f500e69fd3e19955865b62141 (diff) | |
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.
Diffstat (limited to 'cli/tests/testdata/npm/registry')
| -rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/conditional-exports/1.0.0/foo.js | 3 | ||||
| -rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/conditional-exports/1.0.0/package.json | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/conditional-exports/1.0.0/foo.js b/cli/tests/testdata/npm/registry/@denotest/conditional-exports/1.0.0/foo.js new file mode 100644 index 000000000..6060c8a67 --- /dev/null +++ b/cli/tests/testdata/npm/registry/@denotest/conditional-exports/1.0.0/foo.js @@ -0,0 +1,3 @@ +export default { + hello: "from foo", +} diff --git a/cli/tests/testdata/npm/registry/@denotest/conditional-exports/1.0.0/package.json b/cli/tests/testdata/npm/registry/@denotest/conditional-exports/1.0.0/package.json index c02015835..5a2536aa0 100644 --- a/cli/tests/testdata/npm/registry/@denotest/conditional-exports/1.0.0/package.json +++ b/cli/tests/testdata/npm/registry/@denotest/conditional-exports/1.0.0/package.json @@ -15,6 +15,7 @@ "./client/*": { "types": "./types/src/client/*.d.ts", "import": "./esm/client/*.js" - } + }, + "./*": "./*" } } |
