firebase-tools 10.9.0 → 10.9.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.
@@ -57,10 +57,14 @@ class Delegate {
57
57
  watch() {
58
58
  return Promise.resolve(() => Promise.resolve());
59
59
  }
60
- serve(port, envs) {
60
+ serve(port, config, envs) {
61
61
  var _a;
62
+ const env = Object.assign(Object.assign({}, envs), { PORT: port.toString(), FUNCTIONS_CONTROL_API: "true", HOME: process.env.HOME, PATH: process.env.PATH });
63
+ if (Object.keys(config || {}).length) {
64
+ env.CLOUD_RUNTIME_CONFIG = JSON.stringify(config);
65
+ }
62
66
  const childProcess = spawn("./node_modules/.bin/firebase-functions", [this.sourceDir], {
63
- env: Object.assign(Object.assign({}, envs), { PORT: port.toString(), FUNCTIONS_CONTROL_API: "true", HOME: process.env.HOME, PATH: process.env.PATH }),
67
+ env,
64
68
  cwd: this.sourceDir,
65
69
  stdio: ["ignore", "pipe", "inherit"],
66
70
  });
@@ -95,7 +99,7 @@ class Delegate {
95
99
  if (!discovered) {
96
100
  const getPort = (0, util_1.promisify)(portfinder.getPort);
97
101
  const port = await getPort();
98
- const kill = await this.serve(port, env);
102
+ const kill = await this.serve(port, config, env);
99
103
  try {
100
104
  discovered = await discovery.detectFromPort(port, this.projectId, this.runtime);
101
105
  }
@@ -88,7 +88,17 @@ const prepareFrameworks = async (targetNames, context, options) => {
88
88
  firebaseProjectConfig = await (0, apps_1.getAppConfig)(appId, apps_1.AppPlatform.WEB);
89
89
  }
90
90
  else {
91
- console.warn(`No Firebase app associated with site ${site}, unable to provide authenticated server context`);
91
+ console.warn(`No Firebase app associated with site ${site}, unable to provide authenticated server context.
92
+ You can link a Web app to a Hosting site here https://console.firebase.google.com/project/_/settings/general/web`);
93
+ if (!options.nonInteractive) {
94
+ const continueDeploy = await (0, prompt_1.promptOnce)({
95
+ type: "confirm",
96
+ default: true,
97
+ message: "Would you like to continue with the deploy?",
98
+ });
99
+ if (!continueDeploy)
100
+ (0, process_1.exit)(1);
101
+ }
92
102
  }
93
103
  }
94
104
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "10.9.0",
3
+ "version": "10.9.1",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "firebase-tools",
9
- "version": "10.9.0",
9
+ "version": "10.9.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@google-cloud/pubsub": "^2.18.4",
@@ -30,7 +30,7 @@
30
30
  "exit-code": "^1.0.2",
31
31
  "express": "^4.16.4",
32
32
  "filesize": "^6.1.0",
33
- "firebase-frameworks": "^0.4.0",
33
+ "firebase-frameworks": "^0.4.2",
34
34
  "fs-extra": "^5.0.0",
35
35
  "glob": "^7.1.2",
36
36
  "google-auth-library": "^7.11.0",
@@ -6059,9 +6059,9 @@
6059
6059
  }
6060
6060
  },
6061
6061
  "node_modules/firebase-frameworks": {
6062
- "version": "0.4.0",
6063
- "resolved": "https://registry.npmjs.org/firebase-frameworks/-/firebase-frameworks-0.4.0.tgz",
6064
- "integrity": "sha512-Seu+1dKNo3AacMrOHb1V0F41DfCKiM6gW4Go/34z78WtuBkzKNSUOUI+w8XCH7A96QGZRbNbGwt33BiSXEb2xQ==",
6062
+ "version": "0.4.2",
6063
+ "resolved": "https://registry.npmjs.org/firebase-frameworks/-/firebase-frameworks-0.4.2.tgz",
6064
+ "integrity": "sha512-a3xNE3wPh8JWq2WOgWlSypVS9O/y/3/3Im9EV7bNBF44wFV2oOAyFdVgDk6it81+lBRv7ci8PttgQZohtsFeVA==",
6065
6065
  "dependencies": {
6066
6066
  "fs-extra": "^10.1.0",
6067
6067
  "jsonc-parser": "^3.0.0",
@@ -18454,9 +18454,9 @@
18454
18454
  }
18455
18455
  },
18456
18456
  "firebase-frameworks": {
18457
- "version": "0.4.0",
18458
- "resolved": "https://registry.npmjs.org/firebase-frameworks/-/firebase-frameworks-0.4.0.tgz",
18459
- "integrity": "sha512-Seu+1dKNo3AacMrOHb1V0F41DfCKiM6gW4Go/34z78WtuBkzKNSUOUI+w8XCH7A96QGZRbNbGwt33BiSXEb2xQ==",
18457
+ "version": "0.4.2",
18458
+ "resolved": "https://registry.npmjs.org/firebase-frameworks/-/firebase-frameworks-0.4.2.tgz",
18459
+ "integrity": "sha512-a3xNE3wPh8JWq2WOgWlSypVS9O/y/3/3Im9EV7bNBF44wFV2oOAyFdVgDk6it81+lBRv7ci8PttgQZohtsFeVA==",
18460
18460
  "requires": {
18461
18461
  "fs-extra": "^10.1.0",
18462
18462
  "jsonc-parser": "^3.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools",
3
- "version": "10.9.0",
3
+ "version": "10.9.1",
4
4
  "description": "Command-Line Interface for Firebase",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {
@@ -107,7 +107,7 @@
107
107
  "exit-code": "^1.0.2",
108
108
  "express": "^4.16.4",
109
109
  "filesize": "^6.1.0",
110
- "firebase-frameworks": "^0.4.0",
110
+ "firebase-frameworks": "^0.4.2",
111
111
  "fs-extra": "^5.0.0",
112
112
  "glob": "^7.1.2",
113
113
  "google-auth-library": "^7.11.0",
@@ -910,6 +910,9 @@
910
910
  "site": {
911
911
  "type": "string"
912
912
  },
913
+ "source": {
914
+ "type": "string"
915
+ },
913
916
  "target": {
914
917
  "type": "string"
915
918
  },
@@ -1392,6 +1395,9 @@
1392
1395
  "site": {
1393
1396
  "type": "string"
1394
1397
  },
1398
+ "source": {
1399
+ "type": "string"
1400
+ },
1395
1401
  "target": {
1396
1402
  "type": "string"
1397
1403
  },
@@ -1874,6 +1880,9 @@
1874
1880
  "site": {
1875
1881
  "type": "string"
1876
1882
  },
1883
+ "source": {
1884
+ "type": "string"
1885
+ },
1877
1886
  "target": {
1878
1887
  "type": "string"
1879
1888
  },