From fee4943f760fae2c9386ceeda86c3f8fbfd8e6a0 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 8 Mar 2024 14:14:28 -0500 Subject: fix(node): resolve .css files in npm packages when type checking (#22804) When type checking, we should just resolve css files in npm packages and not surface a type checking error on the specifier. --- .../npm/registry/@denotest/css-export/1.0.0/dist/index.css | 1 + .../npm/registry/@denotest/css-export/1.0.0/package.json | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/testdata/npm/registry/@denotest/css-export/1.0.0/dist/index.css create mode 100644 tests/testdata/npm/registry/@denotest/css-export/1.0.0/package.json (limited to 'tests/testdata') diff --git a/tests/testdata/npm/registry/@denotest/css-export/1.0.0/dist/index.css b/tests/testdata/npm/registry/@denotest/css-export/1.0.0/dist/index.css new file mode 100644 index 000000000..2d91681f8 --- /dev/null +++ b/tests/testdata/npm/registry/@denotest/css-export/1.0.0/dist/index.css @@ -0,0 +1 @@ +body {} \ No newline at end of file diff --git a/tests/testdata/npm/registry/@denotest/css-export/1.0.0/package.json b/tests/testdata/npm/registry/@denotest/css-export/1.0.0/package.json new file mode 100644 index 000000000..f7a76aec9 --- /dev/null +++ b/tests/testdata/npm/registry/@denotest/css-export/1.0.0/package.json @@ -0,0 +1,9 @@ +{ + "name": "@denotest/css-export", + "version": "1.0.0", + "type": "module", + "exports": { + ".": "./index.js", + "./dist/*": "./dist/*" + } +} \ No newline at end of file -- cgit v1.2.3