Skip to content

Commit 21f02de

Browse files
ascorbichiad
andauthored
fix(gatsby-plugin-feed): Exists function and update version fs-extra (#29616) (#29764)
Co-authored-by: Hector Alcazar <halcaza@US-C02DKA1XMD6M> Co-authored-by: gatsbybot <[email protected]> (cherry picked from commit 5fb6064) Co-authored-by: hiad <[email protected]>
1 parent 997985a commit 21f02de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/gatsby-plugin-feed/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@babel/runtime": "^7.12.5",
1111
"@hapi/joi": "^15.1.1",
1212
"common-tags": "^1.8.0",
13-
"fs-extra": "^8.1.0",
13+
"fs-extra": "^9.1.0",
1414
"gatsby-plugin-utils": "^0.9.0",
1515
"lodash.merge": "^4.6.2",
1616
"rss": "^1.2.2"

packages/gatsby-plugin-feed/src/gatsby-node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ exports.onPostBuild = async ({ graphql }, pluginOptions) => {
5959

6060
const outputPath = path.join(publicPath, feed.output)
6161
const outputDir = path.dirname(outputPath)
62-
if (!(await fs.exists(outputDir))) {
62+
if (!(await fs.pathExists(outputDir))) {
6363
await fs.mkdirp(outputDir)
6464
}
6565
await fs.writeFile(outputPath, rssFeed.xml())

0 commit comments

Comments
 (0)