@docusaurus/plugin-content-blog 0.0.0-4609 → 0.0.0-4615

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/blogUtils.js CHANGED
@@ -215,7 +215,7 @@ async function processBlogSourceFile(blogSourceRelative, contentPaths, context,
215
215
  }
216
216
  async function generateBlogPosts(contentPaths, context, options) {
217
217
  const { include, exclude } = options;
218
- if (!fs_extra_1.default.existsSync(contentPaths.contentPath)) {
218
+ if (!(await fs_extra_1.default.pathExists(contentPaths.contentPath))) {
219
219
  return [];
220
220
  }
221
221
  const blogSourceFiles = await (0, utils_1.Globby)(include, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-blog",
3
- "version": "0.0.0-4609",
3
+ "version": "0.0.0-4615",
4
4
  "description": "Blog plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/plugin-content-blog.d.ts",
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@docusaurus/core": "0.0.0-4609",
22
- "@docusaurus/logger": "0.0.0-4609",
23
- "@docusaurus/mdx-loader": "0.0.0-4609",
24
- "@docusaurus/utils": "0.0.0-4609",
25
- "@docusaurus/utils-common": "0.0.0-4609",
26
- "@docusaurus/utils-validation": "0.0.0-4609",
21
+ "@docusaurus/core": "0.0.0-4615",
22
+ "@docusaurus/logger": "0.0.0-4615",
23
+ "@docusaurus/mdx-loader": "0.0.0-4615",
24
+ "@docusaurus/utils": "0.0.0-4615",
25
+ "@docusaurus/utils-common": "0.0.0-4615",
26
+ "@docusaurus/utils-validation": "0.0.0-4615",
27
27
  "cheerio": "^1.0.0-rc.10",
28
28
  "feed": "^4.2.2",
29
29
  "fs-extra": "^10.0.0",
@@ -35,7 +35,7 @@
35
35
  "webpack": "^5.69.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@docusaurus/types": "0.0.0-4609",
38
+ "@docusaurus/types": "0.0.0-4615",
39
39
  "escape-string-regexp": "^4.0.0"
40
40
  },
41
41
  "peerDependencies": {
@@ -45,5 +45,5 @@
45
45
  "engines": {
46
46
  "node": ">=14"
47
47
  },
48
- "gitHead": "398a24ae6b46221f1b07e23573affd1641861431"
48
+ "gitHead": "02bd619fc85e38d320177f4d96f39864109300c8"
49
49
  }
package/src/blogUtils.ts CHANGED
@@ -332,7 +332,7 @@ export async function generateBlogPosts(
332
332
  ): Promise<BlogPost[]> {
333
333
  const {include, exclude} = options;
334
334
 
335
- if (!fs.existsSync(contentPaths.contentPath)) {
335
+ if (!(await fs.pathExists(contentPaths.contentPath))) {
336
336
  return [];
337
337
  }
338
338