-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
92 lines (92 loc) · 3.3 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"name": "package-skeleton",
"version": "1.0.0",
"description": "{{package.description}}",
"author": "{{package.author.name}} <{{package.author.email}}>",
"license": "MIT",
"keywords": [
"nodejs",
"typescript"
],
"homepage": "https://github.com/{{vendor.github}}/{{package.name}}",
"readme": "./README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/{{vendor.github}}/{{package.name}}.git"
},
"bugs": {
"url": "https://github.com/{{vendor.github}}/{{package.name}}/issues"
},
"files": [
"dist",
"README.md",
"LICENSE",
"package.json",
"CHANGELOG.md"
],
"type": "module",
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"typings": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"lint-staged": {
"*.{js,ts,jsx,tsx}": [
"biome format --no-errors-on-unmatched --write",
"prettier --config prettier.config.js --write",
"eslint --config .eslintrc.cjs --fix"
],
"*.{css,gql,graphql,html,json,less,md,mdx,sass,scss}": [
"prettier --config prettier.config.js --write"
],
"*.{yaml,yml}": [
"prettier --config prettier.config.js --tab-width 2 --write"
]
},
"scripts": {
"analyze": "madge --extensions js,ts --circular --ts-config tsconfig.json src/**",
"analyze:deps": "madge --extensions js,ts --ts-config tsconfig.json src/**",
"analyze:image": "madge --extensions js,ts --image graph.svg --layout dot --ts-config tsconfig.json src/**",
"build": "npm run build:prod && npm run build:dts",
"build:dts": "dts-bundle-generator -o dist/index.d.ts src/index.ts",
"build:prod": "vite build --mode production",
"dev": "vite",
"fix": "npm run fmt && npm run lint:fix",
"fmt": "biome format --no-errors-on-unmatched --write . && prettier --config prettier.config.js --write .",
"lint": "eslint --config .eslintrc.cjs --ext ts,js src/",
"lint:fix": "biome lint --apply-unsafe src/ && eslint --config .eslintrc.cjs --ext ts,js --fix src/",
"lint:staged": "lint-staged",
"test": "jest tests --verbose",
"prepare": "husky install",
"version": "auto-changelog -p -o CHANGELOG.md --hide-credit --release-summary --hide-empty-releases --sort-commits date-desc && git add CHANGELOG.md"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@types/jest": "^29.5.11",
"@types/node": "^20.11.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.1.1",
"auto-changelog": "^2.4.0",
"dts-bundle-generator": "^9.2.4",
"esbuild": "^0.24.0",
"eslint": "^8.56.0",
"eslint-plugin-jest": "^28.2.0",
"eslint-plugin-node": "^11.1.0",
"husky": "^9.0.10",
"jest": "^29.7.0",
"lint-staged": "^15.2.0",
"madge": "^7.0.0",
"prettier": "^3.2.1",
"ts-jest": "^29.1.1",
"typescript": "^5.3.3",
"vite": "^5.0.11"
},
"bin": "bin/{{package.name}}",
"engines": {
"node": ">=18.0.0"
}
}