-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpackage.json
More file actions
107 lines (107 loc) · 3.13 KB
/
package.json
File metadata and controls
107 lines (107 loc) · 3.13 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
{
"name": "react-dark-mode-toggle-2",
"version": "2.1.1",
"description": "An updated, cute dark mode toggle button for React.",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"type": "module",
"main": "dist/index.cjs.js",
"exports": {
".": [
{
"import": "./dist/index.es.js",
"require": "./dist/index.cjs.js",
"default": "./dist/index.cjs.js",
"types": "./dist/index.d.ts"
}
],
"./package.json": "./package.json"
},
"files": [
"dist",
"README.md",
"package.json"
],
"keywords": [
"react",
"dark",
"night",
"mode",
"toggle",
"button",
"switch"
],
"scripts": {
"dev": "vite --open",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"lint": "eslint \"./src/**/*.{ts,tsx}\"",
"lint:fix": "yarn lint --fix",
"format": "prettier --write \"./src/**/*.{ts,tsx}\"",
"type-check": "echo \"Type-checking...\" && tsc --noEmit",
"test": "echo \"Running tests...\" && jest",
"prebuild": "yarn && rimraf dist",
"build": "yarn type-check && vite build",
"postbuild": "tsc -p ./tsconfig.lib.json",
"refresh-build-size-badge": "copyfiles -E -f ./dist/index.cjs.js ./assets && git add ./assets/index.cjs.js",
"prepublishOnly": "yarn build",
"prepare": "husky install"
},
"repository": "https://github.com/todd-elvers/react-dark-mode-toggle-2",
"author": "Todd Elvers <todd.elvers+github@gmail.com>",
"license": "MIT",
"private": false,
"dependencies": {
"classnames": "^2.5.1",
"react-lottie-player": "^2.1.0"
},
"peerDependencies": {
"react": "^16.14.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@babel/core": "^7.18.6",
"@rollup/plugin-typescript": "^8.3.3",
"@storybook/addon-actions": "^6.5.9",
"@storybook/addon-essentials": "^6.5.9",
"@storybook/addon-links": "^6.5.9",
"@storybook/react": "^6.5.9",
"@types/jest": "^28.1.5",
"@types/node": "^18.7.8",
"@types/react": "^16.14.11 || ^17.0.0 || ^18.0.0",
"@types/react-dom": "^16.9.14 || ^17.0.0 || ^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"@vitejs/plugin-react": "^2.0.0",
"copyfiles": "^2.4.1",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.0",
"jest": "^28.1.3",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"react": "^16.14.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0",
"rimraf": "^3.0.2",
"rollup": "^2.76.0",
"rollup-plugin-polyfill-node": "^0.12.0",
"ts-jest": "^28.0.5",
"ts-node": "^10.9.1",
"typescript": "^4.7.4",
"vite": "^3.0.0",
"vite-plugin-css-injected-by-js": "^3.1.0"
},
"lint-staged": {
"./{src,stories}/**/*.{ts,tsx,js,jsx}": [
"prettier --write"
]
},
"prettier": {
"printWidth": 100,
"quoteProps": "consistent"
}
}