From f042c0b9ecfd57946c18e6ab5e1c6edab365b59d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 3 Jun 2022 12:51:34 +1000 Subject: [PATCH] Prevent protobufjs attempting to install packages at runtime --- ts/patches/protobufjs+6.11.2.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ts/patches/protobufjs+6.11.2.patch b/ts/patches/protobufjs+6.11.2.patch index 9d522c372..cc9a6173d 100644 --- a/ts/patches/protobufjs+6.11.2.patch +++ b/ts/patches/protobufjs+6.11.2.patch @@ -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