-
Notifications
You must be signed in to change notification settings - Fork 38
/
package.json
137 lines (137 loc) · 3.53 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
127
128
129
130
131
132
133
134
135
136
137
{
"name": "react-floater",
"version": "0.9.4",
"description": "Floaters everywhere!",
"author": "Gil Barbara <[email protected]>",
"keywords": [
"react",
"react-component",
"component",
"tooltip",
"modal",
"popup",
"alert",
"notification"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/gilbarbara/react-floater.git"
},
"bugs": {
"url": "https://github.com/gilbarbara/react-floater/issues"
},
"homepage": "https://github.com/gilbarbara/react-floater#readme",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"files": [
"dist",
"src"
],
"types": "dist/index.d.ts",
"sideEffects": false,
"peerDependencies": {
"react": "16.8 - 19",
"react-dom": "16.8 - 19"
},
"dependencies": {
"@popperjs/core": "^2.11.8",
"deepmerge-ts": "^7.1.0",
"is-lite": "^1.2.1",
"tree-changes-hook": "^0.11.2"
},
"devDependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@gilbarbara/eslint-config": "^0.8.1",
"@gilbarbara/node-helpers": "^0.1.0",
"@gilbarbara/prettier-config": "^1.0.0",
"@gilbarbara/tsconfig": "^0.2.3",
"@gilbarbara/types": "^0.2.2",
"@size-limit/preset-small-lib": "^11.1.5",
"@swc/core": "^1.7.24",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@types/exenv": "^1.2.2",
"@types/node": "^22.5.4",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.7.0",
"@vitest/coverage-v8": "^2.0.5",
"del-cli": "^5.1.0",
"disable-scroll": "^0.6.0",
"husky": "^9.1.5",
"is-ci-cli": "^2.2.0",
"jest-extended": "^4.0.2",
"jsdom": "^25.0.0",
"react": "next",
"react-dom": "next",
"react-use": "^17.5.1",
"repo-tools": "^0.3.1",
"size-limit": "^11.1.5",
"ts-node": "^10.9.2",
"tsup": "^8.2.4",
"type-fest": "^4.26.1",
"typescript": "^5.5.4",
"vitest": "^2.0.5"
},
"scripts": {
"build": "npm run clean && tsup && ts-node scripts/fix-cjs.ts",
"watch": "tsup --watch",
"clean": "del dist/*",
"lint": "eslint src test",
"test": "is-ci \"test:coverage\" \"test:watch\"",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest watch",
"typecheck": "tsc -p test/tsconfig.json --noEmit",
"format": "prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write",
"validate": "npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size",
"size": "size-limit",
"storybook:dev": "start-storybook -p 6006",
"storybook:build": "build-storybook",
"prepublishOnly": "npm run validate",
"prepare": "husky"
},
"tsup": {
"dts": true,
"entry": [
"src/index.tsx"
],
"format": [
"cjs",
"esm"
],
"sourcemap": true,
"splitting": false
},
"eslintConfig": {
"extends": [
"@gilbarbara/eslint-config",
"@gilbarbara/eslint-config/vitest",
"@gilbarbara/eslint-config/testing-library"
],
"rules": {
"testing-library/no-node-access": "off"
}
},
"prettier": "@gilbarbara/prettier-config",
"size-limit": [
{
"name": "commonjs",
"path": "./dist/index.js",
"limit": "20 kB"
},
{
"name": "esm",
"path": "./dist/index.mjs",
"limit": "20 kB"
}
]
}