2024-06-24 00:20:10 +03:00
|
|
|
{{emit_if (ne runtime "deno")}}
|
2023-10-22 20:18:12 +03:00
|
|
|
{
|
|
|
|
"name": "{{ name }}",
|
|
|
|
"license": "MIT",
|
2024-06-24 00:20:10 +03:00
|
|
|
"version": "0.0.1",
|
2023-10-22 20:18:12 +03:00
|
|
|
"type": "module",
|
2024-06-24 00:20:10 +03:00
|
|
|
{{#if packageManagerVersion}}
|
|
|
|
"packageManager": "{{packageManagerVersion}}",
|
|
|
|
{{/if}}
|
2023-10-22 20:18:12 +03:00
|
|
|
"scripts": {
|
|
|
|
{{#if features.linters}}
|
|
|
|
"lint": "eslint .",
|
|
|
|
"lint:fix": "eslint --fix .",
|
|
|
|
{{/if}}
|
2024-06-24 00:20:10 +03:00
|
|
|
{{#if (eq runtime "bun")}}
|
2024-03-23 22:53:35 +03:00
|
|
|
{{#if features.typescript}}
|
2024-06-24 00:20:10 +03:00
|
|
|
"start": "bun ./src/main.ts",
|
|
|
|
"build": "tsc && bun build src/main.ts --target=bun --outdir=dist"
|
2024-03-23 22:53:35 +03:00
|
|
|
{{else}}
|
2024-06-24 00:20:10 +03:00
|
|
|
"start": "bun ./src/main.js"
|
2024-03-23 22:53:35 +03:00
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
2023-10-22 20:18:12 +03:00
|
|
|
{{#if features.typescript}}
|
2024-06-24 00:20:10 +03:00
|
|
|
"start": "dotenv tsx ./src/main.ts",
|
2023-10-22 20:18:12 +03:00
|
|
|
"build": "tsc"
|
|
|
|
{{else}}
|
2024-06-24 00:20:10 +03:00
|
|
|
"start": "dotenv node ./src/main.js"
|
2023-10-22 20:18:12 +03:00
|
|
|
{{/if}}
|
2024-03-23 22:53:35 +03:00
|
|
|
{{/if}}
|
2023-10-22 20:18:12 +03:00
|
|
|
}
|
|
|
|
}
|