firebase-tools 11.23.0 → 11.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -98,9 +98,16 @@ class Delegate {
|
|
|
98
98
|
env.CLOUD_RUNTIME_CONFIG = JSON.stringify(config);
|
|
99
99
|
}
|
|
100
100
|
const sourceNodeModulesPath = path.join(this.sourceDir, "node_modules");
|
|
101
|
+
const projectNodeModulesPath = path.join(this.projectDir, "node_modules");
|
|
101
102
|
const sdkPath = require.resolve("firebase-functions", { paths: [this.sourceDir] });
|
|
102
103
|
const sdkNodeModulesPath = sdkPath.substring(0, sdkPath.lastIndexOf("node_modules") + 12);
|
|
103
|
-
|
|
104
|
+
const ignorePnpmModulesPath = sdkNodeModulesPath.replace(/\/\.pnpm\/.*/, "");
|
|
105
|
+
for (const nodeModulesPath of [
|
|
106
|
+
sourceNodeModulesPath,
|
|
107
|
+
projectNodeModulesPath,
|
|
108
|
+
sdkNodeModulesPath,
|
|
109
|
+
ignorePnpmModulesPath,
|
|
110
|
+
]) {
|
|
104
111
|
const binPath = path.join(nodeModulesPath, ".bin", "firebase-functions");
|
|
105
112
|
if ((0, fsutils_1.fileExistsSync)(binPath)) {
|
|
106
113
|
logger_1.logger.debug(`Found firebase-functions binary at '${binPath}'`);
|
|
@@ -407,7 +407,7 @@ class FunctionsEmulator {
|
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
if (this.args.debugPort) {
|
|
410
|
-
if (!((_a = emulatableBackend.
|
|
410
|
+
if (!((_a = emulatableBackend.runtime) === null || _a === void 0 ? void 0 : _a.startsWith("node"))) {
|
|
411
411
|
this.logger.log("WARN", "--inspect-functions only supported for Node.js runtimes.");
|
|
412
412
|
}
|
|
413
413
|
else {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "firebase-tools",
|
|
3
|
-
"version": "11.23.
|
|
3
|
+
"version": "11.23.1",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "firebase-tools",
|
|
9
|
-
"version": "11.23.
|
|
9
|
+
"version": "11.23.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@google-cloud/pubsub": "^3.0.1",
|