chore: fix gen script to support TS template (#5722)

This commit is contained in:
Alexey Pyltsyn 2021-10-20 13:45:06 +03:00 committed by GitHub
parent 059c05248a
commit 78d146419f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 165 additions and 11 deletions

View file

@ -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,