firebase-tools-with-isolate 13.29.1-1 → 13.29.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.
Files changed (2) hide show
  1. package/README.md +51 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -14,14 +14,14 @@ clarity.
14
14
 
15
15
  ## Installation
16
16
 
17
- It is probably best to install this as a local dependency on whatever package you want to deploy to Firebase, as opposed to using a global install. This way the forked binary does not interfere with the original one on your system, and you can easily use the fork on one project will still using the original one on others.
17
+ Add this dependency to the root of your monorepo, and co-locate all off your Firebase configurations there as well, as described in the docs.
18
18
 
19
- It is recommended to use `pnpm` over `npm` or `yarn`. Apart from being fast and
19
+ I encourage you to use `pnpm` over `npm` or `yarn`. Apart from being fast and
20
20
  efficient, PNPM has better support for monorepos, and the the lockfile isolation
21
21
  code is solid and works in parallel for multiple packages, [unlike NPM](https://github.com/0x80/isolate-package/README.md#npm)
22
22
 
23
23
  ```bash
24
- pnpm add firebase-tools-with-isolate -D
24
+ pnpm add firebase-tools-with-isolate -D -w
25
25
  ```
26
26
 
27
27
  Or run the equivalent for NPM or Yarn.
@@ -49,7 +49,54 @@ You have to opt-in to the functions isolate process by setting `functions.isolat
49
49
  }
50
50
  ```
51
51
 
52
- If you like to see a complete example of a monorepo setup with Typescript and multiple Firebase service deployments check out [mono-ts](https://github.com/0x80/mono-ts)
52
+ If you have a monorepo, your firebase.json file should be located in the root listing all of the packages, emulator settings and other firebase related files. It would look something like this:
53
+
54
+ ```json
55
+ {
56
+ "functions": [
57
+ {
58
+ "source": "services/api",
59
+ "predeploy": ["turbo build --filter=@repo/api"],
60
+ "runtime": "nodejs22",
61
+ "codebase": "api",
62
+ "isolate": true
63
+ },
64
+ {
65
+ "source": "services/functions",
66
+ "predeploy": ["turbo build --filter=@repo/functions"],
67
+ "runtime": "nodejs22",
68
+ "codebase": "fns",
69
+ "isolate": true
70
+ }
71
+ ],
72
+ "firestore": {
73
+ "rules": "firestore.rules",
74
+ "indexes": "firestore.indexes.json"
75
+ },
76
+ "storage": {
77
+ "rules": "storage.rules"
78
+ },
79
+ "emulators": {
80
+ "ui": {
81
+ "enabled": true
82
+ },
83
+ "auth": {
84
+ "port": 9099
85
+ },
86
+ "functions": {
87
+ "port": 5001
88
+ },
89
+ "firestore": {
90
+ "port": 8080
91
+ },
92
+ "pubsub": {
93
+ "port": 8085
94
+ }
95
+ }
96
+ }
97
+ ```
98
+
99
+ If you would like to see a complete working example of a modern monorepo setup check out [mono-ts](https://github.com/0x80/mono-ts)
53
100
 
54
101
  ## Documentation
55
102
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "firebase-tools-with-isolate",
3
3
  "description": "Command-Line Interface for Firebase with monorepo support",
4
- "version": "13.29.1-1",
4
+ "version": "13.29.1-2",
5
5
  "main": "./lib/index.js",
6
6
  "bin": {
7
7
  "firebase": "lib/bin/firebase.js"
@@ -129,7 +129,7 @@
129
129
  "google-auth-library": "^9.11.0",
130
130
  "inquirer": "^8.2.6",
131
131
  "inquirer-autocomplete-prompt": "^2.0.1",
132
- "isolate-package": "^1.23.0-1",
132
+ "isolate-package": "^1.23.0",
133
133
  "js-yaml": "^3.14.1",
134
134
  "jsonwebtoken": "^9.0.0",
135
135
  "leven": "^3.1.0",