-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
126 lines (126 loc) · 2.86 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"name": "create-slots",
"version": "0.6.1",
"description": "Bring slots to React components",
"repository": {
"type": "git",
"url": "https://github.com/nihgwu/create-slots.git"
},
"author": "Neo Nie <[email protected]>",
"license": "MIT",
"keywords": [
"react",
"component",
"slots",
"composition"
],
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json",
"./list": {
"import": "./dist/list/index.js",
"require": "./dist/list/index.cjs",
"types": "./dist/list/index.d.ts"
}
},
"sideEffects": false,
"files": [
"dist",
"list"
],
"tsup": {
"entry": [
"src/index.tsx",
"src/list/index.tsx"
],
"format": [
"esm",
"cjs"
],
"splitting": false,
"sourcemap": true,
"clean": true,
"dts": true
},
"scripts": {
"start": "yarn --cwd example start",
"test": "jest",
"test:ci": "jest --coverage",
"typecheck": "tsc --noEmit",
"build": "tsup --minify",
"watch": "tsup --watch",
"clean": "rimraf dist",
"lint": "eslint 'src/**/*.{ts,tsx}'",
"prettier": "prettier --write '**/src/**/*.{ts,tsx}'"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"packages/**/*.{js,ts,tsx}": [
"prettier --write",
"eslint --fix"
],
"website/**/*.{js,ts,tsx}": [
"prettier --write",
"yarn --cwd website eslint --fix"
],
"*.{md,json,yml}": [
"prettier --write"
]
},
"devDependencies": {
"@testing-library/react": "^13.3.0",
"@types/jest": "^28.1.1",
"@types/react": "^18.0.10",
"@types/react-test-renderer": "^18.0.0",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.6.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.1",
"jest": "^28.1.0",
"jest-environment-jsdom": "^28.1.0",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-test-renderer": "^18.1.0",
"ts-jest": "^28.0.4",
"tsup": "^6.1.3",
"typescript": "^4.7.3"
},
"peerDependencies": {
"react": "^16.0.0 || ^17 || ^18"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "jsdom",
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!src/__fixtures__/**"
],
"coverageThreshold": {
"global": {
"statements": 100,
"branches": 100,
"functions": 100,
"lines": 100
}
}
}
}