@docusaurus/core 0.0.0-5616 → 0.0.0-5618
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.
|
@@ -30,6 +30,7 @@ const tslib_1 = require("tslib");
|
|
|
30
30
|
// Modified to optimize performance for Docusaurus specific use case
|
|
31
31
|
// More context: https://github.com/facebook/docusaurus/pull/1839
|
|
32
32
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
33
|
+
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
33
34
|
const del_1 = require("del");
|
|
34
35
|
class CleanWebpackPlugin {
|
|
35
36
|
constructor(options = {}) {
|
|
@@ -89,6 +90,13 @@ class CleanWebpackPlugin {
|
|
|
89
90
|
if (this.initialClean) {
|
|
90
91
|
return;
|
|
91
92
|
}
|
|
93
|
+
if (
|
|
94
|
+
// eslint-disable-next-line no-restricted-properties
|
|
95
|
+
fs_extra_1.default.pathExistsSync(this.outputPath) &&
|
|
96
|
+
// eslint-disable-next-line no-restricted-properties
|
|
97
|
+
fs_extra_1.default.statSync(this.outputPath).isFile()) {
|
|
98
|
+
throw new Error(`A file '${this.outputPath}' already exists. Docusaurus needs this directory to save the build output. Either remove/change the file or choose a different build directory via '--out-dir'.`);
|
|
99
|
+
}
|
|
92
100
|
this.initialClean = true;
|
|
93
101
|
this.removeFiles(this.cleanOnceBeforeBuildPatterns);
|
|
94
102
|
}
|
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-
|
|
4
|
+
"version": "0.0.0-5618",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"@babel/runtime": "^7.21.0",
|
|
44
44
|
"@babel/runtime-corejs3": "^7.21.0",
|
|
45
45
|
"@babel/traverse": "^7.21.2",
|
|
46
|
-
"@docusaurus/cssnano-preset": "0.0.0-
|
|
47
|
-
"@docusaurus/logger": "0.0.0-
|
|
48
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
46
|
+
"@docusaurus/cssnano-preset": "0.0.0-5618",
|
|
47
|
+
"@docusaurus/logger": "0.0.0-5618",
|
|
48
|
+
"@docusaurus/mdx-loader": "0.0.0-5618",
|
|
49
49
|
"@docusaurus/react-loadable": "5.5.2",
|
|
50
|
-
"@docusaurus/utils": "0.0.0-
|
|
51
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
52
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
50
|
+
"@docusaurus/utils": "0.0.0-5618",
|
|
51
|
+
"@docusaurus/utils-common": "0.0.0-5618",
|
|
52
|
+
"@docusaurus/utils-validation": "0.0.0-5618",
|
|
53
53
|
"@slorber/static-site-generator-webpack-plugin": "^4.0.7",
|
|
54
54
|
"@svgr/webpack": "^6.5.1",
|
|
55
55
|
"autoprefixer": "^10.4.13",
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
"webpackbar": "^5.0.2"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
110
|
-
"@docusaurus/types": "0.0.0-
|
|
109
|
+
"@docusaurus/module-type-aliases": "0.0.0-5618",
|
|
110
|
+
"@docusaurus/types": "0.0.0-5618",
|
|
111
111
|
"@types/detect-port": "^1.3.2",
|
|
112
112
|
"@types/react-dom": "^18.0.11",
|
|
113
113
|
"@types/react-router-config": "^5.0.6",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"engines": {
|
|
128
128
|
"node": ">=16.14"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "abfae168b943c3e670fd254eaf499930fc188366"
|
|
131
131
|
}
|