package.json 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. {
  2. "version": "11.12.0",
  3. "name": "npm",
  4. "description": "a package manager for JavaScript",
  5. "workspaces": [
  6. "docs",
  7. "smoke-tests",
  8. "mock-globals",
  9. "mock-registry",
  10. "workspaces/*"
  11. ],
  12. "files": [
  13. "bin/",
  14. "lib/",
  15. "index.js",
  16. "docs/content/",
  17. "docs/output/",
  18. "man/"
  19. ],
  20. "keywords": [
  21. "install",
  22. "modules",
  23. "package manager",
  24. "package.json"
  25. ],
  26. "homepage": "https://docs.npmjs.com/",
  27. "author": "GitHub Inc.",
  28. "repository": {
  29. "type": "git",
  30. "url": "git+https://github.com/npm/cli.git"
  31. },
  32. "bugs": {
  33. "url": "https://github.com/npm/cli/issues"
  34. },
  35. "directories": {
  36. "doc": "./doc",
  37. "man": "./man"
  38. },
  39. "main": "./index.js",
  40. "bin": {
  41. "npm": "bin/npm-cli.js",
  42. "npx": "bin/npx-cli.js"
  43. },
  44. "exports": {
  45. ".": [
  46. {
  47. "default": "./index.js"
  48. },
  49. "./index.js"
  50. ],
  51. "./package.json": "./package.json"
  52. },
  53. "dependencies": {
  54. "@isaacs/string-locale-compare": "^1.1.0",
  55. "@npmcli/arborist": "^9.4.2",
  56. "@npmcli/config": "^10.8.0",
  57. "@npmcli/fs": "^5.0.0",
  58. "@npmcli/map-workspaces": "^5.0.3",
  59. "@npmcli/metavuln-calculator": "^9.0.3",
  60. "@npmcli/package-json": "^7.0.5",
  61. "@npmcli/promise-spawn": "^9.0.1",
  62. "@npmcli/redact": "^4.0.0",
  63. "@npmcli/run-script": "^10.0.4",
  64. "@sigstore/tuf": "^4.0.2",
  65. "abbrev": "^4.0.0",
  66. "archy": "~1.0.0",
  67. "cacache": "^20.0.4",
  68. "chalk": "^5.6.2",
  69. "ci-info": "^4.4.0",
  70. "fastest-levenshtein": "^1.0.16",
  71. "fs-minipass": "^3.0.3",
  72. "glob": "^13.0.6",
  73. "graceful-fs": "^4.2.11",
  74. "hosted-git-info": "^9.0.2",
  75. "ini": "^6.0.0",
  76. "init-package-json": "^8.2.5",
  77. "is-cidr": "^6.0.3",
  78. "json-parse-even-better-errors": "^5.0.0",
  79. "libnpmaccess": "^10.0.3",
  80. "libnpmdiff": "^8.1.5",
  81. "libnpmexec": "^10.2.5",
  82. "libnpmfund": "^7.0.19",
  83. "libnpmorg": "^8.0.1",
  84. "libnpmpack": "^9.1.5",
  85. "libnpmpublish": "^11.1.3",
  86. "libnpmsearch": "^9.0.1",
  87. "libnpmteam": "^8.0.2",
  88. "libnpmversion": "^8.0.3",
  89. "make-fetch-happen": "^15.0.5",
  90. "minimatch": "^10.2.4",
  91. "minipass": "^7.1.3",
  92. "minipass-pipeline": "^1.2.4",
  93. "ms": "^2.1.2",
  94. "node-gyp": "^12.2.0",
  95. "nopt": "^9.0.0",
  96. "npm-audit-report": "^7.0.0",
  97. "npm-install-checks": "^8.0.0",
  98. "npm-package-arg": "^13.0.2",
  99. "npm-pick-manifest": "^11.0.3",
  100. "npm-profile": "^12.0.1",
  101. "npm-registry-fetch": "^19.1.1",
  102. "npm-user-validate": "^4.0.0",
  103. "p-map": "^7.0.4",
  104. "pacote": "^21.5.0",
  105. "parse-conflict-json": "^5.0.1",
  106. "proc-log": "^6.1.0",
  107. "qrcode-terminal": "^0.12.0",
  108. "read": "^5.0.1",
  109. "semver": "^7.7.4",
  110. "spdx-expression-parse": "^4.0.0",
  111. "ssri": "^13.0.1",
  112. "supports-color": "^10.2.2",
  113. "tar": "^7.5.11",
  114. "text-table": "~0.2.0",
  115. "tiny-relative-date": "^2.0.2",
  116. "treeverse": "^3.0.0",
  117. "validate-npm-package-name": "^7.0.2",
  118. "which": "^6.0.1"
  119. },
  120. "bundleDependencies": [
  121. "@isaacs/string-locale-compare",
  122. "@npmcli/arborist",
  123. "@npmcli/config",
  124. "@npmcli/fs",
  125. "@npmcli/map-workspaces",
  126. "@npmcli/metavuln-calculator",
  127. "@npmcli/package-json",
  128. "@npmcli/promise-spawn",
  129. "@npmcli/redact",
  130. "@npmcli/run-script",
  131. "@sigstore/tuf",
  132. "abbrev",
  133. "archy",
  134. "cacache",
  135. "chalk",
  136. "ci-info",
  137. "fastest-levenshtein",
  138. "fs-minipass",
  139. "glob",
  140. "graceful-fs",
  141. "hosted-git-info",
  142. "ini",
  143. "init-package-json",
  144. "is-cidr",
  145. "json-parse-even-better-errors",
  146. "libnpmaccess",
  147. "libnpmdiff",
  148. "libnpmexec",
  149. "libnpmfund",
  150. "libnpmorg",
  151. "libnpmpack",
  152. "libnpmpublish",
  153. "libnpmsearch",
  154. "libnpmteam",
  155. "libnpmversion",
  156. "make-fetch-happen",
  157. "minimatch",
  158. "minipass",
  159. "minipass-pipeline",
  160. "ms",
  161. "node-gyp",
  162. "nopt",
  163. "npm-audit-report",
  164. "npm-install-checks",
  165. "npm-package-arg",
  166. "npm-pick-manifest",
  167. "npm-profile",
  168. "npm-registry-fetch",
  169. "npm-user-validate",
  170. "p-map",
  171. "pacote",
  172. "parse-conflict-json",
  173. "proc-log",
  174. "qrcode-terminal",
  175. "read",
  176. "semver",
  177. "spdx-expression-parse",
  178. "ssri",
  179. "supports-color",
  180. "tar",
  181. "text-table",
  182. "tiny-relative-date",
  183. "treeverse",
  184. "validate-npm-package-name",
  185. "which"
  186. ],
  187. "devDependencies": {
  188. "@npmcli/docs": "^1.0.0",
  189. "@npmcli/eslint-config": "^5.1.0",
  190. "@npmcli/git": "^7.0.2",
  191. "@npmcli/mock-globals": "^1.0.0",
  192. "@npmcli/mock-registry": "^1.0.0",
  193. "@npmcli/template-oss": "4.29.0",
  194. "@tufjs/repo-mock": "^4.0.0",
  195. "ajv": "^8.12.0",
  196. "ajv-formats": "^3.0.1",
  197. "ajv-formats-draft2019": "^1.6.1",
  198. "cli-table3": "^0.6.4",
  199. "diff": "^8.0.3",
  200. "nock": "^13.4.0",
  201. "npm-packlist": "^10.0.4",
  202. "remark": "^15.0.1",
  203. "remark-gfm": "^4.0.1",
  204. "remark-github": "^12.0.0",
  205. "rimraf": "^6.0.1",
  206. "spawk": "^1.7.1",
  207. "tap": "^16.3.9"
  208. },
  209. "scripts": {
  210. "dependencies": "node scripts/bundle-and-gitignore-deps.js && node scripts/dependency-graph.js",
  211. "dumpconf": "env | grep npm | sort | uniq",
  212. "licenses": "npx licensee --production --errors-only",
  213. "test": "tap",
  214. "test:nocolor": "CI=true tap -Rclassic",
  215. "test-all": "node . run test --workspaces --include-workspace-root --if-present",
  216. "snap": "tap",
  217. "prepack": "node . run build -w docs",
  218. "posttest": "node . run lint",
  219. "lint": "node . run eslint",
  220. "lintfix": "node . run eslint -- --fix",
  221. "lint-all": "node . run lint --workspaces --include-workspace-root --if-present",
  222. "resetdeps": "node scripts/resetdeps.js",
  223. "rp-pull-request": "node scripts/update-authors.js",
  224. "postlint": "template-oss-check",
  225. "template-oss-apply": "template-oss-apply --force",
  226. "eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
  227. },
  228. "tap": {
  229. "test-env": [
  230. "LC_ALL=sk"
  231. ],
  232. "timeout": 600,
  233. "nyc-arg": [
  234. "--exclude",
  235. "docs/**",
  236. "--exclude",
  237. "smoke-tests/**",
  238. "--exclude",
  239. "mock-globals/**",
  240. "--exclude",
  241. "mock-registry/**",
  242. "--exclude",
  243. "workspaces/**",
  244. "--exclude",
  245. "tap-snapshots/**"
  246. ],
  247. "test-ignore": "^(docs|smoke-tests|mock-globals|mock-registry|workspaces)/"
  248. },
  249. "templateOSS": {
  250. "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
  251. "version": "4.29.0",
  252. "content": "./scripts/template-oss/root.js"
  253. },
  254. "license": "Artistic-2.0",
  255. "engines": {
  256. "node": "^20.17.0 || >=22.9.0"
  257. }
  258. }