60 lines
1.4 KiB
JSON
60 lines
1.4 KiB
JSON
{
|
|
"name": "@antfu/ts-starter",
|
|
"version": "0.0.0",
|
|
"description": "",
|
|
"main": "dist/index.js",
|
|
"module": "dist/index.mjs",
|
|
"types": "dist/index.d.ts",
|
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
"license": "MIT",
|
|
"sideEffects": false,
|
|
"bugs": {
|
|
"url": "https://github.com/<placeholder>/issues"
|
|
},
|
|
"homepage": "https://github.com/<placeholder>#readme",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/<placeholder>.git"
|
|
},
|
|
"scripts": {
|
|
"prepare": "npm run build",
|
|
"watch": "npm run build -- --watch",
|
|
"dev": "esno src/index.ts",
|
|
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
"publish:ci": "npm publish --access public",
|
|
"release": "npx bumpp --commit --push --tag && npm run publish:ci",
|
|
"lint": "eslint \"{src,test}/**/*.ts\"",
|
|
"lint:fix": "npm run lint -- --fix",
|
|
"test": "jest"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{ts,js}": [
|
|
"eslint --fix",
|
|
"git add"
|
|
]
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"@antfu/eslint-config-ts": "^0.3.3",
|
|
"@types/jest": "^26.0.14",
|
|
"@types/node": "^14.11.8",
|
|
"eslint": "^7.11.0",
|
|
"eslint-plugin-jest": "^24.1.0",
|
|
"esno": "^0.2.0",
|
|
"husky": "^4.3.0",
|
|
"jest": "^26.5.3",
|
|
"lint-staged": "^10.4.0",
|
|
"ts-jest": "^26.4.1",
|
|
"tsup": "^3.7.0",
|
|
"typescript": "^4.0.3"
|
|
}
|
|
}
|