color-combos
Version:
Get accessibility information about colour combinations
105 lines (104 loc) • 2.71 kB
JSON
{
"name": "color-combos",
"version": "1.1.1",
"description": "Get accessibility information about colour combinations",
"entry": "src/index.ts",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"engines": {
"node": ">=22.0.0",
"bun": ">=1.0.0"
},
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "bun run clean && bun run compile && bun run compile:types",
"build:dev": "bun run clean && bun run compile:dev",
"bundlesize": "bundlesize",
"clean": "rm -rf ./dist",
"compile": "NODE_ENV=production bun run build.ts",
"compile:dev": "NODE_ENV=development bun run build.ts",
"compile:types": "mkdir -p dist && bunx tsc src/index.ts --declaration --declarationMap --emitDeclarationOnly --outDir dist --esModuleInterop",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"format": "biome format .",
"format:fix": "biome format --write .",
"test": "bun test src",
"test:integration": "bun test _test_/integration",
"test:all": "bun run test && bun run build && bun run test:integration",
"semantic-release": "semantic-release",
"size": "bun run build && size-limit",
"prepare": "husky"
},
"repository": {
"type": "git",
"url": "https://github.com/SiTaggart/color-combos.git"
},
"keywords": [
"accessibility",
"color",
"a11y",
"wcag",
"contrast",
"typescript",
"esm"
],
"sideEffects": false,
"author": "sitaggart",
"license": "MIT",
"bugs": {
"url": "https://github.com/SiTaggart/color-combos/issues"
},
"homepage": "https://github.com/SiTaggart/color-combos#readme",
"dependencies": {
"color": "5.0.0",
"lodash.uniq": "4.5.0"
},
"devDependencies": {
"@biomejs/biome": "2.0.0-beta.6",
"@sitaggart/lint-config": "^1.0.1",
"@size-limit/preset-big-lib": "^11.2.0",
"@types/bun": "^1.2.15",
"@types/color": "3.0.6",
"@types/lodash": "4.17.17",
"@types/lodash.uniq": "4.5.9",
"@types/node": "20.19.0",
"husky": "9.1.7",
"precise-commits": "1.0.2",
"semantic-release": "22.0.12",
"size-limit": "^11.2.0",
"typescript": "5.8.3"
},
"size-limit": [
{
"path": "dist/*.js",
"limit": "11 kB"
},
{
"path": "dist/*.mjs",
"limit": "11 kB",
"import": "ColorCombos"
}
],
"release": {
"branches": [
"main"
]
}
}