package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. {
  2. "name": "unplugin-auto-import",
  3. "type": "module",
  4. "version": "0.11.2",
  5. "packageManager": "pnpm@7.1.1",
  6. "description": "Register global imports on demand for Vite and Webpack",
  7. "author": "Anthony Fu <anthonyfu117@hotmail.com>",
  8. "license": "MIT",
  9. "funding": "https://github.com/sponsors/antfu",
  10. "homepage": "https://github.com/antfu/unplugin-auto-import#readme",
  11. "repository": {
  12. "type": "git",
  13. "url": "git+https://github.com/antfu/unplugin-auto-import.git"
  14. },
  15. "bugs": {
  16. "url": "https://github.com/antfu/unplugin-auto-import/issues"
  17. },
  18. "keywords": [
  19. "unplugin",
  20. "vite",
  21. "webpack",
  22. "rollup",
  23. "auto-import",
  24. "transform"
  25. ],
  26. "sideEffects": false,
  27. "exports": {
  28. ".": {
  29. "types": "./dist/index.d.ts",
  30. "require": "./dist/index.cjs",
  31. "import": "./dist/index.js"
  32. },
  33. "./*": "./*",
  34. "./nuxt": {
  35. "types": "./dist/nuxt.d.ts",
  36. "require": "./dist/nuxt.cjs",
  37. "import": "./dist/nuxt.js"
  38. },
  39. "./rollup": {
  40. "types": "./dist/rollup.d.ts",
  41. "require": "./dist/rollup.cjs",
  42. "import": "./dist/rollup.js"
  43. },
  44. "./types": {
  45. "types": "./dist/types.d.ts",
  46. "require": "./dist/types.cjs",
  47. "import": "./dist/types.js"
  48. },
  49. "./vite": {
  50. "types": "./dist/vite.d.ts",
  51. "require": "./dist/vite.cjs",
  52. "import": "./dist/vite.js"
  53. },
  54. "./webpack": {
  55. "types": "./dist/webpack.d.ts",
  56. "require": "./dist/webpack.cjs",
  57. "import": "./dist/webpack.js"
  58. },
  59. "./esbuild": {
  60. "types": "./dist/esbuild.d.ts",
  61. "require": "./dist/esbuild.cjs",
  62. "import": "./dist/esbuild.js"
  63. }
  64. },
  65. "main": "dist/index.cjs",
  66. "module": "dist/index.js",
  67. "types": "dist/index.d.ts",
  68. "typesVersions": {
  69. "*": {
  70. "*": [
  71. "./dist/*"
  72. ]
  73. }
  74. },
  75. "files": [
  76. "dist",
  77. "*.d.ts"
  78. ],
  79. "engines": {
  80. "node": ">=14"
  81. },
  82. "peerDependencies": {
  83. "@vueuse/core": "*"
  84. },
  85. "peerDependenciesMeta": {
  86. "@vueuse/core": {
  87. "optional": true
  88. }
  89. },
  90. "dependencies": {
  91. "@antfu/utils": "^0.5.2",
  92. "@rollup/pluginutils": "^4.2.1",
  93. "local-pkg": "^0.4.2",
  94. "magic-string": "^0.26.2",
  95. "unimport": "^0.6.7",
  96. "unplugin": "^0.9.3"
  97. },
  98. "devDependencies": {
  99. "@antfu/eslint-config": "^0.26.1",
  100. "@antfu/ni": "^0.17.2",
  101. "@types/node": "^18.7.6",
  102. "@types/resolve": "^1.20.2",
  103. "@vueuse/metadata": "^9.1.0",
  104. "bumpp": "^8.2.1",
  105. "eslint": "^8.22.0",
  106. "esno": "^0.16.3",
  107. "fast-glob": "^3.2.11",
  108. "rollup": "^2.78.0",
  109. "tsup": "^6.2.2",
  110. "typescript": "^4.7.4",
  111. "vite": "^3.0.8",
  112. "vitest": "^0.22.1",
  113. "webpack": "^5.74.0"
  114. },
  115. "scripts": {
  116. "build": "tsup src/*.ts --format cjs,esm --dts --splitting --clean && esno scripts/postbuild.ts",
  117. "dev": "tsup src/*.ts --watch src",
  118. "lint": "eslint .",
  119. "lint:fix": "nr lint --fix",
  120. "play": "npm -C playground run dev",
  121. "release": "bumpp --commit --push --tag && pnpm publish",
  122. "start": "esno src/index.ts",
  123. "test": "vitest",
  124. "test:run": "vitest run"
  125. }
  126. }