mtcute/packages/create-bot/template/package.json.hbs
alina sireneva 64da48926f
feat(create-bot): various improvements
- improved bun support
- deno support
- use antfu/eslint-config
- fixed some issues
- removed pre-commit hooks
2024-06-24 17:49:47 +03:00

32 lines
No EOL
887 B
Handlebars

{{emit_if (ne runtime "deno")}}
{
"name": "{{ name }}",
"license": "MIT",
"version": "0.0.1",
"type": "module",
{{#if packageManagerVersion}}
"packageManager": "{{packageManagerVersion}}",
{{/if}}
"scripts": {
{{#if features.linters}}
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"format": "prettier --write \"src/**/*.ts\"",
{{/if}}
{{#if (eq runtime "bun")}}
{{#if features.typescript}}
"start": "bun ./src/main.ts",
"build": "tsc && bun build src/main.ts --target=bun --outdir=dist"
{{else}}
"start": "bun ./src/main.js"
{{/if}}
{{else}}
{{#if features.typescript}}
"start": "dotenv tsx ./src/main.ts",
"build": "tsc"
{{else}}
"start": "dotenv node ./src/main.js"
{{/if}}
{{/if}}
}
}