refactor: client-namespace projection file named client/types.ts (layout ruling)

This commit is contained in:
imccyu
2026-07-27 23:07:44 +08:00
parent 38ffb78e1c
commit dcd9789226
5 changed files with 9 additions and 13 deletions
@@ -20,8 +20,8 @@
"default": "./lib/types/types.js"
},
"./client/types": {
"types": "./lib/types/client/index.d.ts",
"default": "./lib/types/client/index.js"
"types": "./lib/types/client/types.d.ts",
"default": "./lib/types/client/types.js"
},
"./src/*": "./src/*",
"./package.json": "./package.json"
@@ -1,5 +1,5 @@
/**
* Browser half-entry of the title domain: a pure re-export of the package's
* Client-namespace projection of the title domain: a pure re-export of the package's
* types outlet. Client code imports ONLY the client namespace (repo
* discipline), so `./client/types` projects the same single-source content
* `./types` serves to host consumers zero duplication.
+3 -7
View File
@@ -15,13 +15,9 @@
"types": "./lib/types/invariant.d.ts",
"default": "./lib/invariant.js"
},
"./types": {
"types": "./lib/types/types.d.ts",
"default": "./lib/types/types.js"
},
"./client/types": {
"types": "./lib/types/client/index.d.ts",
"default": "./lib/types/client/index.js"
"./client": {
"types": "./lib/types/client.d.ts",
"default": "./lib/types/client.js"
},
"./src/*": "./src/*",
"./package.json": "./package.json"
@@ -1,5 +1,5 @@
/**
* Browser half-entry of the todo domain: a pure re-export of the package's
* Client-namespace projection of the todo domain: a pure re-export of the package's
* types outlet. Client code imports ONLY the client namespace (repo
* discipline), so `./client/types` projects the same single-source content
* `./types` serves to host consumers zero duplication.
+2 -2
View File
@@ -43,9 +43,9 @@
"@deepseek-ai/dsh-session/surface": ["./packages/core/session/src/surface.ts"],
"@deepseek-ai/dsh-session-projection/types": ["./packages/session-projection/session-projection/src/types.ts"],
"@deepseek-ai/dsh-tool-todo/types": ["./packages/todo/tool-todo/src/types.ts"],
"@deepseek-ai/dsh-tool-todo/client/types": ["./packages/todo/tool-todo/src/client/index.ts"],
"@deepseek-ai/dsh-tool-todo/client/types": ["./packages/todo/tool-todo/src/client/types.ts"],
"@deepseek-ai/dsh-session-title/types": ["./packages/session-title/session-title/src/types.ts"],
"@deepseek-ai/dsh-session-title/client/types": ["./packages/session-title/session-title/src/client/index.ts"],
"@deepseek-ai/dsh-session-title/client/types": ["./packages/session-title/session-title/src/client/types.ts"],
"@deepseek-ai/dsh-llm/types": ["./packages/llm/llm/src/types.ts"],
"@deepseek-ai/dsh-llm/brand": ["./packages/llm/llm/src/brand.ts"],
"@deepseek-ai/dsh-tools/presentation": ["./packages/core/tools/src/presentation.ts"],