1 | {
|
2 | "name": "react-responsive",
|
3 | "description": "Media queries in react for responsive design",
|
4 | "version": "10.0.0",
|
5 | "homepage": "http://github.com/yocontra/react-responsive",
|
6 | "repository": {
|
7 | "type": "git",
|
8 | "url": "git://github.com/yocontra/react-responsive.git"
|
9 | },
|
10 | "author": "Contra <yo@contra.io> (https://contra.io)",
|
11 | "license": "MIT",
|
12 | "main": "./dist/cjs/index.js",
|
13 | "module": "./dist/esm/index.js",
|
14 | "types": "./dist/types/index.d.ts",
|
15 | "sideEffects": false,
|
16 | "files": [
|
17 | "dist",
|
18 | "src"
|
19 | ],
|
20 | "keywords": [
|
21 | "css",
|
22 | "react-component",
|
23 | "viewport",
|
24 | "react",
|
25 | "mobile",
|
26 | "media queries",
|
27 | "respond",
|
28 | "media query",
|
29 | "matchMedia",
|
30 | "responsive",
|
31 | "component"
|
32 | ],
|
33 | "dependencies": {
|
34 | "hyphenate-style-name": "^1.0.0",
|
35 | "matchmediaquery": "^0.4.2",
|
36 | "prop-types": "^15.6.1",
|
37 | "shallow-equal": "^3.1.0"
|
38 | },
|
39 | "peerDependencies": {
|
40 | "react": ">=16.8.0"
|
41 | },
|
42 | "devDependencies": {
|
43 | "@rollup/plugin-typescript": "^11.1.6",
|
44 | "@types/chai": "^4.3.1",
|
45 | "@types/hyphenate-style-name": "^1.0.0",
|
46 | "@types/jsdom": "^21.0.0",
|
47 | "@types/match-media-mock": "^0.1.5",
|
48 | "@types/matchmediaquery": "^0.3.0",
|
49 | "@types/mocha": "^10.0.0",
|
50 | "@types/react": "^18.0.4",
|
51 | "@types/react-dom": "^18.0.0",
|
52 | "@types/sinon": "^17.0.0",
|
53 | "@typescript-eslint/eslint-plugin": "^7.0.0",
|
54 | "@typescript-eslint/parser": "^7.0.0",
|
55 | "chai": "^5.0.0",
|
56 | "cross-env": "^7.0.0",
|
57 | "eslint": "^8.13.0",
|
58 | "eslint-plugin-compat": "^4.0.2",
|
59 | "gh-pages": "^6.0.0",
|
60 | "jsdom": "^24.0.0",
|
61 | "match-media-mock": "^0.1.1",
|
62 | "mocha": "^10.0.0",
|
63 | "prettier": "^3.0.0",
|
64 | "react": "^18.0.0",
|
65 | "react-dom": "^18.0.0",
|
66 | "rollup": "^4.0.0",
|
67 | "rollup-plugin-node-externals": "^7.0.0",
|
68 | "should": "^13.2.1",
|
69 | "sinon": "^17.0.0",
|
70 | "tslib": "^2.6.2",
|
71 | "tsx": "^4.7.1",
|
72 | "typedoc": "^0.25.12",
|
73 | "typescript": "^5.4.2"
|
74 | },
|
75 | "scripts": {
|
76 | "preversion": "npm run clean && npm run build",
|
77 | "postpublish": "npm run tag && npm run docs",
|
78 | "prebuild": "npm run clean",
|
79 | "build:types": "tsc --outDir ./dist/types --declaration --emitDeclarationOnly",
|
80 | "build:lib": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
81 | "build": "npm run build:lib && npm run build:types",
|
82 | "build:watch": "npm run build -- --watch",
|
83 | "clean": "rimraf dist",
|
84 | "tag": "git tag -a \"v$npm_package_version\" -m \"tag version $npm_package_version\" && git push origin master --tags",
|
85 | "lint": "eslint --ext=ts,tsx . src test --fix && prettier . src test --write",
|
86 | "test": "npx mocha -R spec ./test/setup.js test/*_test.{ts,tsx}",
|
87 | "docs": "typedoc src/index.ts && gh-pages -d docs"
|
88 | },
|
89 | "engines": {
|
90 | "node": ">=14"
|
91 | }
|
92 | }
|