package.json 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {
  2. "name": "enhanced-resolve",
  3. "version": "5.24.5",
  4. "description": "Offers a async require.resolve function. It's highly configurable.",
  5. "homepage": "https://github.com/webpack/enhanced-resolve#readme",
  6. "repository": {
  7. "type": "git",
  8. "url": "git+https://github.com/webpack/enhanced-resolve.git"
  9. },
  10. "license": "MIT",
  11. "author": "Tobias Koppers @sokra",
  12. "main": "lib/index.js",
  13. "browser": {
  14. "process": "./lib/util/process-browser.js",
  15. "module": "./lib/util/module-browser.js",
  16. "path": "./lib/util/path-browser.js",
  17. "url": "./lib/util/url-browser.js",
  18. "graceful-fs": "./lib/util/graceful-fs-browser.js"
  19. },
  20. "types": "types.d.ts",
  21. "files": [
  22. "lib",
  23. "types.d.ts",
  24. "LICENSE"
  25. ],
  26. "scripts": {
  27. "prepare": "husky",
  28. "lint": "npm run lint:code && npm run lint:types && npm run lint:types-test && npm run lint:special && npm run fmt:check && npm run lint:spellcheck",
  29. "lint:code": "eslint --cache .",
  30. "lint:special": "node node_modules/tooling/inherit-types && node node_modules/tooling/generate-types",
  31. "lint:types": "tsc",
  32. "lint:types-test": "tsc -p tsconfig.types.test.json",
  33. "lint:spellcheck": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
  34. "fmt": "npm run fmt:base -- --log-level warn --write",
  35. "fmt:check": "npm run fmt:base -- --check",
  36. "fmt:base": "node_modules/prettier/bin/prettier.cjs --cache --ignore-unknown .",
  37. "fix": "npm run fix:code && npm run fix:special",
  38. "fix:code": "npm run lint:code -- --fix",
  39. "fix:special": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/generate-types --write",
  40. "type-report": "rimraf coverage && npm run cover:types && npm run cover:report && open-cli coverage/lcov-report/index.html",
  41. "pretest": "npm run lint",
  42. "test": "npm run test:only",
  43. "test:only": "node scripts/test.js",
  44. "test:watch": "node scripts/test.js --watch",
  45. "test:coverage": "node scripts/test.js --experimental-test-coverage --test-coverage-include=\"lib/**\" --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=coverage/lcov.info",
  46. "test:browser": "node --experimental-vm-modules test/smoke/browser-run.cjs",
  47. "version": "changeset version",
  48. "release": "changeset publish",
  49. "benchmark": "node --max-old-space-size=4096 --hash-seed=1 --random-seed=1 --no-opt --predictable --predictable-gc-schedule --interpreted-frames-native-stack --allow-natives-syntax --expose-gc --no-concurrent-sweeping ./benchmark/run.mjs"
  50. },
  51. "lint-staged": {
  52. "*.{js,cjs,mjs}": [
  53. "eslint --cache --fix"
  54. ],
  55. "*": [
  56. "prettier --cache --write --ignore-unknown",
  57. "cspell --cache --no-must-find-files"
  58. ]
  59. },
  60. "dependencies": {
  61. "graceful-fs": "^4.2.4",
  62. "tapable": "^2.3.3"
  63. },
  64. "devDependencies": {
  65. "@changesets/cli": "^2.30.0",
  66. "@changesets/get-github-info": "^0.8.0",
  67. "@codspeed/core": "^5.2.0",
  68. "@types/graceful-fs": "^4.1.6",
  69. "@types/node": "^24.10.4",
  70. "cspell": "^10.0.0",
  71. "eslint": "^9.39.2",
  72. "eslint-config-webpack": "^4.9.5",
  73. "husky": "^9.1.7",
  74. "lint-staged": "^17.0.4",
  75. "memfs": "^4.56.11",
  76. "prettier": "^3.7.4",
  77. "tinybench": "^6.0.0",
  78. "tooling": "webpack/tooling#v1.26.4",
  79. "typescript": "^6.0.2",
  80. "webpack": "^5.107.2"
  81. },
  82. "engines": {
  83. "node": ">=10.13.0"
  84. }
  85. }