@docusaurus/core 0.0.0-4684 → 0.0.0-4685
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/bin/docusaurus.mjs +20 -21
- package/package.json +12 -12
package/bin/docusaurus.mjs
CHANGED
|
@@ -245,34 +245,33 @@ cli.arguments('<command>').action((cmd) => {
|
|
|
245
245
|
});
|
|
246
246
|
|
|
247
247
|
/**
|
|
248
|
-
* @param {string} command
|
|
248
|
+
* @param {string | undefined} command
|
|
249
249
|
*/
|
|
250
250
|
function isInternalCommand(command) {
|
|
251
|
-
return
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
251
|
+
return (
|
|
252
|
+
command &&
|
|
253
|
+
[
|
|
254
|
+
'start',
|
|
255
|
+
'build',
|
|
256
|
+
'swizzle',
|
|
257
|
+
'deploy',
|
|
258
|
+
'serve',
|
|
259
|
+
'clear',
|
|
260
|
+
'write-translations',
|
|
261
|
+
'write-heading-ids',
|
|
262
|
+
].includes(command)
|
|
263
|
+
);
|
|
261
264
|
}
|
|
262
265
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
cli.parse(process.argv);
|
|
266
|
+
if (!isInternalCommand(process.argv.slice(2)[0])) {
|
|
267
|
+
await externalCommand(cli, await resolveDir('.'));
|
|
268
|
+
}
|
|
269
269
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}
|
|
270
|
+
if (!process.argv.slice(2).length) {
|
|
271
|
+
cli.outputHelp();
|
|
273
272
|
}
|
|
274
273
|
|
|
275
|
-
|
|
274
|
+
cli.parse(process.argv);
|
|
276
275
|
|
|
277
276
|
process.on('unhandledRejection', (err) => {
|
|
278
277
|
logger.error(err);
|
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-4685",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"docusaurus": "bin/docusaurus.mjs"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "tsc && tsc -p tsconfig.client.json && node copyUntypedFiles.mjs",
|
|
28
|
-
"watch": "node copyUntypedFiles.mjs && concurrently -n \"server,client\" --kill-others \"tsc --watch\" \"tsc -p tsconfig.client.json --watch\""
|
|
27
|
+
"build": "tsc -p tsconfig.server.json && tsc -p tsconfig.client.json && node copyUntypedFiles.mjs",
|
|
28
|
+
"watch": "node copyUntypedFiles.mjs && concurrently -n \"server,client\" --kill-others \"tsc -p tsconfig.server.json --watch\" \"tsc -p tsconfig.client.json --watch\""
|
|
29
29
|
},
|
|
30
30
|
"bugs": {
|
|
31
31
|
"url": "https://github.com/facebook/docusaurus/issues"
|
|
@@ -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-
|
|
45
|
-
"@docusaurus/logger": "0.0.0-
|
|
46
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
44
|
+
"@docusaurus/cssnano-preset": "0.0.0-4685",
|
|
45
|
+
"@docusaurus/logger": "0.0.0-4685",
|
|
46
|
+
"@docusaurus/mdx-loader": "0.0.0-4685",
|
|
47
47
|
"@docusaurus/react-loadable": "5.5.2",
|
|
48
|
-
"@docusaurus/utils": "0.0.0-
|
|
49
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
50
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
48
|
+
"@docusaurus/utils": "0.0.0-4685",
|
|
49
|
+
"@docusaurus/utils-common": "0.0.0-4685",
|
|
50
|
+
"@docusaurus/utils-validation": "0.0.0-4685",
|
|
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-
|
|
110
|
-
"@docusaurus/types": "0.0.0-
|
|
109
|
+
"@docusaurus/module-type-aliases": "0.0.0-4685",
|
|
110
|
+
"@docusaurus/types": "0.0.0-4685",
|
|
111
111
|
"@types/detect-port": "^1.3.2",
|
|
112
112
|
"@types/nprogress": "^0.2.0",
|
|
113
113
|
"@types/react-dom": "^17.0.11",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"engines": {
|
|
129
129
|
"node": ">=14"
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "3a492428ff3bf2051bc6b660803a735d67c8ae66"
|
|
132
132
|
}
|