fix(create-bot): pnpm run run -> pnpm start

This commit is contained in:
alina 🌸 2024-02-08 04:31:34 +03:00
parent a17604b623
commit 80850c9ad5
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
3 changed files with 4 additions and 4 deletions

View file

@ -40,4 +40,4 @@ if (config.features.includes(MtcuteFeature.Linters)) {
console.log(`✅ Scaffolded new project at ${chalk.blue(outDir)}`)
console.log('🚀 Run it with:')
console.log(` ${chalk.blue('$')} cd ${projectName}`)
console.log(` ${chalk.blue('$')} pnpm run run`)
console.log(` ${chalk.blue('$')} pnpm start`)

View file

@ -8,7 +8,7 @@ MTCute powered Telegram bot
pnpm install --frozen-lockfile
cp .env.example .env
# edit .env
pnpm run run
pnpm start
```
*generated with @mtcute/create-bot*

View file

@ -16,10 +16,10 @@
"format": "prettier --write \"src/**/*.ts\"",
{{/if}}
{{#if features.typescript}}
"run": "tsc && dotenv node ./dist/index.js",
"start": "tsc && dotenv node ./dist/index.js",
"build": "tsc"
{{else}}
"run": "dotenv node ./src/index.js"
"start": "dotenv node ./src/index.js"
{{/if}}
}
}