DSH 0.1.2-alpha.2 is on npm under the `alpha` dist-tag, so the CI mount pin and the @deepseek-ai/* devDependencies baseline move up from 0.1.1-rc.1/rc.2 (the dead dsh-client-runtime devDep goes away with them). Verified end-to-end against a real 0.1.2-alpha.2 host: full vitest suite (1106), typecheck, build/pack, consumer type surface, and the headless mount smoke 14/14 — the token URL, slash RPC and MarkdownText labels contracts are unchanged from alpha.1. - dsh-settings dropped the runtime `settingsNamespace` export: namespaces are validated at compile time (SettingsNamespaceInput), so the host passes the 'dsh-better-sidebar' constant directly and the fake settings service in smoke.spec casts to the branded type. - dsh-subagent bumped SUBAGENT_DESCRIPTOR_VERSION 2 -> 3: the version is stamped by the host package; the sidechat seed assertion now follows the constant instead of pinning a literal. - Restored SessionEvent.ignorable and the RemoteError wrapping were verified to have no impact on this plugin. - e2e scratch profiles (e2e-mount.sh / e2e-aggregate-mount.sh) add '@deepseek-ai/*' to minimumReleaseAgeExclude (mirroring the repo root): alpha releases are often <24h old when the lane runs, which pnpm 11's default minimumReleaseAge would refuse to install. - vitest excludes .worktrees/** — local task worktrees carried stale code against the shared node_modules and broke on the devDeps bump. - Version lockstep 0.17.2 (package.json, dsh.plugin.json, SIDEBAR_SERVICE_VERSION, README/AGENTS/guide docs).
40 lines
1.6 KiB
TypeScript
40 lines
1.6 KiB
TypeScript
/**
|
|
* Vitest config: inline the npm-published `@deepseek-ai/*` packages whose
|
|
* BUILT lib bundles css side-effect imports (e.g. `dsh-client-ui-primitives`
|
|
* imports `katex/dist/katex.min.css` at the top of its `lib/index.js`).
|
|
*
|
|
* Installed from the npm registry (the default since v0.4.1) these packages
|
|
* live under `node_modules/.pnpm` and are externalized by vitest — Node then
|
|
* chokes on the `.css` import. Inlining routes them through Vite's transform,
|
|
* which stubs css imports (the default `css: false`). The previous
|
|
* `link:`-to-source-checkout install needed no such config: linked files sit
|
|
* outside `node_modules` and are transformed by default.
|
|
*/
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
server: {
|
|
deps: {
|
|
inline: [/@deepseek-ai\/dsh-client-ui-primitives/],
|
|
},
|
|
},
|
|
// The Playwright headless-render lane lives in tests/e2e (specs named
|
|
// *.e2e.ts). Keep vitest from ever collecting it, both by naming (the
|
|
// default include only matches *.test.* / *.spec.*) and by an explicit
|
|
// exclude. NOTE: `exclude` REPLACES vitest's defaults, so the standard
|
|
// node_modules/dist/etc. excludes must be restated here.
|
|
exclude: [
|
|
'tests/e2e/**',
|
|
// Local dev worktrees (pnpm/DSH-style task branches) may carry stale
|
|
// code against this checkout's node_modules — never collect them.
|
|
'**/.worktrees/**',
|
|
'**/node_modules/**',
|
|
'**/dist/**',
|
|
'**/cypress/**',
|
|
'**/.{idea,git,cache,output,temp}/**',
|
|
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*',
|
|
],
|
|
},
|
|
})
|