Browse Source

Merge pull request #7964 from bhouston/npmshim

create "three.js" npm shim for "three" npm package.
Mr.doob 9 years ago
parent
commit
051bfdf240

+ 10 - 0
utils/npm/node_modules/three.js/README.md

@@ -0,0 +1,10 @@
+three.js
+========
+
+**IMPORTANT NOTE**
+
+This ```three.js``` NPM package has been deprecated in favor of the three package available here:
+
+[Three NPM Package](http://npmjs.org/packages/three/)
+
+This NPM package currently acts as a shim for the three NPM package.

+ 16 - 0
utils/npm/node_modules/three.js/package.json

@@ -0,0 +1,16 @@
+{
+  "name": "three.js",
+  "version": "0.73.2",
+  "description": "Note: 'three.js' npm package has been deprecated in favor of the 'three' npm package.",
+  "main": "shim.js",
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/mrdoob/three.js.git"
+  },
+  "author": {
+    "name": "mrdoob"
+  },
+  "dependencies": {
+    "three": "0.73.0"
+  }
+}

+ 12 - 0
utils/npm/node_modules/three.js/shim.js

@@ -0,0 +1,12 @@
+var THREE = require('three');
+
+console.warn( "WARNING: The 'three.js' npm package is deprecated in favor of the 'three' npm package, please upgrade.");
+
+if (typeof exports !== 'undefined') {
+  if (typeof module !== 'undefined' && module.exports) {
+    exports = module.exports = THREE;
+  }
+  exports.THREE = THREE;
+} else {
+  this['THREE'] = THREE;
+}