mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 15:17:23 +02:00
refactor: remove a lot of implicit anys (#7468)
This commit is contained in:
parent
0c8e57de67
commit
3666a2ede5
23 changed files with 148 additions and 163 deletions
|
@ -45,24 +45,12 @@ program
|
|||
\`custom\`: enter your custom git clone command. We will prompt you for it.`,
|
||||
)
|
||||
.description('Initialize website.')
|
||||
.action(
|
||||
(
|
||||
siteName,
|
||||
template,
|
||||
rootDir = '.',
|
||||
{packageManager, skipInstall, typescript, gitStrategy} = {},
|
||||
) => {
|
||||
// See https://github.com/facebook/docusaurus/pull/6860
|
||||
import('../lib/index.js').then(({default: init}) => {
|
||||
init(path.resolve(rootDir), siteName, template, {
|
||||
packageManager,
|
||||
skipInstall,
|
||||
typescript,
|
||||
gitStrategy,
|
||||
});
|
||||
});
|
||||
},
|
||||
);
|
||||
.action((siteName, template, rootDir, options) => {
|
||||
// See https://github.com/facebook/docusaurus/pull/6860
|
||||
import('../lib/index.js').then(({default: init}) => {
|
||||
init(path.resolve(rootDir ?? '.'), siteName, template, options);
|
||||
});
|
||||
});
|
||||
|
||||
program.parse(process.argv);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue