create-docusaurus 0.0.0-5037 → 0.0.0-5041

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/index.js CHANGED
@@ -134,7 +134,7 @@ async function getGitCommand(gitStrategy) {
134
134
  case 'copy':
135
135
  return 'git clone --recursive --depth 1';
136
136
  case 'custom': {
137
- const { command } = await prompts({
137
+ const { command } = (await prompts({
138
138
  type: 'text',
139
139
  name: 'command',
140
140
  message: 'Write your own git clone command. The repository URL and destination directory will be supplied. E.g. "git clone --depth 10"',
@@ -142,7 +142,7 @@ async function getGitCommand(gitStrategy) {
142
142
  onCancel() {
143
143
  logger.info `Falling back to code=${'git clone'}`;
144
144
  },
145
- });
145
+ }));
146
146
  return command ?? 'git clone';
147
147
  }
148
148
  case 'deep':
@@ -168,7 +168,7 @@ async function getSiteName(reqName, rootDir) {
168
168
  }
169
169
  return reqName;
170
170
  }
171
- const { siteName } = await prompts({
171
+ const { siteName } = (await prompts({
172
172
  type: 'text',
173
173
  name: 'siteName',
174
174
  message: 'What should we name this site?',
@@ -179,7 +179,7 @@ async function getSiteName(reqName, rootDir) {
179
179
  logger.error('A website name is required.');
180
180
  process.exit(1);
181
181
  },
182
- });
182
+ }));
183
183
  return siteName;
184
184
  }
185
185
  async function getSource(reqTemplate, templates, cliOptions) {
@@ -231,7 +231,7 @@ async function getSource(reqTemplate, templates, cliOptions) {
231
231
  },
232
232
  })).template;
233
233
  if (template === 'Git repository') {
234
- const { gitRepoUrl } = await prompts({
234
+ const { gitRepoUrl } = (await prompts({
235
235
  type: 'text',
236
236
  name: 'gitRepoUrl',
237
237
  validate: (url) => {
@@ -247,7 +247,7 @@ async function getSource(reqTemplate, templates, cliOptions) {
247
247
  logger.error('A git repo URL is required.');
248
248
  process.exit(1);
249
249
  },
250
- });
250
+ }));
251
251
  let strategy = cliOptions.gitStrategy;
252
252
  if (!strategy) {
253
253
  ({ strategy } = await prompts({
@@ -279,7 +279,7 @@ async function getSource(reqTemplate, templates, cliOptions) {
279
279
  };
280
280
  }
281
281
  else if (template === 'Local template') {
282
- const { templateDir } = await prompts({
282
+ const { templateDir } = (await prompts({
283
283
  type: 'text',
284
284
  name: 'templateDir',
285
285
  validate: async (dir) => {
@@ -298,7 +298,7 @@ async function getSource(reqTemplate, templates, cliOptions) {
298
298
  logger.error('A file path is required.');
299
299
  process.exit(1);
300
300
  },
301
- });
301
+ }));
302
302
  return {
303
303
  type: 'local',
304
304
  path: templateDir,
@@ -320,7 +320,7 @@ async function getSource(reqTemplate, templates, cliOptions) {
320
320
  };
321
321
  }
322
322
  async function updatePkg(pkgPath, obj) {
323
- const pkg = await fs.readJSON(pkgPath);
323
+ const pkg = (await fs.readJSON(pkgPath));
324
324
  const newPkg = Object.assign(pkg, obj);
325
325
  await fs.outputFile(pkgPath, `${JSON.stringify(newPkg, null, 2)}\n`);
326
326
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-docusaurus",
3
- "version": "0.0.0-5037",
3
+ "version": "0.0.0-5041",
4
4
  "description": "Create Docusaurus apps easily.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "@docusaurus/logger": "0.0.0-5037",
25
+ "@docusaurus/logger": "0.0.0-5041",
26
26
  "commander": "^5.1.0",
27
27
  "fs-extra": "^10.1.0",
28
28
  "lodash": "^4.17.21",
@@ -38,5 +38,5 @@
38
38
  "engines": {
39
39
  "node": ">=14"
40
40
  },
41
- "gitHead": "923ee2cb13be47d28b5286d469ccab06d85a87df"
41
+ "gitHead": "5a3b9a5a3a9c680f7f6d29b622416fc30cd8275d"
42
42
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docusaurus-2-classic-template",
3
- "version": "0.0.0-5037",
3
+ "version": "0.0.0-5041",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "docusaurus": "docusaurus",
@@ -14,8 +14,8 @@
14
14
  "write-heading-ids": "docusaurus write-heading-ids"
15
15
  },
16
16
  "dependencies": {
17
- "@docusaurus/core": "0.0.0-5037",
18
- "@docusaurus/preset-classic": "0.0.0-5037",
17
+ "@docusaurus/core": "0.0.0-5041",
18
+ "@docusaurus/preset-classic": "0.0.0-5041",
19
19
  "@mdx-js/react": "^1.6.22",
20
20
  "clsx": "^1.1.1",
21
21
  "prism-react-renderer": "^1.3.3",
@@ -23,7 +23,7 @@
23
23
  "react-dom": "^17.0.2"
24
24
  },
25
25
  "devDependencies": {
26
- "@docusaurus/module-type-aliases": "0.0.0-5037"
26
+ "@docusaurus/module-type-aliases": "0.0.0-5041"
27
27
  },
28
28
  "browserslist": {
29
29
  "production": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docusaurus-2-classic-typescript-template",
3
- "version": "0.0.0-5037",
3
+ "version": "0.0.0-5041",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "docusaurus": "docusaurus",
@@ -15,8 +15,8 @@
15
15
  "typecheck": "tsc"
16
16
  },
17
17
  "dependencies": {
18
- "@docusaurus/core": "0.0.0-5037",
19
- "@docusaurus/preset-classic": "0.0.0-5037",
18
+ "@docusaurus/core": "0.0.0-5041",
19
+ "@docusaurus/preset-classic": "0.0.0-5041",
20
20
  "@mdx-js/react": "^1.6.22",
21
21
  "clsx": "^1.1.1",
22
22
  "prism-react-renderer": "^1.3.3",
@@ -24,7 +24,7 @@
24
24
  "react-dom": "^17.0.2"
25
25
  },
26
26
  "devDependencies": {
27
- "@docusaurus/module-type-aliases": "0.0.0-5037",
27
+ "@docusaurus/module-type-aliases": "0.0.0-5041",
28
28
  "@tsconfig/docusaurus": "^1.0.5",
29
29
  "typescript": "^4.6.4"
30
30
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docusaurus-2-facebook-template",
3
- "version": "0.0.0-5037",
3
+ "version": "0.0.0-5041",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "docusaurus": "docusaurus",
@@ -18,8 +18,8 @@
18
18
  "format:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,md,mdx}\""
19
19
  },
20
20
  "dependencies": {
21
- "@docusaurus/core": "0.0.0-5037",
22
- "@docusaurus/preset-classic": "0.0.0-5037",
21
+ "@docusaurus/core": "0.0.0-5041",
22
+ "@docusaurus/preset-classic": "0.0.0-5041",
23
23
  "@mdx-js/react": "^1.6.22",
24
24
  "clsx": "^1.1.1",
25
25
  "react": "^17.0.2",