mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Prevent protobufjs attempting to install packages at runtime
This commit is contained in:
parent
a9884a1b78
commit
f042c0b9ec
1 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,15 @@
|
|||
diff --git a/node_modules/protobufjs/cli/util.js b/node_modules/protobufjs/cli/util.js
|
||||
index ffce1ed..c87a4b4 100644
|
||||
--- a/node_modules/protobufjs/cli/util.js
|
||||
+++ b/node_modules/protobufjs/cli/util.js
|
||||
@@ -133,6 +133,7 @@ function modInstall(install) {
|
||||
}
|
||||
|
||||
exports.setup = function() {
|
||||
+ return;
|
||||
var pkg = require(path.join(__dirname, "..", "package.json"));
|
||||
var version = pkg.dependencies["semver"] || pkg.devDependencies["semver"];
|
||||
if (!modExists("semver", version)) {
|
||||
diff --git a/node_modules/protobufjs/src/field.js b/node_modules/protobufjs/src/field.js
|
||||
index 20c1cd2..3a1395f 100644
|
||||
--- a/node_modules/protobufjs/src/field.js
|
||||
|
|
Loading…
Reference in a new issue