From d39ea62ac73ae5553566c71095e3b4a9c5ad2a38 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Fri, 24 Feb 2023 10:45:31 -0500 Subject: [PATCH] Fix usage with "module": "nodenext" (#356) * Fix usage with "module": "nodenext" * Add to OTHER_FILES --- types/three/OTHER_FILES.txt | 1 + types/three/build/three.d.cts | 2 ++ types/three/package.json | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 types/three/build/three.d.cts diff --git a/types/three/OTHER_FILES.txt b/types/three/OTHER_FILES.txt index 97749217a..c26379e78 100644 --- a/types/three/OTHER_FILES.txt +++ b/types/three/OTHER_FILES.txt @@ -1,3 +1,4 @@ +build/three.d.cts build/three.d.ts build/three.module.d.ts examples/jsm/animation/AnimationClipCreator.d.ts diff --git a/types/three/build/three.d.cts b/types/three/build/three.d.cts new file mode 100644 index 000000000..c9f28b517 --- /dev/null +++ b/types/three/build/three.d.cts @@ -0,0 +1,2 @@ +export * from '../src/Three'; +export as namespace THREE; diff --git a/types/three/package.json b/types/three/package.json index 142bed464..c048baca2 100644 --- a/types/three/package.json +++ b/types/three/package.json @@ -1,6 +1,5 @@ { "private": true, - "type": "module", "exports": { ".": { "import": "./build/three.module.js",