chore: devDependencies 去硬编码 — @deepseek-ai/* 改从 npm 解析(^0.0.1-rc.1)
- package.json:14 条 link:/Users/menghuan/.dsh/source/current/... 绝对路径 改为 ^0.0.1-rc.1(npm registry 预发布版,官方已发布 0.0.1-rc.1); peerDependencies 同步 ^0.0.1-rc.1 以匹配 rc 系列 - 安装需安装者自己的只读令牌(~/.npmrc 配置 //registry.npmjs.org/:_authToken, 不写进仓库);或改回指向自己 ~/.dsh/source/current 的 link: —— README 三处说明更新 - .gitignore 加 .npmrc 防令牌误提交;token 全程仅环境变量/临时文件使用,已删除 - vitest.config.ts:npm 版 ui-primitives 的 lib 顶层 import katex css, node_modules 外部化会被 Node 原生加载撞上 .css —— inline 该包走 Vite 转换 stub - pnpm-lock.yaml 由 link: 仓库改为 registry tarball(+2001 行); pnpm-workspace.yaml 追加 minimumReleaseAgeExclude(pnpm 11 自动记账)
This commit is contained in:
1 parent
ff94d0c124
commit
80f4406ff2
7 files changed
+2118
-60
No files matched your search
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* 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/],
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user