package.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "name": "@img/colour",
  3. "version": "1.1.0",
  4. "description": "The ESM-only 'color' package made compatible for use with CommonJS runtimes",
  5. "license": "MIT",
  6. "main": "index.cjs",
  7. "types": "index.d.ts",
  8. "exports": {
  9. ".": {
  10. "types": "./index.d.ts",
  11. "require": "./index.cjs",
  12. "default": "./index.cjs"
  13. },
  14. "./package.json": "./package.json"
  15. },
  16. "authors": [
  17. "Heather Arthur <fayearthur@gmail.com>",
  18. "Josh Junon <josh@junon.me>",
  19. "Maxime Thirouin",
  20. "Dyma Ywanov <dfcreative@gmail.com>",
  21. "LitoMore (https://github.com/LitoMore)"
  22. ],
  23. "engines": {
  24. "node": ">=18"
  25. },
  26. "files": [
  27. "color.cjs",
  28. "index.d.ts"
  29. ],
  30. "publishConfig": {
  31. "access": "public"
  32. },
  33. "repository": {
  34. "type": "git",
  35. "url": "git+https://github.com/lovell/colour.git"
  36. },
  37. "type": "commonjs",
  38. "keywords": [
  39. "color",
  40. "colour",
  41. "cjs",
  42. "commonjs"
  43. ],
  44. "scripts": {
  45. "build:cjs": "esbuild node_modules/color/index.js --bundle --platform=node --outfile=color.cjs",
  46. "build:dts": "dts-bundle-generator ./dts-src.ts -o index.d.ts --project tsconfig.build.json --external-inlines color --external-inlines color-convert --export-referenced-types=false",
  47. "build": "npm run build:cjs && npm run build:dts",
  48. "test": "node --test"
  49. },
  50. "devDependencies": {
  51. "color": "5.0.3",
  52. "color-convert": "3.1.3",
  53. "color-name": "2.1.0",
  54. "color-string": "2.1.4",
  55. "dts-bundle-generator": "^9.5.1",
  56. "esbuild": "^0.27.3"
  57. }
  58. }