-
Notifications
You must be signed in to change notification settings - Fork 49
/
package.json
98 lines (98 loc) · 2.84 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
{
"name": "react-best-gradient-color-picker",
"version": "3.0.11-beta.4",
"description": "An easy to use color/gradient picker for React.js",
"type": "module",
"sideEffects": [
"*.css"
],
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"source": "./src/index.ts",
"types": "./dist/cjs/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./dist/Calendar.css": "./dist/Picker.css"
},
"scripts": {
"build": "yarn build-js && yarn copy-styles",
"build-js": "yarn build-js-esm && yarn build-js-cjs && yarn build-js-cjs-package",
"build-js-esm": "tsc --project tsconfig.build.json --outDir dist/esm",
"build-js-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --moduleResolution node --verbatimModuleSyntax false",
"build-js-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
"clean": "rimraf dist",
"copy-styles": "cpy 'src/**/*.css' dist",
"format": "biome format",
"lint": "biome lint",
"prepack": "yarn clean && yarn build",
"test": "yarn lint && yarn tsc && yarn format && yarn unit",
"tsc": "tsc",
"unit": "vitest",
"watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & node --eval \"fs.watch('src', () => child_process.exec('yarn copy-styles'))\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/hxf31891/react-gradient-color-picker.git"
},
"keywords": [
"gradient",
"react",
"color",
"picker",
"react.js",
"tool",
"editor"
],
"author": {
"name": "Harry Fox",
"email": "hxfox1@gmail.com"
},
"dependencies": {
"html2canvas": "^1.4.1",
"lodash.throttle": "^4.1.1",
"tinycolor2": "1.4.2"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.0.0",
"@types/lodash.throttle": "*",
"@types/node": "*",
"@types/react": "*",
"@types/reactcss": "^1.2.11",
"@types/tinycolor2": "^1.4.6",
"cpy-cli": "^3.1.1",
"happy-dom": "^12.6.0",
"nodemon": "^3.0.0",
"prettier": "^3.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^3.0.0",
"typescript": "^5.3.2",
"vitest": "^1.0.2"
},
"peerDependencies": {
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"files": [
"dist",
"src"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/hxf31891/react-gradient-color-picker/issues"
},
"homepage": "https://gradient-package-demo.web.app/",
"publishConfig": {
"@hxf31891:registry": "https://npm.pkg.github.com"
}
}