@kurkle/color 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,29 +1,39 @@
1
1
  {
2
2
  "name": "@kurkle/color",
3
3
  "type": "module",
4
- "version": "0.4.0",
4
+ "version": "0.5.1",
5
5
  "description": "css color parsing, manupulation and conversion",
6
6
  "sideEffects": false,
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
7
10
  "main": "dist/color.cjs",
8
11
  "module": "dist/color.esm.js",
9
- "types": "dist/color.d.ts",
12
+ "types": "dist/index.d.ts",
10
13
  "exports": {
11
- "types": "./dist/color.d.ts",
14
+ "types": {
15
+ "import": "./dist/index.esm.d.ts",
16
+ "require": "./dist/index.d.ts"
17
+ },
12
18
  "import": "./dist/color.esm.js",
13
19
  "require": "./dist/color.cjs"
14
20
  },
15
21
  "scripts": {
16
- "build": "node util/copy_dist.js && rollup -c",
17
- "lint": "eslint src/*.js test/*.js util/*.js",
18
- "test": "node test/index.js"
22
+ "build": "node scripts/build.js",
23
+ "lint": "biome check",
24
+ "format": "biome check --write",
25
+ "test": "vitest run",
26
+ "test:coverage": "vitest run --coverage",
27
+ "typecheck": "tsc --noEmit",
28
+ "docs": "typedoc && touch docs/.nojekyll && mv -f docs/tmp/* docs/ && rm -rd docs/tmp",
29
+ "prepare": "git config core.hooksPath .githooks || true"
19
30
  },
20
31
  "repository": {
21
32
  "type": "git",
22
33
  "url": "git+https://github.com/kurkle/color.git"
23
34
  },
24
35
  "files": [
25
- "dist/*",
26
- "dist/color.d.ts"
36
+ "dist/*"
27
37
  ],
28
38
  "keywords": [
29
39
  "color",
@@ -44,34 +54,15 @@
44
54
  },
45
55
  "homepage": "https://github.com/kurkle/color#readme",
46
56
  "devDependencies": {
47
- "@rollup/plugin-terser": "^0.4.0",
48
- "assert": "^2.0.0",
49
- "benchmark": "^2.1.4",
50
- "chartjs-color": "^2.4.1",
51
- "chartjs-color-string": "^0.6.0",
52
- "child_process": "^1.0.2",
53
- "chroma-js": "^3.1.1",
57
+ "@biomejs/biome": "^2.5.12",
58
+ "@kurkle/configs": "^1.1.1",
59
+ "@vitest/coverage-v8": "^4.1.7",
54
60
  "color-name": "^2.0.0",
55
- "color-names": "^2.0.0",
56
- "color-parse": "^2.0.2",
57
- "color-parser": "^0.1.0",
58
- "color-string": "^2.0.1",
59
- "csscolorparser": "^1.0.3",
60
- "eslint": "^9.15.0",
61
- "eslint-config-chartjs": "^0.3.0",
62
- "eslint-config-defaults": "^9.0.0",
63
- "eslint-plugin-import": "^2.22.1",
64
- "eslint-plugin-react": "^7.22.0",
65
- "fs": "0.0.1-security",
66
- "perf_hooks": "0.0.1",
67
- "rollup": "^4.25.0",
68
- "rollup-plugin-analyzer": "^4.0.0",
69
- "rollup-plugin-cleanup": "^3.2.1",
70
- "rollup-plugin-istanbul": "^5.0.0",
71
- "rollup-plugin-visualizer": "^6.0.1",
72
- "tinycolor2": "^1.4.2",
61
+ "esbuild": "^0.27.2",
62
+ "esbuild-visualizer": "^0.7.0",
63
+ "semantic-release": "^25.0.9",
73
64
  "typedoc": "^0.28.5",
74
65
  "typescript": "^5.6.2",
75
- "util": "^0.12.3"
66
+ "vitest": "^4.0.16"
76
67
  }
77
68
  }
File without changes