Skip to content

Commit b0bc599

Browse files
authored
Fix pnpm monorepo isolation logic (#2415)
1 parent efdf193 commit b0bc599

File tree

5 files changed

+208
-53
lines changed

5 files changed

+208
-53
lines changed

firebase.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@
6565
"functions": {
6666
"source": "./functions/isolate",
6767
"ignore": [".git", "firebase-debug.log", "firebase-debug.*.log"],
68-
"predeploy": "npx isolate",
69-
"isolate": true
68+
"predeploy": [
69+
"npx isolate-package",
70+
"pnpm install --prefix ./functions/isolate --prod --no-frozen-lockfile --shamefully-hoist --ignore-workspace"
71+
]
7072
},
7173
"storage": {
7274
"rules": "storage/storage.rules"

functions/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
},
3131
"dependencies": {
3232
"@fast-csv/format": "catalog:",
33+
"@google-cloud/functions-framework": "catalog:",
3334
"@ground/lib": "workspace:*",
3435
"@ground/proto": "workspace:*",
3536
"@terraformer/wkt": "catalog:",
@@ -40,8 +41,8 @@
4041
"firebase-functions": "catalog:",
4142
"google-auth-library": "catalog:",
4243
"googleapis": "catalog:",
43-
"immutable": "catalog:",
4444
"http-status-codes": "catalog:",
45+
"immutable": "catalog:",
4546
"jsonstream-ts": "catalog:",
4647
"module-alias": "catalog:",
4748
"nodemailer": "catalog:",

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,5 @@
148148
},
149149
"optionalDependencies": {
150150
"@nx/nx-linux-x64-gnu": "^19.3.2"
151-
},
152-
"overrides": {
153-
"eslint-plugin-n": "^17.0.0"
154151
}
155152
}

0 commit comments

Comments
 (0)