Files
qwen-code/scripts/tests
易良andQwen-Coder bab0e99d89 fix(build): re-apply the ink patch when install skipped lifecycle scripts (#14170)
packages/cli compiles against ink frame-controller types that only
patches/ink+7.0.3.patch adds; pristine [email protected] exports none of them. That
patch reaches node_modules through the root postinstall, so an install that
skipped lifecycle scripts (--ignore-scripts, or ignore-scripts=true in the
user's npm/pnpm config) leaves pristine ink in place and the build fails with
~50 errors that all blame ink -- which sends a reporter to compare ink
versions on npm instead of to the missing patch. Because noEmitOnError is
unset, tsc still emitted a dist that runs with text selection broken.

scripts/build.js already heals a missing node_modules; heal a missing patch
the same way. frame-controller.d.ts is created by that patch and absent from
pristine [email protected], so its absence is the signal. If re-applying still does
not produce it, name the patch rather than letting tsc point at ink.

Fixes #14110

Co-authored-by: Qwen-Coder <[email protected]>
2026-10-14 10:03:12 +00:00
..