litestar-vite-plugin 0.4.3 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1) hide show
  1. package/package.json +7 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "litestar-vite-plugin",
3
- "version": "0.4.3",
3
+ "version": "0.5.0",
4
4
  "description": "Litestar plugin for Vite.",
5
5
  "keywords": [
6
6
  "litestar",
@@ -16,14 +16,12 @@
16
16
  "author": "Litestar",
17
17
  "exports": {
18
18
  ".": {
19
- "import": "./dist/index.mjs",
20
- "require": "./dist/index.cjs",
21
- "types": "./dist/index.d.ts"
19
+ "types": "./dist/index.d.ts",
20
+ "default": "./dist/index.js"
22
21
  },
23
22
  "./inertia-helpers": {
24
- "import": "./inertia-helpers/index.js",
25
23
  "types": "./inertia-helpers/index.d.ts",
26
- "node": "./inertia-helpers/index.js"
24
+ "default": "./inertia-helpers/index.js"
27
25
  }
28
26
  },
29
27
  "types": "./dist/index.d.ts",
@@ -33,10 +31,9 @@
33
31
  ],
34
32
  "scripts": {
35
33
  "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/",
34
+ "build-plugin": "rm -rf dist && npm run build-plugin-types && npm run build-plugin-esm && cp src/dev-server-index.html dist/",
37
35
  "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",
36
+ "build-plugin-esm": "esbuild src/index.ts --platform=node --format=esm --outfile=dist/index.js",
40
37
  "build-inertia-helpers": "rm -rf inertia-helpers && tsc --project tsconfig.inertia-helpers.json",
41
38
  "lint": "eslint --ext .ts ./src ./tests",
42
39
  "test": "vitest run"
@@ -59,6 +56,6 @@
59
56
  },
60
57
  "dependencies": {
61
58
  "picocolors": "^1.0.0",
62
- "vite-plugin-full-reload": "^1.0.5"
59
+ "vite-plugin-full-reload": "^1.1.0"
63
60
  }
64
61
  }