mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 23:27:28 +02:00
chore: fix gen script to support TS template (#5722)
This commit is contained in:
parent
059c05248a
commit
78d146419f
6 changed files with 165 additions and 11 deletions
|
@ -21,7 +21,7 @@ function generateTemplateExample(template) {
|
|||
|
||||
// run the docusaurus script to bootstrap the template in the examples folder
|
||||
const command = template.endsWith('-typescript')
|
||||
? template.replace('-typescript', ' --typescript')
|
||||
? template.replace('-typescript', ' -- --typescript')
|
||||
: template;
|
||||
execSync(
|
||||
// /!\ we use the published init script on purpose,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue