Use the npm closure library instead of the same library installed at a parallel directory

This commit is contained in:
Justin Geeslin
2017-01-10 23:02:26 -06:00
parent efa976e109
commit 7b72dbf773
2 changed files with 5 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ var isNodeJS = !!(typeof module !== 'undefined' && module.exports &&
if (isNodeJS) {
var window = {};
require('../closure-library/closure/goog/bootstrap/nodejs');
require('closure-library');
}
window.BLOCKLY_DIR = (function() {
@@ -107,7 +107,7 @@ window.BLOCKLY_DIR = (function() {
window.BLOCKLY_BOOT = function() {
var dir = '';
if (isNodeJS) {
require('../closure-library/closure/goog/bootstrap/nodejs');
require('closure-library');
dir = 'blockly';
} else {
// Execute after Closure has loaded.

View File

@@ -28,5 +28,8 @@
"sub": true,
"undef": true,
"unused": true
},
"dependencies": {
"closure-library": "^1.43629075.2"
}
}