templates/package.json
{
"$schema": "https://json.schemastore.org/package",
"author": "{{ userName }} <{{ userMail }}>",
"bugs": "https://github.com/{{ userId }}/{{ repoId }}/issues",
"description": "",
"files": [
"public",
"src"
],
"homepage": "https://github.com/{{ userId }}/{{ repoId }}",
"keywords": [],
"license": "{{ license }}",
"name": "@{{ userIdLowercase }}/{{ repoId }}",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/{{ userId }}/{{ repoId }}.git"
},
"scripts": {
"build": "esbuild src/index.ts --bundle --platform=node --minify --outfile=dist/my-app.min.cjs",
"check": "pnpm build && repo-check && pnpm lint && npm start && npm test",
"dev": "ts-run src -w src",
"lint": "tsc --noEmit && eslint --cache --fix --ignore-path .gitignore --ext .js,.ts . && pnpm check",
"postversion": "git push && git push --tags && pnpm build && npm publish",
"preversion": "pnpm check",
"start": "ts-run src",
"test": "pnpm test:watch -- --run && echo test success",
"test:watch": "vitest --coverage"
},
"version": "0.0.1"
}