package.json 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. "name": "enhanced-resolve",
  3. "version": "5.20.1",
  4. "description": "Offers a async require.resolve function. It's highly configurable.",
  5. "homepage": "http://github.com/webpack/enhanced-resolve",
  6. "repository": {
  7. "type": "git",
  8. "url": "git://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. },
  17. "types": "types.d.ts",
  18. "files": [
  19. "lib",
  20. "types.d.ts",
  21. "LICENSE"
  22. ],
  23. "scripts": {
  24. "prepare": "husky",
  25. "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",
  26. "lint:code": "eslint --cache .",
  27. "lint:special": "node node_modules/tooling/inherit-types && node node_modules/tooling/generate-types",
  28. "lint:types": "tsc",
  29. "lint:types-test": "tsc -p tsconfig.types.test.json",
  30. "lint:spellcheck": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
  31. "fmt": "npm run fmt:base -- --loglevel warn --write",
  32. "fmt:check": "npm run fmt:base -- --check",
  33. "fmt:base": "node_modules/prettier/bin/prettier.cjs --cache --ignore-unknown .",
  34. "fix": "npm run fix:code && npm run fix:special",
  35. "fix:code": "npm run lint:code -- --fix",
  36. "fix:special": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/generate-types --write",
  37. "type-report": "rimraf coverage && npm run cover:types && npm run cover:report && open-cli coverage/lcov-report/index.html",
  38. "pretest": "npm run lint",
  39. "test": "npm run test:coverage",
  40. "test:only": "jest",
  41. "test:watch": "npm run test:only -- --watch",
  42. "test:coverage": "npm run test:only -- --collectCoverageFrom=\"lib/**/*.js\" --coverage",
  43. "version": "changeset version",
  44. "release": "changeset publish"
  45. },
  46. "lint-staged": {
  47. "*.{js,cjs,mjs}": [
  48. "eslint --cache --fix"
  49. ],
  50. "*": [
  51. "prettier --cache --write --ignore-unknown",
  52. "cspell --cache --no-must-find-files"
  53. ]
  54. },
  55. "dependencies": {
  56. "graceful-fs": "^4.2.4",
  57. "tapable": "^2.3.0"
  58. },
  59. "devDependencies": {
  60. "@changesets/cli": "^2.30.0",
  61. "@changesets/get-github-info": "^0.8.0",
  62. "@types/graceful-fs": "^4.1.6",
  63. "@types/jest": "^30.0.0",
  64. "@types/node": "^24.10.4",
  65. "cspell": "^9.4.0",
  66. "eslint": "^9.39.2",
  67. "eslint-config-webpack": "^4.9.0",
  68. "husky": "^9.1.7",
  69. "jest": "^30.3.0",
  70. "lint-staged": "^16.2.7",
  71. "memfs": "^4.56.11",
  72. "prettier": "^3.7.4",
  73. "prettier-2": "npm:prettier@^2",
  74. "tooling": "webpack/tooling#v1.25.0",
  75. "typescript": "^5.9.3"
  76. },
  77. "engines": {
  78. "node": ">=10.13.0"
  79. }
  80. }