firebase-tools-with-isolate 12.9.1-1 → 12.9.1-2

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.
package/README.md CHANGED
@@ -14,7 +14,7 @@ It is probably best to install this as a local dependency on whatever package yo
14
14
  npm install firebase-tools-with-isolate
15
15
  ```
16
16
 
17
- Generally I advise you to [use PNPM](https://pnpm.io/feature-comparison) for monorepo setups. At the moment, `isolate-package` only supports generating isolated lockfiles for PNPM, but you can always choose to deploy to Firebase without a lockfile, similar to other workarounds people have been using.
17
+ Personally I would advise you to [try PNPM](https://pnpm.io/feature-comparison) for monorepo setups. At the moment, `isolate-package` only supports generating isolated lockfiles for PNPM, but you can always choose to deploy to Firebase without a lockfile, similar to other workarounds people have been using.
18
18
 
19
19
  ```bash
20
20
  pnpm add firebase-tools-with-isolate
@@ -7,6 +7,7 @@ const filesize = require("filesize");
7
7
  const fs = require("fs");
8
8
  const path = require("path");
9
9
  const tmp = require("tmp");
10
+ const isolate_package_1 = require("isolate-package");
10
11
  const error_1 = require("../../error");
11
12
  const fsAsync = require("../../fsAsync");
12
13
  const functionsConfig = require("../../functionsConfig");
@@ -93,8 +94,10 @@ async function packageSource(sourceDir, config, runtimeConfig) {
93
94
  }
94
95
  async function prepareFunctionsUpload(sourceDir, config, runtimeConfig) {
95
96
  if (config.isolate === true) {
96
- utils.logLabeledBullet("functions", `[NOT IMPLEMENTED YET] isolating ${clc.bold(sourceDir)}`);
97
- return packageSource(sourceDir, config, runtimeConfig);
97
+ utils.logLabeledBullet("functions", `Start isolating the current directory...`);
98
+ const isolateDir = await (0, isolate_package_1.isolate)();
99
+ utils.logLabeledBullet("functions", `Finished isolating at ${clc.bold(isolateDir)}`);
100
+ return packageSource(isolateDir, config, runtimeConfig);
98
101
  }
99
102
  else {
100
103
  return packageSource(sourceDir, config, runtimeConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-tools-with-isolate",
3
- "version": "12.9.1-1",
3
+ "version": "12.9.1-2",
4
4
  "description": "Command-Line Interface for Firebase with experimental monorepo support",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {
@@ -113,6 +113,7 @@
113
113
  "glob": "^7.1.2",
114
114
  "google-auth-library": "^7.11.0",
115
115
  "inquirer": "^8.2.0",
116
+ "isolate-package": "^1.4.1-3",
116
117
  "js-yaml": "^3.13.1",
117
118
  "jsonwebtoken": "^9.0.0",
118
119
  "leven": "^3.1.0",