package.json 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "name": "unplugin",
  3. "type": "module",
  4. "version": "2.3.5",
  5. "packageManager": "pnpm@10.11.0",
  6. "description": "Unified plugin system for build tools",
  7. "license": "MIT",
  8. "homepage": "https://unplugin.unjs.io",
  9. "repository": {
  10. "type": "git",
  11. "url": "git+https://github.com/unjs/unplugin.git"
  12. },
  13. "sideEffects": false,
  14. "exports": {
  15. ".": {
  16. "import": "./dist/index.js",
  17. "require": "./dist/index.cjs"
  18. },
  19. "./dist/webpack/loaders/*": "./dist/webpack/loaders/*.cjs",
  20. "./dist/rspack/loaders/*": "./dist/rspack/loaders/*.cjs"
  21. },
  22. "main": "dist/index.js",
  23. "module": "dist/index.js",
  24. "types": "dist/index.d.ts",
  25. "files": [
  26. "dist"
  27. ],
  28. "engines": {
  29. "node": ">=18.12.0"
  30. },
  31. "scripts": {
  32. "build": "tsdown",
  33. "dev": "tsdown --watch src",
  34. "lint": "eslint --cache .",
  35. "lint:fix": "nr lint --fix",
  36. "typecheck": "tsc --noEmit",
  37. "docs:dev": "pnpm -C docs run dev",
  38. "docs:build": "pnpm -C docs run build",
  39. "docs:gen-files": "pnpm -C docs run gen-files",
  40. "prepublishOnly": "nr build",
  41. "release": "bumpp --all && npm publish",
  42. "test": "nr test:build && vitest run --pool=forks",
  43. "test:build": "jiti scripts/buildFixtures.ts"
  44. },
  45. "dependencies": {
  46. "acorn": "^8.14.1",
  47. "picomatch": "^4.0.2",
  48. "webpack-virtual-modules": "^0.6.2"
  49. },
  50. "devDependencies": {
  51. "@ampproject/remapping": "^2.3.0",
  52. "@antfu/eslint-config": "^4.13.2",
  53. "@antfu/ni": "^25.0.0",
  54. "@farmfe/cli": "^1.0.4",
  55. "@farmfe/core": "^1.7.5",
  56. "@rspack/cli": "^1.3.12",
  57. "@rspack/core": "^1.3.12",
  58. "@types/fs-extra": "^11.0.4",
  59. "@types/node": "^22.15.21",
  60. "@types/picomatch": "^4.0.0",
  61. "ansis": "^4.0.0",
  62. "bumpp": "^10.1.1",
  63. "esbuild": "^0.25.5",
  64. "esbuild-plugin-copy": "^2.1.1",
  65. "eslint": "^9.27.0",
  66. "eslint-plugin-format": "^1.0.1",
  67. "fast-glob": "^3.3.3",
  68. "fs-extra": "^11.3.0",
  69. "jiti": "^2.4.2",
  70. "lint-staged": "^16.0.0",
  71. "magic-string": "^0.30.17",
  72. "rolldown": "^1.0.0-beta.9",
  73. "rollup": "^4.41.1",
  74. "simple-git-hooks": "^2.13.0",
  75. "tsdown": "^0.12.3",
  76. "typescript": "~5.8.3",
  77. "unloader": "^0.4.5",
  78. "unplugin": "workspace:*",
  79. "unplugin-unused": "^0.5.0",
  80. "vite": "^6.3.5",
  81. "vitest": "^3.1.4",
  82. "webpack": "^5.99.9",
  83. "webpack-cli": "^6.0.1"
  84. },
  85. "resolutions": {
  86. "esbuild": "^0.25.5"
  87. },
  88. "simple-git-hooks": {
  89. "pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && npx lint-staged"
  90. },
  91. "lint-staged": {
  92. "*": "eslint --fix"
  93. }
  94. }