Browse Source

Merge pull request #15700 from hujiulong/patch-1

Add types property to indicate the main declaration file
Mr.doob 6 years ago
parent
commit
854f91b2d8
2 changed files with 1 additions and 1 deletions
  1. 0 1
      .npmignore
  2. 1 0
      package.json

+ 0 - 1
.npmignore

@@ -1,6 +1,5 @@
 examples/*
 !examples/js/
-src/
 test/
 utils/
 docs/

+ 1 - 0
package.json

@@ -6,6 +6,7 @@
   "repository": "mrdoob/three.js",
   "jsnext:main": "build/three.module.js",
   "module": "build/three.module.js",
+  "types": "src/Three.d.ts",
   "files": [
     "package.json",
     "LICENSE",