fix(ci): declare @chenglou/pretext dependency in package.json

src/lib/utils/textMeasure.ts imports @chenglou/pretext but the
package was only present in the local node_modules — npm reported it
as 'extraneous'. npm ci in CI refuses to install anything that isn't
declared, so vite build fell over at the Rollup resolve step:

    [vite]: Rollup failed to resolve import '@chenglou/pretext' from
    'src/lib/utils/textMeasure.ts'.

Pins to the version that was already installed locally (0.0.5) and
regenerates package-lock.json. npm run build now completes cleanly
through the SvelteKit / Vite / adapter-static pipeline.

Co-authored-by: jars <jakejars@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-04-21 13:06:36 +00:00
committed by Jake
parent b6bd265176
commit c163a9a07b
2 changed files with 8 additions and 78 deletions

View File

@@ -14,6 +14,7 @@
},
"license": "MIT",
"dependencies": {
"@chenglou/pretext": "0.0.5",
"@tauri-apps/api": "^2",
"@tauri-apps/plugin-dialog": "^2.6.0",
"@tauri-apps/plugin-global-shortcut": "^2.3.1",