litestar-vite-plugin 0.15.0-rc.2 → 0.15.0-rc.3
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.
- package/README.md +4 -4
- package/dist/js/helpers/routes.d.ts +1 -0
- package/dist/js/index.d.ts +10 -2
- package/dist/js/index.js +82 -22
- package/dist/js/inertia-types.d.ts +37 -0
- package/dist/js/inertia-types.js +0 -0
- package/dist/js/install-hint.d.ts +6 -1
- package/dist/js/install-hint.js +35 -2
- package/dist/js/shared/bridge-schema.d.ts +7 -2
- package/dist/js/shared/bridge-schema.js +13 -4
- package/dist/js/shared/emit-page-props-types.d.ts +3 -1
- package/dist/js/shared/emit-page-props-types.js +70 -48
- package/dist/js/shared/typegen-cache.d.ts +45 -0
- package/dist/js/shared/typegen-cache.js +83 -0
- package/dist/js/shared/typegen-core.d.ts +90 -0
- package/dist/js/shared/typegen-core.js +122 -0
- package/dist/js/shared/typegen-plugin.js +71 -57
- package/dist/js/shared/write-if-changed.d.ts +16 -0
- package/dist/js/shared/write-if-changed.js +19 -0
- package/dist/js/typegen-cli.js +66 -0
- package/package.json +33 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "litestar-vite-plugin",
|
|
3
|
-
"version": "0.15.0-rc.
|
|
3
|
+
"version": "0.15.0-rc.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Litestar plugin for Vite.",
|
|
6
6
|
"keywords": [
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"author": "Litestar",
|
|
18
|
+
"main": "./dist/js/index.js",
|
|
19
|
+
"module": "./dist/js/index.js",
|
|
18
20
|
"exports": {
|
|
19
21
|
".": {
|
|
20
22
|
"types": "./dist/js/index.d.ts",
|
|
@@ -39,24 +41,51 @@
|
|
|
39
41
|
"./nuxt": {
|
|
40
42
|
"types": "./dist/js/nuxt.d.ts",
|
|
41
43
|
"import": "./dist/js/nuxt.js"
|
|
44
|
+
},
|
|
45
|
+
"./inertia": {
|
|
46
|
+
"types": "./dist/js/inertia-types.d.ts",
|
|
47
|
+
"import": "./dist/js/inertia-types.js"
|
|
42
48
|
}
|
|
43
49
|
},
|
|
44
50
|
"types": "./dist/js/index.d.ts",
|
|
51
|
+
"typesVersions": {
|
|
52
|
+
"*": {
|
|
53
|
+
"helpers": [
|
|
54
|
+
"./dist/js/helpers/index.d.ts"
|
|
55
|
+
],
|
|
56
|
+
"inertia-helpers": [
|
|
57
|
+
"./dist/js/inertia-helpers/index.d.ts"
|
|
58
|
+
],
|
|
59
|
+
"astro": [
|
|
60
|
+
"./dist/js/astro.d.ts"
|
|
61
|
+
],
|
|
62
|
+
"sveltekit": [
|
|
63
|
+
"./dist/js/sveltekit.d.ts"
|
|
64
|
+
],
|
|
65
|
+
"nuxt": [
|
|
66
|
+
"./dist/js/nuxt.d.ts"
|
|
67
|
+
],
|
|
68
|
+
"inertia": [
|
|
69
|
+
"./dist/js/inertia-types.d.ts"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
45
73
|
"files": [
|
|
46
74
|
"dist/js/**/*",
|
|
47
75
|
"tools/clean.js"
|
|
48
76
|
],
|
|
49
77
|
"bin": {
|
|
50
|
-
"clean-orphaned-assets": "tools/clean.js"
|
|
78
|
+
"clean-orphaned-assets": "tools/clean.js",
|
|
79
|
+
"litestar-vite-typegen": "dist/js/typegen-cli.js"
|
|
51
80
|
},
|
|
52
81
|
"scripts": {
|
|
53
82
|
"build": "npm run build-plugin && npm run build-helpers && npm run build-inertia-helpers && npm run build-integrations",
|
|
54
83
|
"build-plugin": "rm -rf dist/js && npm run build-plugin-types && npm run build-plugin-esm && cp src/js/src/dev-server-index.html dist/js/",
|
|
55
84
|
"build-plugin-types": "tsc --project src/js/tsconfig.json --emitDeclarationOnly",
|
|
56
|
-
"build-plugin-esm": "esbuild src/js/src/index.ts --platform=node --format=esm --outfile=dist/js/index.js && esbuild src/js/src/install-hint.ts --platform=node --format=esm --outfile=dist/js/install-hint.js && esbuild src/js/src/litestar-meta.ts --platform=node --format=esm --outfile=dist/js/litestar-meta.js && mkdir -p dist/js/shared && esbuild src/js/src/shared/bridge-schema.ts src/js/src/shared/debounce.ts src/js/src/shared/format-path.ts src/js/src/shared/logger.ts src/js/src/shared/emit-page-props-types.ts src/js/src/shared/typegen-plugin.ts --platform=node --format=esm --outdir=dist/js/shared",
|
|
85
|
+
"build-plugin-esm": "esbuild src/js/src/index.ts --platform=node --format=esm --outfile=dist/js/index.js && esbuild src/js/src/install-hint.ts --platform=node --format=esm --outfile=dist/js/install-hint.js && esbuild src/js/src/litestar-meta.ts --platform=node --format=esm --outfile=dist/js/litestar-meta.js && esbuild src/js/src/typegen-cli.ts --platform=node --format=esm --outfile=dist/js/typegen-cli.js --banner:js='#!/usr/bin/env node' && mkdir -p dist/js/shared && esbuild src/js/src/shared/bridge-schema.ts src/js/src/shared/debounce.ts src/js/src/shared/format-path.ts src/js/src/shared/logger.ts src/js/src/shared/emit-page-props-types.ts src/js/src/shared/typegen-plugin.ts src/js/src/shared/typegen-core.ts src/js/src/shared/write-if-changed.ts src/js/src/shared/typegen-cache.ts --platform=node --format=esm --outdir=dist/js/shared",
|
|
57
86
|
"build-helpers": "rm -rf dist/js/helpers && tsc --project src/js/tsconfig.helpers.json",
|
|
58
87
|
"build-inertia-helpers": "rm -rf dist/js/inertia-helpers && tsc --project src/js/tsconfig.inertia-helpers.json",
|
|
59
|
-
"build-integrations": "esbuild src/js/src/astro.ts src/js/src/sveltekit.ts src/js/src/nuxt.ts --platform=node --format=esm --outdir=dist/js",
|
|
88
|
+
"build-integrations": "esbuild src/js/src/astro.ts src/js/src/sveltekit.ts src/js/src/nuxt.ts src/js/src/inertia-types.ts --platform=node --format=esm --outdir=dist/js",
|
|
60
89
|
"lint": "biome check --vcs-enabled=false src/js/src src/js/tests",
|
|
61
90
|
"test": "vitest --config ./src/js/vitest.config.ts run"
|
|
62
91
|
},
|