Просмотр исходного кода

fix: dsh exports

fix: pty-local postinstall
imccyu 1 месяц назад
Родитель
Сommit
b7c0e4ea08

+ 1 - 1
apps/cli/package.json

@@ -8,7 +8,7 @@
     "dsh": "lib/bin.js"
   },
   "files": [
-    "lib/bin.js",
+    "lib/*.js",
     "config",
     "src"
   ],

+ 3 - 4
packages/pty/pty-local/package.json

@@ -21,12 +21,11 @@
   "files": [
     "lib/index.js",
     "lib/invariant.js",
-    "lib/types/**/*.d.ts",
-    "lib/types/**/*.d.ts.map",
-    "src"
+    "scripts/ensure-spawn-helper.mjs",
+    "lib/types/**/*.d.ts"
   ],
   "scripts": {
-    "postinstall": "node src/ensure-spawn-helper.mjs"
+    "postinstall": "node scripts/ensure-spawn-helper.mjs"
   },
   "license": "BSD-3-Clause",
   "peerDependencies": {

+ 0 - 0
packages/pty/pty-local/src/ensure-spawn-helper.mjs → packages/pty/pty-local/scripts/ensure-spawn-helper.mjs


+ 1 - 0
scripts/check-workspace-constraints.ts

@@ -97,6 +97,7 @@ function workspaceManifests(): WorkspaceManifest[] {
 
 const packageFileExtras: Readonly<Record<string, readonly string[]>> = {
   '@deepseek-ai/dsh-helper': ['lib/assets'],
+  '@deepseek-ai/dsh-pty-local': ['scripts/ensure-spawn-helper.mjs'],
   '@deepseek-ai/dsh-scripts': [
     'lib/dev/tsdown-config.js',
     'lib/local-plugin-loader-hooks.js',