package.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "name": "commander",
  3. "version": "13.1.0",
  4. "description": "the complete solution for node.js command-line programs",
  5. "keywords": [
  6. "commander",
  7. "command",
  8. "option",
  9. "parser",
  10. "cli",
  11. "argument",
  12. "args",
  13. "argv"
  14. ],
  15. "author": "TJ Holowaychuk <tj@vision-media.ca>",
  16. "license": "MIT",
  17. "repository": {
  18. "type": "git",
  19. "url": "git+https://github.com/tj/commander.js.git"
  20. },
  21. "scripts": {
  22. "check": "npm run check:type && npm run check:lint && npm run check:format",
  23. "check:format": "prettier --check .",
  24. "check:lint": "eslint .",
  25. "check:type": "npm run check:type:js && npm run check:type:ts",
  26. "check:type:ts": "tsd && tsc -p tsconfig.ts.json",
  27. "check:type:js": "tsc -p tsconfig.js.json",
  28. "fix": "npm run fix:lint && npm run fix:format",
  29. "fix:format": "prettier --write .",
  30. "fix:lint": "eslint --fix .",
  31. "test": "jest && npm run check:type:ts",
  32. "test-all": "jest && npm run test-esm && npm run check",
  33. "test-esm": "node ./tests/esm-imports-test.mjs"
  34. },
  35. "files": [
  36. "index.js",
  37. "lib/*.js",
  38. "esm.mjs",
  39. "typings/index.d.ts",
  40. "typings/esm.d.mts",
  41. "package-support.json"
  42. ],
  43. "type": "commonjs",
  44. "main": "./index.js",
  45. "exports": {
  46. ".": {
  47. "require": {
  48. "types": "./typings/index.d.ts",
  49. "default": "./index.js"
  50. },
  51. "import": {
  52. "types": "./typings/esm.d.mts",
  53. "default": "./esm.mjs"
  54. },
  55. "default": "./index.js"
  56. },
  57. "./esm.mjs": {
  58. "types": "./typings/esm.d.mts",
  59. "import": "./esm.mjs"
  60. }
  61. },
  62. "devDependencies": {
  63. "@eslint/js": "^9.4.0",
  64. "@types/jest": "^29.2.4",
  65. "@types/node": "^22.7.4",
  66. "eslint": "^9.17.0",
  67. "eslint-config-prettier": "^9.1.0",
  68. "eslint-plugin-jest": "^28.3.0",
  69. "globals": "^15.7.0",
  70. "jest": "^29.3.1",
  71. "prettier": "^3.2.5",
  72. "ts-jest": "^29.0.3",
  73. "tsd": "^0.31.0",
  74. "typescript": "^5.0.4",
  75. "typescript-eslint": "^8.12.2"
  76. },
  77. "types": "typings/index.d.ts",
  78. "engines": {
  79. "node": ">=18"
  80. },
  81. "support": true
  82. }