package.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. "name": "commander",
  3. "version": "10.0.1",
  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": "https://github.com/tj/commander.js.git"
  20. },
  21. "scripts": {
  22. "lint": "npm run lint:javascript && npm run lint:typescript",
  23. "lint:javascript": "eslint index.js esm.mjs \"lib/*.js\" \"tests/**/*.js\"",
  24. "lint:typescript": "eslint typings/*.ts tests/*.ts",
  25. "test": "jest && npm run test-typings",
  26. "test-esm": "node ./tests/esm-imports-test.mjs",
  27. "test-typings": "tsd",
  28. "typescript-checkJS": "tsc --allowJS --checkJS index.js lib/*.js --noEmit",
  29. "test-all": "npm run test && npm run lint && npm run typescript-checkJS && npm run test-esm"
  30. },
  31. "files": [
  32. "index.js",
  33. "lib/*.js",
  34. "esm.mjs",
  35. "typings/index.d.ts",
  36. "package-support.json"
  37. ],
  38. "type": "commonjs",
  39. "main": "./index.js",
  40. "exports": {
  41. ".": {
  42. "types": "./typings/index.d.ts",
  43. "require": "./index.js",
  44. "import": "./esm.mjs"
  45. },
  46. "./esm.mjs": "./esm.mjs"
  47. },
  48. "devDependencies": {
  49. "@types/jest": "^29.2.4",
  50. "@types/node": "^18.11.18",
  51. "@typescript-eslint/eslint-plugin": "^5.47.1",
  52. "@typescript-eslint/parser": "^5.47.1",
  53. "eslint": "^8.30.0",
  54. "eslint-config-standard": "^17.0.0",
  55. "eslint-config-standard-with-typescript": "^24.0.0",
  56. "eslint-plugin-import": "^2.26.0",
  57. "eslint-plugin-jest": "^27.1.7",
  58. "eslint-plugin-n": "^15.6.0",
  59. "eslint-plugin-promise": "^6.1.1",
  60. "jest": "^29.3.1",
  61. "ts-jest": "^29.0.3",
  62. "tsd": "^0.25.0",
  63. "typescript": "^4.9.4"
  64. },
  65. "types": "typings/index.d.ts",
  66. "jest": {
  67. "testEnvironment": "node",
  68. "collectCoverage": true,
  69. "transform": {
  70. "^.+\\.tsx?$": "ts-jest"
  71. },
  72. "testPathIgnorePatterns": [
  73. "/node_modules/"
  74. ]
  75. },
  76. "engines": {
  77. "node": ">=14"
  78. },
  79. "support": true
  80. }