package.json 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. {
  2. "name": "webpack-dev-server",
  3. "version": "6.0.0",
  4. "description": "Serves a webpack app. Updates the browser on changes.",
  5. "homepage": "https://github.com/webpack/webpack-dev-server#readme",
  6. "bugs": "https://github.com/webpack/webpack-dev-server/issues",
  7. "repository": "https://github.com/webpack/webpack-dev-server",
  8. "funding": {
  9. "type": "opencollective",
  10. "url": "https://opencollective.com/webpack"
  11. },
  12. "license": "MIT",
  13. "author": "Tobias Koppers @sokra",
  14. "type": "module",
  15. "exports": {
  16. ".": {
  17. "types": "./types/lib/Server.d.ts",
  18. "import": "./lib/Server.js",
  19. "require": "./dist/Server.js",
  20. "default": "./lib/Server.js"
  21. },
  22. "./client/*": "./client/*",
  23. "./package.json": "./package.json"
  24. },
  25. "main": "./dist/Server.js",
  26. "module": "./lib/Server.js",
  27. "types": "types/lib/Server.d.ts",
  28. "bin": "bin/webpack-dev-server.js",
  29. "files": [
  30. "bin",
  31. "lib",
  32. "dist",
  33. "client",
  34. "types"
  35. ],
  36. "scripts": {
  37. "fmt:check": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different",
  38. "lint:prettier": "prettier --cache --list-different .",
  39. "lint:code": "eslint --cache .",
  40. "lint:types": "tsc --pretty --noEmit",
  41. "lint:types-client": "tsc -p tsconfig.client.json",
  42. "lint:spelling": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
  43. "lint": "npm-run-all -l -p \"lint:**\"",
  44. "fix:code": "npm run lint:code -- --fix",
  45. "fix:prettier": "npm run lint:prettier -- --write",
  46. "fix": "npm-run-all -l fix:code fix:prettier",
  47. "commitlint": "commitlint --from=main",
  48. "validate:changeset": "node .changeset/changeset-validate.mjs",
  49. "build:cjs": "rimraf -g ./dist/* && babel lib --out-dir dist --env-name cjs --copy-files --no-copy-ignored && node ./scripts/finalize-cjs-build.mjs",
  50. "build:client": "rimraf -g ./client/* && babel client-src/ --out-dir client/ --ignore \"client-src/webpack.config.js\" --ignore \"client-src/modules\" && webpack --config client-src/webpack.config.js",
  51. "build:types": "rimraf -g ./types/* && tsc --declaration --emitDeclarationOnly --outDir types && node ./scripts/extend-webpack-types.js && prettier \"types/**/*.ts\" --write && prettier \"types/**/*.ts\" --write",
  52. "build": "npm-run-all -p \"build:**\"",
  53. "test:only": "node ./scripts/check-test-ports.mjs && node ./scripts/run-tests.mjs",
  54. "test:coverage": "npm run test:only -- --experimental-test-coverage --test-coverage-include=lib/** --test-coverage-include=bin/** --test-coverage-include=client/** --test-coverage-include=client-src/** --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=coverage/lcov.info",
  55. "test:watch": "npm run test:only -- --watch",
  56. "test": "npm run test:coverage",
  57. "pretest": "npm run lint",
  58. "prepare": "husky && npm run build"
  59. },
  60. "dependencies": {
  61. "@types/bonjour": "^3.5.13",
  62. "@types/connect-history-api-fallback": "^1.5.4",
  63. "@types/express": "^5.0.6",
  64. "@types/express-serve-static-core": "^5.1.1",
  65. "@types/serve-index": "^1.9.4",
  66. "@types/serve-static": "^2.2.0",
  67. "@types/ws": "^8.18.1",
  68. "ansi-html-community": "^0.0.8",
  69. "bonjour-service": "^1.3.0",
  70. "chokidar": "^5.0.0",
  71. "compression": "^1.8.1",
  72. "connect-history-api-fallback": "^2.0.0",
  73. "express": "^5.2.1",
  74. "graceful-fs": "^4.2.11",
  75. "http-proxy-middleware": "^4.1.1",
  76. "ipaddr.js": "^2.3.0",
  77. "launch-editor": "^2.14.1",
  78. "open": "^11.0.0",
  79. "p-retry": "^8.0.0",
  80. "schema-utils": "^4.3.3",
  81. "selfsigned": "^5.5.0",
  82. "serve-index": "^1.9.2",
  83. "tinyglobby": "^0.2.15",
  84. "webpack-dev-middleware": "^8.0.3",
  85. "ws": "^8.20.0"
  86. },
  87. "devDependencies": {
  88. "@babel/cli": "^7.28.6",
  89. "@babel/core": "^7.29.0",
  90. "@babel/eslint-parser": "^7.28.6",
  91. "@babel/plugin-transform-object-assign": "^7.27.1",
  92. "@babel/preset-env": "^7.29.2",
  93. "@changesets/cli": "^2.30.0",
  94. "@changesets/get-github-info": "^0.8.0",
  95. "@commitlint/cli": "^19.5.0",
  96. "@commitlint/config-conventional": "^19.5.0",
  97. "@eslint/markdown": "^7.0.0",
  98. "@hono/node-server": "^1.19.12",
  99. "@types/compression": "^1.7.2",
  100. "@types/graceful-fs": "^4.1.9",
  101. "@types/node": "^24.0.14",
  102. "@types/node-forge": "^1.3.1",
  103. "@types/picomatch": "^4.0.2",
  104. "@types/trusted-types": "^2.0.7",
  105. "acorn": "^8.14.0",
  106. "babel-loader": "^10.0.0",
  107. "babel-plugin-transform-import-meta": "^2.3.3",
  108. "connect": "^3.7.0",
  109. "core-js": "^3.38.1",
  110. "cspell": "^8.15.5",
  111. "css-loader": "^7.1.1",
  112. "eslint": "^9.30.1",
  113. "eslint-config-prettier": "^10.1.5",
  114. "eslint-config-webpack": "^4.9.6",
  115. "eslint-plugin-import": "^2.32.0",
  116. "eslint-plugin-jsdoc": "^51.3.4",
  117. "eslint-plugin-n": "^17.21.0",
  118. "execa": "^5.1.1",
  119. "expect": "^30.4.1",
  120. "hono": "^4.12.9",
  121. "html-webpack-plugin": "^5.6.3",
  122. "httpxy": "^0.5.3",
  123. "husky": "^9.1.6",
  124. "jest-mock": "^30.4.1",
  125. "jsdom": "^29.1.1",
  126. "klona": "^2.0.4",
  127. "less": "^4.1.1",
  128. "less-loader": "^12.1.0",
  129. "lint-staged": "^15.2.10",
  130. "marked": "^12.0.0",
  131. "memfs": "^4.14.0",
  132. "npm-run-all": "^4.1.5",
  133. "prettier": "^3.2.4",
  134. "pretty-format": "^30.4.1",
  135. "puppeteer": "^24.35.0",
  136. "readable-stream": "^4.5.2",
  137. "require-from-string": "^2.0.2",
  138. "rimraf": "^5.0.5",
  139. "simple-git": "^3.28.0",
  140. "style-loader": "^4.0.0",
  141. "supertest": "^7.2.2",
  142. "tcp-port-used": "^1.0.2",
  143. "typescript": "^5.7.2",
  144. "typescript-eslint": "^8.36.0",
  145. "wait-for-expect": "^3.0.2",
  146. "webpack": "^5.108.0",
  147. "webpack-cli": "^7.0.2",
  148. "webpack-merge": "^6.0.1"
  149. },
  150. "peerDependencies": {
  151. "webpack": "^5.101.0"
  152. },
  153. "peerDependenciesMeta": {
  154. "webpack-cli": {
  155. "optional": true
  156. },
  157. "webpack": {
  158. "optional": true
  159. }
  160. },
  161. "engines": {
  162. "node": ">= 22.15.0"
  163. }
  164. }