package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. {
  2. "name": "yargs",
  3. "version": "17.7.2",
  4. "description": "yargs the modern, pirate-themed, successor to optimist.",
  5. "main": "./index.cjs",
  6. "exports": {
  7. "./package.json": "./package.json",
  8. ".": [
  9. {
  10. "import": "./index.mjs",
  11. "require": "./index.cjs"
  12. },
  13. "./index.cjs"
  14. ],
  15. "./helpers": {
  16. "import": "./helpers/helpers.mjs",
  17. "require": "./helpers/index.js"
  18. },
  19. "./browser": {
  20. "import": "./browser.mjs",
  21. "types": "./browser.d.ts"
  22. },
  23. "./yargs": [
  24. {
  25. "import": "./yargs.mjs",
  26. "require": "./yargs"
  27. },
  28. "./yargs"
  29. ]
  30. },
  31. "type": "module",
  32. "module": "./index.mjs",
  33. "contributors": [
  34. {
  35. "name": "Yargs Contributors",
  36. "url": "https://github.com/yargs/yargs/graphs/contributors"
  37. }
  38. ],
  39. "files": [
  40. "browser.mjs",
  41. "browser.d.ts",
  42. "index.cjs",
  43. "helpers/*.js",
  44. "helpers/*",
  45. "index.mjs",
  46. "yargs",
  47. "yargs.mjs",
  48. "build",
  49. "locales",
  50. "LICENSE",
  51. "lib/platform-shims/*.mjs",
  52. "!*.d.ts",
  53. "!**/*.d.ts"
  54. ],
  55. "dependencies": {
  56. "cliui": "^8.0.1",
  57. "escalade": "^3.1.1",
  58. "get-caller-file": "^2.0.5",
  59. "require-directory": "^2.1.1",
  60. "string-width": "^4.2.3",
  61. "y18n": "^5.0.5",
  62. "yargs-parser": "^21.1.1"
  63. },
  64. "devDependencies": {
  65. "@types/chai": "^4.2.11",
  66. "@types/mocha": "^9.0.0",
  67. "@types/node": "^18.0.0",
  68. "c8": "^7.7.0",
  69. "chai": "^4.2.0",
  70. "chalk": "^4.0.0",
  71. "coveralls": "^3.0.9",
  72. "cpr": "^3.0.1",
  73. "cross-env": "^7.0.2",
  74. "cross-spawn": "^7.0.0",
  75. "eslint": "^7.23.0",
  76. "gts": "^3.0.0",
  77. "hashish": "0.0.4",
  78. "mocha": "^9.0.0",
  79. "rimraf": "^3.0.2",
  80. "rollup": "^2.23.0",
  81. "rollup-plugin-cleanup": "^3.1.1",
  82. "rollup-plugin-terser": "^7.0.2",
  83. "rollup-plugin-ts": "^2.0.4",
  84. "typescript": "^4.0.2",
  85. "which": "^2.0.0",
  86. "yargs-test-extends": "^1.0.1"
  87. },
  88. "scripts": {
  89. "fix": "gts fix && npm run fix:js",
  90. "fix:js": "eslint . --ext cjs --ext mjs --ext js --fix",
  91. "posttest": "npm run check",
  92. "test": "c8 mocha --enable-source-maps ./test/*.cjs --require ./test/before.cjs --timeout=12000 --check-leaks",
  93. "test:esm": "c8 mocha --enable-source-maps ./test/esm/*.mjs --check-leaks",
  94. "coverage": "c8 report --check-coverage",
  95. "prepare": "npm run compile",
  96. "pretest": "npm run compile -- -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs",
  97. "compile": "rimraf build && tsc",
  98. "postcompile": "npm run build:cjs",
  99. "build:cjs": "rollup -c rollup.config.cjs",
  100. "postbuild:cjs": "rimraf ./build/index.cjs.d.ts",
  101. "check": "gts lint && npm run check:js",
  102. "check:js": "eslint . --ext cjs --ext mjs --ext js",
  103. "clean": "gts clean"
  104. },
  105. "repository": {
  106. "type": "git",
  107. "url": "https://github.com/yargs/yargs.git"
  108. },
  109. "homepage": "https://yargs.js.org/",
  110. "keywords": [
  111. "argument",
  112. "args",
  113. "option",
  114. "parser",
  115. "parsing",
  116. "cli",
  117. "command"
  118. ],
  119. "license": "MIT",
  120. "engines": {
  121. "node": ">=12"
  122. }
  123. }