Skip to content

Commit

Permalink
chore: fix patches for v4 to be compatible again (#32959)
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Aug 30, 2021
1 parent 88e1559 commit 1257024
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion patches/v4/0-node-version.patch
Expand Up @@ -174,7 +174,7 @@ index 811773db17..fec9f4ba7e 100644
--- a/packages/gatsby-graphiql-explorer/package.json
+++ b/packages/gatsby-graphiql-explorer/package.json
@@ -56,6 +56,6 @@
"whatwg-fetch": "^3.5.0"
"whatwg-fetch": "^3.6.2"
},
"engines": {
- "node": ">=12.13.0"
Expand Down
2 changes: 1 addition & 1 deletion patches/v4/1-lmdb-default.patch
Expand Up @@ -3,7 +3,7 @@ index f9b0648b15..bfbd311aca 100644
--- a/packages/gatsby/package.json
+++ b/packages/gatsby/package.json
@@ -101,6 +101,7 @@
"json-stringify-safe": "^5.0.1",
"json-loader": "^0.5.7",
"latest-version": "5.1.0",
"lodash": "^4.17.21",
+ "lmdb-store": "^1.6.6",
Expand Down
2 changes: 1 addition & 1 deletion patches/v4/2-gatsby-peerdeps.patch
Expand Up @@ -133,7 +133,7 @@ index 0b7931da5d..dbaf39f0aa 100644
--- a/packages/gatsby-plugin-flow/package.json
+++ b/packages/gatsby-plugin-flow/package.json
@@ -35,7 +35,7 @@
"gatsby-plugin-utils": "^1.13.0-next.0"
"gatsby-plugin-utils": "^1.14.0-next.0"
},
"peerDependencies": {
- "gatsby": "^3.0.0-next.0"
Expand Down
14 changes: 14 additions & 0 deletions scripts/release-next-major.js
Expand Up @@ -154,6 +154,20 @@ let currentGitHash = null
stdio: [`inherit`, `inherit`, `inherit`],
})

try {
await promiseSpawn(
`git`,
[`commit`, `-am`, `Comitting yarn changes`, `--no-verify`],
{
cwd: path.resolve(__dirname, `../`),
stdio: [`inherit`, `inherit`, `inherit`],
}
)
commitCreated = true
} catch (err) {
// no catch
}

console.log(` `)
console.log(`=== PUBLISHING V${nextMajor} ALPHA ===`)
await promiseSpawn(
Expand Down

0 comments on commit 1257024

Please sign in to comment.