GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — feat(pack): generate declarations with bundled tsrs without typescript by fengmk2 · Pull Request #3433 · voidzero-dev/vite-plus Conversation
|
|
✅ Staging deployment successful! Preview: https://viteplus-staging.void.app/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
f33f818 to
b6e30c4
Compare
b6e30c4 to
a5ec321
Compare
568d670 to
c9bfbf0
Compare
afa29d4 to
2aa3343
Compare
Select bundled tsrs only where the declaration plugin would fail with "TypeScript is not installed", and leave every other generator choice to upstream. Run the selection in the CLI between resolveUserConfig() and buildWithConfigs(), and pass the CLI's own tsrs as dts.tsrs.moduleUrl instead of adding a core dependency. Rebase the baseline on main after #3352, document the tsrs version coupling and the failOnWarn behavior, and move the tsdown/Rolldown upgrade and migration rewrites out of scope. Co-Authored-By: Claude Opus 5.5 <[email protected]>
When a `vp pack` build needs declarations and `typescript` does not resolve from the declaration plugin, select `generator: 'tsrs'` with the tsrs package that vite-plus ships for lint. Upstream fails with "TypeScript is not installed" in that case, so builds that work today keep their generator. The selection runs after resolveUserConfig(), so it also covers declarations that tsdown infers from package.json. It keeps explicit generators, isolated declarations (Oxc), Vue and custom languages, and configs without a tsconfig. It rejects dts.compilerOptions and dts.tsconfigRaw without typescript, because native generators ignore them. An explicit tsrs generator also gets the bundled tsrs moduleUrl. The plugin's experimental tsrs notice is suppressed when no generator is set, so failOnWarn builds do not fail after a successful emit. One info line names the bundled tsrs version instead. This needs the bundled declaration plugin 0.30 (tsdown 0.23.7). Co-Authored-By: Claude Opus 5.5 <[email protected]>
#3511 performs the tsdown 0.23.7, declaration plugin 0.30.2, Rolldown 1.3.3, and Vite 8.4 beta upgrade. Record what it handles (native-preview, tsgo.path, the TypeScript 7.1 peer range, yuku) and the upgrade items that stay open (dts.entry, deprecated top-level options, yuku on musl). Note that tsrs4 also passes the probe. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add packed-CLI snapshot cases for a project without typescript, with pnpm hoist:false and with default hoisting. Both select the bundled tsrs, and the experimental tsrs notice does not fail --fail-on-warn. Print the tsrs version with a v prefix, like other tool banners, so snapshot redaction masks it and tsrs updates do not churn the cases. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The rebased base adopts the Cloudflare Oxlint preset (#3562). Type the selection with the resolved tsdown dts options instead of unknown records, parse tsconfig files through the shared JSON helpers, and drop the type assertions in pack-bin and the tests. Track only the current `extends` path when reading isolatedDeclarations, so a base that two `extends` entries share is not reported as a cycle. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2aa3343 to
46de882
Compare
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.