Repository navigation
v0.5.87
Upgrading
- Run
kit:update plan|applyforshell(re-pinnedsha256:10e24511…195c→sha256:7d050930…b222): the manifest gains thevite_global_typeshost step below; no stub changes.
Added
kit:statusandkit:addcheck that the Vite config gives @vitejs/plugin-vue the kit's types (backported from main; theshellfeature'svite_global_typeshost step; README › Types). A page typed withdefineProps<Tey.Kit.…>()is resolved at build time fromscript.globalTypeFiles, so a production build fails withoutvendor/tey/kit/types/kit.d.tsthere; a tsconfig include alone serves the editor and vue-tsc. The Vite config (vite.config.ts,.jsor.mjs) is read as text, never run: the step is met when an array literal underglobalTypeFilesnames the kit's types (a plain path or apath.resolve(...)of it), unmet with the exact snippetvue({ script: { globalTypeFiles: ['vendor/tey/kit/types/kit.d.ts'] } })when the key is missing or the list lacks it, and "can't verify" (unmet, never passed) when there is no Vite config, it can't be read, orglobalTypeFilesis not an array literal. Attention, not blocking, like the other host steps. For a config the kit cannot read,kit.host.vite_global_types = 'manual'(KIT_HOST_VITE_GLOBAL_TYPES=manual) records that a person verified it; the step then reads "verified manually".composer test:statuscovers each case.
What's Changed
- [0.5.x] kit:status and kit:add check plugin-vue's script.globalTypeFiles for the kit's types (backport of #421) by @jaspertey in #422
Full Changelog: v0.5.86...v0.5.87