generated from yunsii/starter-vite-react-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
109 lines (109 loc) · 3.32 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"name": "use-selection-extra",
"description": "",
"version": "0.0.2",
"author": "Yuns <yuns.xie@qq.com>",
"license": "MIT",
"type": "module",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"keywords": [
"caret",
"selection",
"getSelection",
"createRange",
"document",
"browser",
"react",
"react-hooks",
"hooks-library"
],
"funding": [
"https://opencollective.com/yuns",
"https://afdian.net/@yunslove"
],
"homepage": "https://github.com/yunsii/use-selection-extra#readme",
"repository": {
"type": "git",
"url": "https://github.com/yunsii/use-selection-extra"
},
"bugs": "https://github.com/yunsii/use-selection-extra/issues",
"scripts": {
"dev": "vite --config vite.docs.config.ts",
"build:docs": "tsc && vite build --config vite.docs.config.ts",
"bd": "pnpm run build:docs",
"ssg": "rimraf dist-docs && vite-pages ssr --configFile vite.docs.config.ts",
"ssg:preview": "npm run ssg && serve dist-docs",
"build": "tsc && vite build --config vite.lib.config.ts",
"preview": "vite preview --config vite.docs.config.ts",
"prepare": "husky install",
"lint-staged": "lint-staged",
"lint-staged:lint": "eslint",
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx .",
"lint:fix": "eslint --fix --ext .js,.jsx,.ts,.tsx .",
"prettier": "prettier --check --write --no-plugin-search \"**/*.(js|jsx|tsx|ts|css|less|scss|sass|md|yaml)\"",
"test": "vitest --config vite.lib.config.ts",
"test:ui": "vitest --config vite.lib.config.ts --ui",
"coverage": "vitest run --config vite.lib.config.ts --coverage"
},
"peerDependencies": {
"react": ">=16.9.0",
"react-dom": ">=16.9.0"
},
"devDependencies": {
"@antfu/eslint-config": "^0.35.3",
"@antfu/eslint-config-react": "^0.35.3",
"@changesets/cli": "^2.26.2",
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@commitlint/types": "^17.4.4",
"@jannajs/lint": "^2.3.2",
"@mdx-js/react": "^2.3.0",
"@rollup/plugin-typescript": "^8.3.4",
"@types/node": "^18.6.2",
"@types/react": "^18.0.15",
"@types/react-dom": "^18.0.6",
"@types/react-router-dom": "^5.3.3",
"@types/react-test-renderer": "^18.0.0",
"@vitejs/plugin-react": "^4.0.1",
"@vitest/coverage-v8": "^0.32.2",
"@vitest/ui": "^0.32.2",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.6.0",
"husky": "^8.0.1",
"lint-staged": "^13.2.3",
"prettier": "^2.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.14.0",
"react-test-renderer": "^18.2.0",
"rimraf": "^5.0.1",
"serve": "^14.2.0",
"tslib": "^2.4.0",
"typescript": "^4.6.4",
"unplugin-auto-import": "^0.16.4",
"vite": "^4.3.9",
"vite-pages-theme-doc": "^4.1.5",
"vite-plugin-dts": "^1.4.1",
"vite-plugin-react-pages": "^4.1.3",
"vite-tsconfig-paths": "^3.5.0",
"vitest": "^0.32.2"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:lint",
"**/*.{js,jsx,tsx,ts,css,less,scss,sass,md,yaml}": [
"prettier --write --no-plugin-search"
]
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
},
"dependencies": {
"selection-extra": "^0.0.5"
}
}