Skip to content

Commit 1257024

Browse files
authored
chore: fix patches for v4 to be compatible again (#32959)
1 parent 88e1559 commit 1257024

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

patches/v4/0-node-version.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ index 811773db17..fec9f4ba7e 100644
174174
--- a/packages/gatsby-graphiql-explorer/package.json
175175
+++ b/packages/gatsby-graphiql-explorer/package.json
176176
@@ -56,6 +56,6 @@
177-
"whatwg-fetch": "^3.5.0"
177+
"whatwg-fetch": "^3.6.2"
178178
},
179179
"engines": {
180180
- "node": ">=12.13.0"

patches/v4/1-lmdb-default.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ index f9b0648b15..bfbd311aca 100644
33
--- a/packages/gatsby/package.json
44
+++ b/packages/gatsby/package.json
55
@@ -101,6 +101,7 @@
6-
"json-stringify-safe": "^5.0.1",
6+
"json-loader": "^0.5.7",
77
"latest-version": "5.1.0",
88
"lodash": "^4.17.21",
99
+ "lmdb-store": "^1.6.6",

patches/v4/2-gatsby-peerdeps.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ index 0b7931da5d..dbaf39f0aa 100644
133133
--- a/packages/gatsby-plugin-flow/package.json
134134
+++ b/packages/gatsby-plugin-flow/package.json
135135
@@ -35,7 +35,7 @@
136-
"gatsby-plugin-utils": "^1.13.0-next.0"
136+
"gatsby-plugin-utils": "^1.14.0-next.0"
137137
},
138138
"peerDependencies": {
139139
- "gatsby": "^3.0.0-next.0"

scripts/release-next-major.js

+14
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,20 @@ let currentGitHash = null
154154
stdio: [`inherit`, `inherit`, `inherit`],
155155
})
156156

157+
try {
158+
await promiseSpawn(
159+
`git`,
160+
[`commit`, `-am`, `Comitting yarn changes`, `--no-verify`],
161+
{
162+
cwd: path.resolve(__dirname, `../`),
163+
stdio: [`inherit`, `inherit`, `inherit`],
164+
}
165+
)
166+
commitCreated = true
167+
} catch (err) {
168+
// no catch
169+
}
170+
157171
console.log(` `)
158172
console.log(`=== PUBLISHING V${nextMajor} ALPHA ===`)
159173
await promiseSpawn(

0 commit comments

Comments
 (0)