[dsh-v0.1.5-alpha.1] pnpm install 缺少 transitive dep unrun,pnpm run build 失败
#5988
Replies: 2 comments
|
The proposed root The failure happens because this repository exercises a tsdown configuration path that imports pnpm add -Dw unrun@^0.3.1
pnpm install --frozen-lockfile
pnpm run build:libAdding it at the workspace root is appropriate because the root scripts invoke One compatibility check: So I would implement option 1, commit both |
|
cxv
|
Uh oh!
There was an error while loading. Please reload this page.
Summary
Clean
pnpm installon tagdsh-v0.1.5-alpha.1(commit 5dda764) leaves theunrunpackage unresolved, sopnpm run buildfails withFailed to import module "unrun".Reproduction
git clone --branch dsh-v0.1.5-alpha.1 --depth 1 https://github.com/deepseek-ai/deepseek-harness.git cd deepseek-harness pnpm install pnpm run buildEnvironment: Node v22.22.1, pnpm 11.7.0, Ubuntu 24.04.
Actual
pnpm installexits 0 with no warnings.node_modules/.unrun/is never populated, andunrundoes not appear undernode_modules/.pnpm/.tsdown@0.22.2+declaresunrunas a regular dependency, but pnpm strict isolation never hoists it to the workspace root.Workaround
After this, a second issue surfaces — see follow-up discussion for the
REPOSITORY_ROOTpath-depth bug. Addingunrunis the only thing needed to get past this first error.Suggested fix
"unrun": "^0.3.1"to the rootpackage.jsondevDependencies, ortsdownto a version that bundles its config loader differently sounrunis no longer a runtime requirement.Option 1 is the smaller, safer change.
All reactions