package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. {
  2. "_from": "yargs@^16.0.0",
  3. "_id": "yargs@16.2.0",
  4. "_inBundle": false,
  5. "_integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
  6. "_location": "/yargs",
  7. "_phantomChildren": {
  8. "string-width": "4.2.3",
  9. "strip-ansi": "6.0.1",
  10. "wrap-ansi": "7.0.0"
  11. },
  12. "_requested": {
  13. "type": "range",
  14. "registry": true,
  15. "raw": "yargs@^16.0.0",
  16. "name": "yargs",
  17. "escapedName": "yargs",
  18. "rawSpec": "^16.0.0",
  19. "saveSpec": null,
  20. "fetchSpec": "^16.0.0"
  21. },
  22. "_requiredBy": [
  23. "/cli-highlight"
  24. ],
  25. "_resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
  26. "_shasum": "1c82bf0f6b6a66eafce7ef30e376f49a12477f66",
  27. "_spec": "yargs@^16.0.0",
  28. "_where": "D:\\qianger\\7\\jindouyunNewFront\\node_modules\\cli-highlight",
  29. "bugs": {
  30. "url": "https://github.com/yargs/yargs/issues"
  31. },
  32. "bundleDependencies": false,
  33. "contributors": [
  34. {
  35. "name": "Yargs Contributors",
  36. "url": "https://github.com/yargs/yargs/graphs/contributors"
  37. }
  38. ],
  39. "dependencies": {
  40. "cliui": "^7.0.2",
  41. "escalade": "^3.1.1",
  42. "get-caller-file": "^2.0.5",
  43. "require-directory": "^2.1.1",
  44. "string-width": "^4.2.0",
  45. "y18n": "^5.0.5",
  46. "yargs-parser": "^20.2.2"
  47. },
  48. "deprecated": false,
  49. "description": "yargs the modern, pirate-themed, successor to optimist.",
  50. "devDependencies": {
  51. "@types/chai": "^4.2.11",
  52. "@types/mocha": "^8.0.0",
  53. "@types/node": "^14.11.2",
  54. "@wessberg/rollup-plugin-ts": "^1.3.2",
  55. "c8": "^7.0.0",
  56. "chai": "^4.2.0",
  57. "chalk": "^4.0.0",
  58. "coveralls": "^3.0.9",
  59. "cpr": "^3.0.1",
  60. "cross-env": "^7.0.2",
  61. "cross-spawn": "^7.0.0",
  62. "gts": "^3.0.0",
  63. "hashish": "0.0.4",
  64. "mocha": "^8.0.0",
  65. "rimraf": "^3.0.2",
  66. "rollup": "^2.23.0",
  67. "rollup-plugin-cleanup": "^3.1.1",
  68. "standardx": "^5.0.0",
  69. "typescript": "^4.0.2",
  70. "which": "^2.0.0",
  71. "yargs-test-extends": "^1.0.1"
  72. },
  73. "engines": {
  74. "node": ">=10"
  75. },
  76. "exports": {
  77. "./package.json": "./package.json",
  78. ".": [
  79. {
  80. "import": "./index.mjs",
  81. "require": "./index.cjs"
  82. },
  83. "./index.cjs"
  84. ],
  85. "./helpers": {
  86. "import": "./helpers/helpers.mjs",
  87. "require": "./helpers/index.js"
  88. },
  89. "./yargs": [
  90. {
  91. "require": "./yargs"
  92. },
  93. "./yargs"
  94. ]
  95. },
  96. "files": [
  97. "browser.mjs",
  98. "index.cjs",
  99. "helpers/*.js",
  100. "helpers/*",
  101. "index.mjs",
  102. "yargs",
  103. "build",
  104. "locales",
  105. "LICENSE",
  106. "lib/platform-shims/*.mjs",
  107. "!*.d.ts"
  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. "main": "./index.cjs",
  121. "module": "./index.mjs",
  122. "name": "yargs",
  123. "repository": {
  124. "type": "git",
  125. "url": "git+https://github.com/yargs/yargs.git"
  126. },
  127. "scripts": {
  128. "build:cjs": "rollup -c rollup.config.cjs",
  129. "check": "gts lint && npm run check:js",
  130. "check:js": "standardx '**/*.mjs' && standardx '**/*.cjs' && standardx './*.mjs' && standardx './*.cjs'",
  131. "clean": "gts clean",
  132. "compile": "rimraf build && tsc",
  133. "coverage": "c8 report --check-coverage",
  134. "fix": "gts fix && npm run fix:js",
  135. "fix:js": "standardx --fix '**/*.mjs' && standardx --fix '**/*.cjs' && standardx --fix './*.mjs' && standardx --fix './*.cjs'",
  136. "postbuild:cjs": "rimraf ./build/index.cjs.d.ts",
  137. "postcompile": "npm run build:cjs",
  138. "posttest": "npm run check",
  139. "prepare": "npm run compile",
  140. "pretest": "npm run compile -- -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs",
  141. "test": "c8 mocha ./test/*.cjs --require ./test/before.cjs --timeout=12000 --check-leaks",
  142. "test:esm": "c8 mocha ./test/esm/*.mjs --check-leaks"
  143. },
  144. "standardx": {
  145. "ignore": [
  146. "build",
  147. "helpers",
  148. "**/example/**",
  149. "**/platform-shims/esm.mjs"
  150. ]
  151. },
  152. "type": "module",
  153. "version": "16.2.0"
  154. }