package.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "name": "zwitch",
  3. "version": "2.0.4",
  4. "description": "Handle values based on a property",
  5. "license": "MIT",
  6. "keywords": [
  7. "handle",
  8. "switch",
  9. "property"
  10. ],
  11. "repository": "wooorm/zwitch",
  12. "bugs": "https://github.com/wooorm/zwitch/issues",
  13. "funding": {
  14. "type": "github",
  15. "url": "https://github.com/sponsors/wooorm"
  16. },
  17. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  18. "contributors": [
  19. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  20. ],
  21. "sideEffects": false,
  22. "type": "module",
  23. "main": "index.js",
  24. "types": "index.d.ts",
  25. "files": [
  26. "index.d.ts",
  27. "index.js"
  28. ],
  29. "devDependencies": {
  30. "@types/node": "^18.0.0",
  31. "c8": "^7.0.0",
  32. "prettier": "^2.0.0",
  33. "remark-cli": "^11.0.0",
  34. "remark-preset-wooorm": "^9.0.0",
  35. "tsd": "^0.24.0",
  36. "type-coverage": "^2.0.0",
  37. "typescript": "^4.0.0",
  38. "xo": "^0.52.0"
  39. },
  40. "scripts": {
  41. "prepack": "npm run build && npm run format",
  42. "build": "tsc --build --clean && tsc --build && tsd && type-coverage",
  43. "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
  44. "test-api": "node --conditions development test.js",
  45. "test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
  46. "test": "npm run build && npm run format && npm run test-coverage"
  47. },
  48. "prettier": {
  49. "tabWidth": 2,
  50. "useTabs": false,
  51. "singleQuote": true,
  52. "bracketSpacing": false,
  53. "semi": false,
  54. "trailingComma": "none"
  55. },
  56. "xo": {
  57. "prettier": true
  58. },
  59. "remarkConfig": {
  60. "plugins": [
  61. "preset-wooorm"
  62. ]
  63. },
  64. "typeCoverage": {
  65. "atLeast": 100,
  66. "detail": true,
  67. "strict": true,
  68. "ignoreFiles": [
  69. "index.d.ts"
  70. ]
  71. }
  72. }