mirror of
https://github.com/sern-handler/create-bot
synced 2026-06-06 01:16:53 +00:00
fix: fix typescript in sern.config.json
This commit is contained in:
@@ -96,7 +96,7 @@ async function runInteractive() {
|
||||
fs.mkdirSync(root, { recursive: true });
|
||||
}
|
||||
const configJson = createConfig(
|
||||
(result.template as string).includes('typescript')
|
||||
(result.template as string).includes('ts')
|
||||
);
|
||||
await createProject(
|
||||
result.name,
|
||||
@@ -139,7 +139,7 @@ async function runShort(
|
||||
} else if (!fs.existsSync(root)) {
|
||||
fs.mkdirSync(root, { recursive: true });
|
||||
}
|
||||
const configJson = createConfig(templateName.includes('typescript'));
|
||||
const configJson = createConfig(templateName.includes('ts'));
|
||||
|
||||
await createProject(name, configJson, root, selectedTemplate, argv.overwrite);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user