mtcute/packages/create-bot/template/package.json.hbs

31 lines
No EOL
833 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 .",
{{/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}}
}
}