package.json 3.9 KB

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