package.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. "name": "laravel-vite-plugin",
  3. "version": "0.7.8",
  4. "description": "Laravel plugin for Vite.",
  5. "keywords": [
  6. "laravel",
  7. "vite",
  8. "vite-plugin"
  9. ],
  10. "homepage": "https://github.com/laravel/vite-plugin",
  11. "repository": {
  12. "type": "git",
  13. "url": "https://github.com/laravel/vite-plugin"
  14. },
  15. "license": "MIT",
  16. "author": "Laravel",
  17. "exports": {
  18. ".": {
  19. "import": "./dist/index.mjs",
  20. "require": "./dist/index.cjs",
  21. "types": "./dist/index.d.ts"
  22. },
  23. "./inertia-helpers": {
  24. "import": "./inertia-helpers/index.js",
  25. "types": "./inertia-helpers/index.d.ts",
  26. "node": "./inertia-helpers/index.js"
  27. }
  28. },
  29. "types": "./dist/index.d.ts",
  30. "files": [
  31. "/dist",
  32. "/inertia-helpers"
  33. ],
  34. "scripts": {
  35. "build": "npm run build-plugin && npm run build-inertia-helpers",
  36. "build-plugin": "rm -rf dist && npm run build-plugin-types && npm run build-plugin-esm && npm run build-plugin-cjs && cp src/dev-server-index.html dist/",
  37. "build-plugin-types": "tsc --emitDeclarationOnly",
  38. "build-plugin-cjs": "esbuild src/index.ts --platform=node --format=cjs --outfile=dist/index.cjs --define:import.meta.url=import_meta_url --inject:./import.meta.url-polyfill.js",
  39. "build-plugin-esm": "esbuild src/index.ts --platform=node --format=esm --outfile=dist/index.mjs",
  40. "build-inertia-helpers": "rm -rf inertia-helpers && tsc --project tsconfig.inertia-helpers.json",
  41. "lint": "eslint --ext .ts ./src ./tests",
  42. "test": "vitest run"
  43. },
  44. "devDependencies": {
  45. "@types/node": "^18.11.9",
  46. "@typescript-eslint/eslint-plugin": "^5.21.0",
  47. "@typescript-eslint/parser": "^5.21.0",
  48. "esbuild": "0.16.10",
  49. "eslint": "^8.14.0",
  50. "typescript": "^4.6.4",
  51. "vite": "^4.0.0",
  52. "vitest": "^0.25.2"
  53. },
  54. "peerDependencies": {
  55. "vite": "^3.0.0 || ^4.0.0"
  56. },
  57. "engines": {
  58. "node": ">=14"
  59. },
  60. "dependencies": {
  61. "picocolors": "^1.0.0",
  62. "vite-plugin-full-reload": "^1.0.5"
  63. }
  64. }