-
-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathpackage.json
More file actions
136 lines (136 loc) · 4.46 KB
/
package.json
File metadata and controls
136 lines (136 loc) · 4.46 KB
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
{
"name": "use-resize-observer",
"version": "9.1.0",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.cts",
"exports": {
".": {
"types": "./dist/index.d.cts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"./polyfilled": {
"types": "./polyfilled.d.cts",
"require": "./polyfilled.cjs"
}
},
"sideEffects": false,
"repository": "git@github.com:ZeeCoder/use-resize-observer.git",
"description": "A React hook that allows you to use a ResizeObserver to measure an element's size.",
"author": "Viktor Hubert <contact@hubertviktor.com>",
"license": "MIT",
"keywords": [
"react",
"hook",
"react hook",
"resize observer",
"resize observer hook",
"resize observer react hook",
"use-resize-observer",
"useresizeobserver",
"resize hook",
"size hook",
"container query",
"css in js",
"measure",
"size",
"resize"
],
"scripts": {
"build": "rm -rf dist polyfilled.cjs polyfilled.d.cts polyfilled.d.cts.map && tsdown",
"watch": "tsdown --watch",
"src:watch": "tsdown --watch",
"check:size": "size-limit",
"check:types": "tsc -p tests",
"check:lint": "eslint src/**",
"test": "run-s 'build' 'check:size' 'check:types' 'check:lint' 'test:unit' 'test:create:ssr' 'test:headless:chrome'",
"test:unit": "jest",
"test:create:ssr": "node ./tests/ssr/create-ssr-test.js",
"test:chrome": "KARMA_BROWSERS=Chrome pnpm karma:run",
"test:headless:chrome": "KARMA_BROWSERS=ChromeHeadless pnpm karma:run",
"test:firefox": "KARMA_BROWSERS=Firefox pnpm karma:run",
"test:headless:firefox": "KARMA_BROWSERS=FirefoxHeadless pnpm karma:run",
"karma:run": "karma start --singleRun",
"karma:watch": "KARMA_BROWSERS=Chrome karma start",
"prepublish": "pnpm build",
"test:bs:all": "run-s 'test:bs:modern' 'test:bs:legacy'",
"test:bs:modern": "KARMA_BROWSERS=modern pnpm karma:run",
"test:bs:legacy": "KARMA_BROWSERS=legacy pnpm karma:run",
"test:bs:chrome": "KARMA_BROWSERS=bs_chrome_latest pnpm karma:run",
"test:bs:firefox": "KARMA_BROWSERS=bs_firefox_latest pnpm karma:run",
"test:bs:safari": "KARMA_BROWSERS=bs_safari_13 pnpm karma:run",
"test:bs:edge": "KARMA_BROWSERS=bs_edge_latest pnpm karma:run",
"test:bs:opera": "KARMA_BROWSERS=bs_opera_latest pnpm karma:run",
"test:bs:ie": "KARMA_BROWSERS=bs_ie_11 pnpm karma:run",
"test:bs:ios_11": "KARMA_BROWSERS=bs_ios_11 pnpm karma:run",
"test:bs:ios_14": "KARMA_BROWSERS=bs_ios_14 pnpm karma:run",
"test:bs:samsung": "KARMA_BROWSERS=bs_samsung pnpm karma:run",
"prepare": "husky install"
},
"lint-staged": {
"*.{js,ts,md}": [
"prettier --write"
]
},
"files": [
"dist/*",
"polyfilled*",
"README.md",
"LICENSE",
"CHANGELOG*",
"CONTRIBUTING.md",
"package.json"
],
"peerDependencies": {
"react": "16.8.0 - 18",
"react-dom": "16.8.0 - 18"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.4",
"@semantic-release/npm": "^9.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"@size-limit/preset-small-lib": "^5.0.1",
"@testing-library/react": "^13.1.1",
"@types/jest": "^28.1.1",
"@types/karma": "^6.3.1",
"@types/karma-jasmine": "^4.0.1",
"@types/react": "^18.0.8",
"@types/react-dom": "^18.0.3",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"babel-loader": "^8.1.0",
"delay": "^5.0.0",
"eslint": "^8.17.0",
"eslint-plugin-react-hooks": "^4.5.0",
"husky": "^8.0.1",
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"karma": "^6.3.4",
"karma-browserstack-launcher": "^1.6.0",
"karma-chrome-launcher": "^3.0.0",
"karma-firefox-launcher": "^2.1.1",
"karma-jasmine": "^4.0.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-spec-reporter": "^0.0.34",
"karma-webpack": "^5.0.0",
"lint-staged": "^13.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.4",
"react": "^18.0.0",
"react-app-polyfill": "^3.0.0",
"react-dom": "^18.0.0",
"semantic-release": "^19.0.3",
"size-limit": "^5.0.1",
"ts-jest": "^28.0.4",
"tsdown": "^0.20.0",
"typescript": "^4.3.5",
"webpack": "^4.1"
},
"dependencies": {
"@juggle/resize-observer": "^3.3.1"
}
}