-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathpackage.json
137 lines (137 loc) · 3.16 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
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
137
{
"name": "colord",
"version": "1.4.0",
"description": "👑 A tiny yet powerful tool for high-performance color manipulations and conversions",
"keywords": [
"color",
"parser",
"convert",
"tiny",
"hex",
"rgb",
"hsl",
"hsv",
"hwb",
"lab",
"lch",
"xyz",
"css",
"color-names",
"a11y"
],
"repository": "omgovich/colord",
"author": "Vlad Shilov <[email protected]>",
"license": "MIT",
"sideEffects": false,
"main": "./index.js",
"module": "./index.mjs",
"exports": {
".": {
"import": "./index.mjs",
"require": "./index.js",
"default": "./index.mjs"
},
"./plugins/*": {
"import": "./plugins/*.mjs",
"require": "./plugins/*.js",
"default": "./plugins/*.mjs"
}
},
"files": [
"*.{js,mjs,ts,map}",
"plugins/*.{js,mjs,ts,map}"
],
"types": "index.d.ts",
"scripts": {
"lint": "eslint src/**/*.ts",
"size": "npm run build && size-limit",
"check-types": "tsc --noEmit true",
"test": "jest tests --coverage",
"benchmark": "tsc --outDir bench --skipLibCheck --esModuleInterop ./tests/benchmark.ts && node ./bench/tests/benchmark.js && rm -rf ./bench",
"build": "rm -rf ./dist/* && rollup --config",
"release": "npm run build && cp *.json dist && cp *.md dist && npm publish dist",
"check-release": "npm run release -- --dry-run"
},
"dependencies": {},
"devDependencies": {
"@size-limit/preset-small-lib": "^4.10.1",
"@types/jest": "^26.0.22",
"@typescript-eslint/eslint-plugin": "^4.19.0",
"@typescript-eslint/parser": "^4.19.0",
"ac-colors": "^1.4.2",
"benny": "^3.6.15",
"chroma-js": "^2.1.1",
"color": "^3.1.3",
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.1.4",
"glob": "^7.1.6",
"jest": "^26.6.3",
"prettier": "^2.2.0",
"rollup": "^2.43.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"size-limit": "^4.10.1",
"tinycolor2": "^1.4.2",
"ts-jest": "^26.5.4",
"ts-node": "^9.1.1",
"tslib": "^2.1.0",
"typescript": "^4.2.3"
},
"jest": {
"verbose": true,
"transform": {
"^.+\\.ts$": "ts-jest"
}
},
"eslintConfig": {
"plugins": [
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
]
},
"prettier": {
"printWidth": 100
},
"size-limit": [
{
"path": "dist/index.mjs",
"import": "{ colord }",
"limit": "2 KB"
},
{
"path": "dist/plugins/a11y.mjs",
"limit": "0.5 KB"
},
{
"path": "dist/plugins/hwb.mjs",
"limit": "1 KB"
},
{
"path": "dist/plugins/lab.mjs",
"limit": "1 KB"
},
{
"path": "dist/plugins/lch.mjs",
"limit": "1.25 KB"
},
{
"path": "dist/plugins/mix.mjs",
"limit": "1 KB"
},
{
"path": "dist/plugins/names.mjs",
"limit": "1.5 KB"
},
{
"path": "dist/plugins/xyz.mjs",
"limit": "1 KB"
}
]
}