feat(create-docusaurus): ask user for preferred language when no language CLI option provided (#9442)

Co-authored-by: sebastien <lorber.sebastien@gmail.com>
This commit is contained in:
Rafael Martins 2024-02-15 09:05:05 -03:00 committed by GitHub
parent 6fd8408a2c
commit 628752d92a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 301 additions and 160 deletions

View file

@ -25,7 +25,8 @@ async function generateTemplateExample(template) {
// Run the docusaurus script to create the template in the examples folder
const command = template.endsWith('-typescript')
? template.replace('-typescript', ' -- --typescript')
: template;
: `${template} -- --javascript`;
shell.exec(
// We use the published init script on purpose, because the local init is
// too new and could generate upcoming/unavailable config options.