package.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. "name": "unplugin",
  3. "version": "1.7.1",
  4. "packageManager": "pnpm@8.15.1",
  5. "description": "Unified plugin system for build tools",
  6. "license": "MIT",
  7. "repository": "unjs/unplugin",
  8. "sideEffects": false,
  9. "exports": {
  10. ".": {
  11. "types": {
  12. "import": "./dist/index.d.mts",
  13. "require": "./dist/index.d.ts"
  14. },
  15. "import": "./dist/index.mjs",
  16. "require": "./dist/index.js"
  17. },
  18. "./dist/webpack/loaders/*": "./dist/webpack/loaders/*.js",
  19. "./dist/rspack/loaders/*": "./dist/rspack/loaders/*.js"
  20. },
  21. "main": "dist/index.js",
  22. "module": "dist/index.mjs",
  23. "types": "dist/index.d.ts",
  24. "files": [
  25. "dist"
  26. ],
  27. "scripts": {
  28. "build": "tsup",
  29. "dev": "tsup --watch src",
  30. "lint": "eslint --cache .",
  31. "lint:fix": "nr lint --fix",
  32. "prepublishOnly": "nr build",
  33. "release": "bumpp --all -x 'npx conventional-changelog -p angular -i CHANGELOG.md -s' && npm publish",
  34. "test": "nr lint && nr test:build && vitest run --pool=forks",
  35. "test:build": "jiti scripts/buildFixtures.ts"
  36. },
  37. "dependencies": {
  38. "acorn": "^8.11.3",
  39. "chokidar": "^3.5.3",
  40. "webpack-sources": "^3.2.3",
  41. "webpack-virtual-modules": "^0.6.1"
  42. },
  43. "devDependencies": {
  44. "@ampproject/remapping": "^2.2.1",
  45. "@antfu/eslint-config": "^2.6.4",
  46. "@antfu/ni": "^0.21.12",
  47. "@rspack/cli": "^0.5.3",
  48. "@rspack/core": "^0.5.3",
  49. "@types/fs-extra": "^11.0.4",
  50. "@types/node": "^20.11.15",
  51. "@types/webpack-sources": "^3.2.3",
  52. "bumpp": "^9.3.0",
  53. "conventional-changelog-cli": "^4.1.0",
  54. "esbuild": "^0.20.0",
  55. "eslint": "^8.56.0",
  56. "fast-glob": "^3.3.2",
  57. "fs-extra": "^11.2.0",
  58. "jiti": "^1.21.0",
  59. "lint-staged": "^15.2.1",
  60. "magic-string": "^0.30.6",
  61. "picocolors": "^1.0.0",
  62. "rollup": "^4.9.6",
  63. "simple-git-hooks": "^2.9.0",
  64. "tsup": "^8.0.1",
  65. "typescript": "^5.3.3",
  66. "vite": "^5.0.12",
  67. "vitest": "^1.2.2",
  68. "webpack": "^5.90.0",
  69. "webpack-cli": "4.10.0"
  70. },
  71. "simple-git-hooks": {
  72. "pre-commit": "pnpm lint-staged"
  73. },
  74. "lint-staged": {
  75. "*": "eslint --fix"
  76. }
  77. }