-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpackage.json
84 lines (84 loc) · 2.13 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
{
"name": "rattail",
"version": "1.0.18",
"description": "A utilities library for front-end developers, lightweight and ts-friendly",
"keywords": [
"utilities library",
"front-end developers",
"lightweight",
"ts-friendly"
],
"bugs": {
"url": "https://github.com/varletjs/rattail/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/varletjs/rattail.git"
},
"license": "MIT",
"author": "haoziqaq <[email protected]>",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"import": "./lib/index.js",
"require": "./lib/index.cjs"
}
},
"main": "lib/index.cjs",
"jsdelivr": "lib/index.global.js",
"unpkg": "lib/index.global.js",
"module": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib"
],
"scripts": {
"build": "tsup src/index.ts --format esm,cjs,iife --out-dir=lib --global-name=Rattail --dts --clean",
"clean": "rimraf node_modules lib",
"dev": "vitest --coverage",
"docs:build": "vitepress build docs",
"docs:dev": "vitepress dev docs",
"docs:preview": "vitepress preview docs",
"format": "prettier --write .",
"lint": "eslint --fix .",
"prepare": "simple-git-hooks",
"release": "pnpm build && vr release",
"test": "vitest run --coverage"
},
"simple-git-hooks": {
"pre-commit": "pnpm exec nano-staged --allow-empty",
"commit-msg": "pnpm exec vr commit-lint -p $1"
},
"nano-staged": {
"*.{md}": "prettier --write",
"*.{ts}": [
"prettier --write",
"eslint --fix"
]
},
"dependencies": {
"mitt": "^3.0.1"
},
"devDependencies": {
"@configurajs/eslint": "^0.0.14",
"@configurajs/prettier": "^0.1.1",
"@types/node": "^22.8.1",
"@varlet/release": "^0.3.1",
"@vitest/coverage-istanbul": "^2.1.3",
"eslint": "9.17.0",
"jsdom": "^25.0.1",
"nano-staged": "0.8.0",
"prettier": "^3.1.0",
"rimraf": "^6.0.1",
"simple-git-hooks": "^2.11.1",
"tsup": "8.3.5",
"typescript": "5.3.3",
"vitepress": "^1.4.1",
"vitest": "^2.1.3"
},
"packageManager": "[email protected]",
"engines": {
"pnpm": ">=9.0"
}
}