-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
58 lines (58 loc) · 1.94 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
{
"name": "use-prefers-color-scheme",
"version": "1.1.3",
"description": "React hook for determining the preferred color scheme",
"author": "rfoel",
"license": "MIT",
"repository": "rfoel/use-prefers-color-scheme",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build:cjs": "esbuild src/index.ts --bundle --sourcemap --minify --format=cjs --outfile=dist/index.cjs.js --external:react --target=esnext,node12.22.0",
"build:esm": "esbuild src/index.ts --bundle --sourcemap --minify --format=esm --outfile=dist/index.esm.js --external:react --target=esnext,node12.22.0",
"build": "npm run build:cjs && npm run build:esm",
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
"postbuild": "tsc --project tsconfig.build.json",
"prebuild": "rimraf dist",
"test": "vitest",
"typecheck": "tsc --noEmit"
},
"peerDependencies": {
"react": ">= 16.8.0"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.2",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.7",
"@semantic-release/npm": "^9.0.2",
"@semantic-release/release-notes-generator": "^10.0.3",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@types/jest": "^29.4.0",
"@types/react": "^18.0.27",
"@vitejs/plugin-react": "^3.0.1",
"esbuild": "^0.17.5",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"jsdom": "^21.1.0",
"prettier": "^2.8.3",
"react": "^18.2.0",
"react-scripts": "^5.0.1",
"rimraf": "^4.1.2",
"semantic-release": "^20.1.0",
"typescript": "^4.9.5",
"vitest": "^0.28.3"
},
"engines": {
"node": ">=8",
"npm": ">=5"
}
}