Skip to content

Commit 0998849

Browse files
hiadHector Alcazargatsbybot
authored andcommitted
fix(gatsby-plugin-feed): Exists function and update version fs-extra (#29616)
Co-authored-by: Hector Alcazar <halcaza@US-C02DKA1XMD6M> Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com> (cherry picked from commit 5fb6064)
1 parent 61bdabd commit 0998849

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/gatsby-plugin-feed/package.json

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)