Ingen beskrivning
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

package.json 3.0KB

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