package.json 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. "name": "colorette",
  3. "version": "1.4.0",
  4. "type": "module",
  5. "main": "index.cjs",
  6. "module": "index.js",
  7. "types": "index.d.ts",
  8. "description": "Easily set the text color and style in the terminal.",
  9. "repository": "jorgebucaran/colorette",
  10. "license": "MIT",
  11. "exports": {
  12. "./package.json": "./package.json",
  13. ".": {
  14. "require": "./index.cjs",
  15. "import": "./index.js"
  16. }
  17. },
  18. "files": [
  19. "*.*(c)[tj]s*"
  20. ],
  21. "author": "Jorge Bucaran",
  22. "keywords": [
  23. "terminal",
  24. "styles",
  25. "color",
  26. "ansi"
  27. ],
  28. "scripts": {
  29. "test": "c8 twist tests/*.js",
  30. "build": "node -e \"fs.writeFileSync('index.cjs', fs.readFileSync('index.js', 'utf8').replace(/export const /g, 'exports.').replace(/import \\* as ([^ ]+) from \\\"(.+)\\\"/, 'const \\$1 = require(\\\"\\$2\\\")'), 'utf8')\"",
  31. "deploy": "npm test && git commit --all --message $tag && git tag --sign $tag --message $tag && git push && git push --tags",
  32. "release": "tag=$npm_package_version npm run deploy && npm publish --access public",
  33. "prepare": "npm run build"
  34. },
  35. "devDependencies": {
  36. "c8": "*",
  37. "twist": "*"
  38. }
  39. }