From dd80288fcdcf1a07117082ba3f49ae0108d40d75 Mon Sep 17 00:00:00 2001 From: Eric McIntyre Date: Mon, 27 Nov 2023 01:09:51 -0700 Subject: [PATCH] fix(vitest): Add import-meta.d.ts (#4571) --- packages/vitest/import-meta.d.ts | 5 +++++ packages/vitest/package.json | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 packages/vitest/import-meta.d.ts diff --git a/packages/vitest/import-meta.d.ts b/packages/vitest/import-meta.d.ts new file mode 100644 index 000000000000..ee00ff5d0481 --- /dev/null +++ b/packages/vitest/import-meta.d.ts @@ -0,0 +1,5 @@ +/// + +// https://github.com/microsoft/TypeScript/issues/45096 +// TypeScript has a bug that makes +// not possible in userland. This file provides a workaround for now. diff --git a/packages/vitest/package.json b/packages/vitest/package.json index 6b6e7ecb84dc..013ca8aecc8b 100644 --- a/packages/vitest/package.json +++ b/packages/vitest/package.json @@ -41,6 +41,9 @@ "./importMeta": { "types": "./importMeta.d.ts" }, + "./import-meta": { + "types": "./import-meta.d.ts" + }, "./node": { "types": "./dist/node.d.ts", "default": "./dist/node.js"