@docusaurus/core 0.0.0-5378 → 0.0.0-5380

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.
Files changed (2) hide show
  1. package/bin/docusaurus.mjs +18 -0
  2. package/package.json +10 -10
@@ -104,6 +104,23 @@ cli
104
104
  )
105
105
  .action(deploy);
106
106
 
107
+ /**
108
+ * @param {string | undefined} value
109
+ * @returns {boolean | number}
110
+ */
111
+ function normalizePollValue(value) {
112
+ if (value === undefined || value === '') {
113
+ return false;
114
+ }
115
+
116
+ const parsedIntValue = Number.parseInt(value, 10);
117
+ if (!Number.isNaN(parsedIntValue)) {
118
+ return parsedIntValue;
119
+ }
120
+
121
+ return value === 'true';
122
+ }
123
+
107
124
  cli
108
125
  .command('start [siteDir]')
109
126
  .description('Start the development server.')
@@ -122,6 +139,7 @@ cli
122
139
  .option(
123
140
  '--poll [interval]',
124
141
  'use polling rather than watching for reload (default: false). Can specify a poll interval in milliseconds',
142
+ normalizePollValue,
125
143
  )
126
144
  .option(
127
145
  '--no-minify',
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-5378",
4
+ "version": "0.0.0-5380",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -43,13 +43,13 @@
43
43
  "@babel/runtime": "^7.19.0",
44
44
  "@babel/runtime-corejs3": "^7.19.0",
45
45
  "@babel/traverse": "^7.19.0",
46
- "@docusaurus/cssnano-preset": "0.0.0-5378",
47
- "@docusaurus/logger": "0.0.0-5378",
48
- "@docusaurus/mdx-loader": "0.0.0-5378",
46
+ "@docusaurus/cssnano-preset": "0.0.0-5380",
47
+ "@docusaurus/logger": "0.0.0-5380",
48
+ "@docusaurus/mdx-loader": "0.0.0-5380",
49
49
  "@docusaurus/react-loadable": "5.5.2",
50
- "@docusaurus/utils": "0.0.0-5378",
51
- "@docusaurus/utils-common": "0.0.0-5378",
52
- "@docusaurus/utils-validation": "0.0.0-5378",
50
+ "@docusaurus/utils": "0.0.0-5380",
51
+ "@docusaurus/utils-common": "0.0.0-5380",
52
+ "@docusaurus/utils-validation": "0.0.0-5380",
53
53
  "@slorber/static-site-generator-webpack-plugin": "^4.0.7",
54
54
  "@svgr/webpack": "^6.3.1",
55
55
  "autoprefixer": "^10.4.8",
@@ -106,8 +106,8 @@
106
106
  "webpackbar": "^5.0.2"
107
107
  },
108
108
  "devDependencies": {
109
- "@docusaurus/module-type-aliases": "0.0.0-5378",
110
- "@docusaurus/types": "0.0.0-5378",
109
+ "@docusaurus/module-type-aliases": "0.0.0-5380",
110
+ "@docusaurus/types": "0.0.0-5380",
111
111
  "@types/detect-port": "^1.3.2",
112
112
  "@types/react-dom": "^18.0.6",
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": "c78b85ca3197bf73b8414ace57e3db0ffed159b3"
130
+ "gitHead": "43ad3869c04b5248a4b1575c4e55ca6b7c90ccd1"
131
131
  }