@docusaurus/core 0.0.0-4696 → 0.0.0-4699

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.
@@ -95,8 +95,7 @@ export default function ${wrapperComponentName}(props) {
95
95
  );
96
96
  }
97
97
  `;
98
- await fs_extra_1.default.ensureDir(path_1.default.dirname(toPath));
99
- await fs_extra_1.default.writeFile(toPath, content);
98
+ await fs_extra_1.default.outputFile(toPath, content);
100
99
  return { createdFiles: [toPath] };
101
100
  }
102
101
  exports.wrap = wrap;
@@ -78,8 +78,7 @@ Maybe you should remove them? ${unknownKeys}`;
78
78
  // Avoid creating empty translation files
79
79
  if (Object.keys(mergedContent).length > 0) {
80
80
  logger_1.default.info `number=${Object.keys(mergedContent).length} translations will be written at path=${(0, utils_1.toMessageRelativeFilePath)(filePath)}.`;
81
- await fs_extra_1.default.ensureDir(path_1.default.dirname(filePath));
82
- await fs_extra_1.default.writeFile(filePath, `${JSON.stringify(mergedContent, null, 2)}\n`);
81
+ await fs_extra_1.default.outputFile(filePath, `${JSON.stringify(mergedContent, null, 2)}\n`);
83
82
  }
84
83
  }
85
84
  exports.writeTranslationFileContent = writeTranslationFileContent;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docusaurus/core",
3
3
  "description": "Easy to Maintain Open Source Documentation Websites",
4
- "version": "0.0.0-4696",
4
+ "version": "0.0.0-4699",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -41,13 +41,13 @@
41
41
  "@babel/runtime": "^7.17.2",
42
42
  "@babel/runtime-corejs3": "^7.17.2",
43
43
  "@babel/traverse": "^7.17.3",
44
- "@docusaurus/cssnano-preset": "0.0.0-4696",
45
- "@docusaurus/logger": "0.0.0-4696",
46
- "@docusaurus/mdx-loader": "0.0.0-4696",
44
+ "@docusaurus/cssnano-preset": "0.0.0-4699",
45
+ "@docusaurus/logger": "0.0.0-4699",
46
+ "@docusaurus/mdx-loader": "0.0.0-4699",
47
47
  "@docusaurus/react-loadable": "5.5.2",
48
- "@docusaurus/utils": "0.0.0-4696",
49
- "@docusaurus/utils-common": "0.0.0-4696",
50
- "@docusaurus/utils-validation": "0.0.0-4696",
48
+ "@docusaurus/utils": "0.0.0-4699",
49
+ "@docusaurus/utils-common": "0.0.0-4699",
50
+ "@docusaurus/utils-validation": "0.0.0-4699",
51
51
  "@slorber/static-site-generator-webpack-plugin": "^4.0.1",
52
52
  "@svgr/webpack": "^6.2.1",
53
53
  "autoprefixer": "^10.4.2",
@@ -106,8 +106,8 @@
106
106
  "webpackbar": "^5.0.2"
107
107
  },
108
108
  "devDependencies": {
109
- "@docusaurus/module-type-aliases": "0.0.0-4696",
110
- "@docusaurus/types": "0.0.0-4696",
109
+ "@docusaurus/module-type-aliases": "0.0.0-4699",
110
+ "@docusaurus/types": "0.0.0-4699",
111
111
  "@types/detect-port": "^1.3.2",
112
112
  "@types/nprogress": "^0.2.0",
113
113
  "@types/react-dom": "^17.0.13",
@@ -128,5 +128,5 @@
128
128
  "engines": {
129
129
  "node": ">=14"
130
130
  },
131
- "gitHead": "8157433e404db871178e42d7f138553b4d128950"
131
+ "gitHead": "ae96a5ebd7fb6dde9af93742deb5c295bea4915d"
132
132
  }