Skip to content

chore: add patch-package postinstall for node24 inquirer prompts#14959

Draft
sarayev wants to merge 3 commits into
devfrom
fix/node24-inquirer-baseui-patch-package-2
Draft

chore: add patch-package postinstall for node24 inquirer prompts#14959
sarayev wants to merge 3 commits into
devfrom
fix/node24-inquirer-baseui-patch-package-2

Conversation

@sarayev

@sarayev sarayev commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Description of changes

Adds patch-package as a dev dependency and appends it to the postinstall hook so that patches/inquirer+7.3.3.patch is applied automatically after yarn install. This fixes interactive prompt rendering (inquirer / base-ui) under Node 24.

Also updates scripts/cloud-pr.sh:

  • Adds a CLOUD_PR_SKIP_MWINIT escape hatch to skip mwinit when already authenticated or running non-interactively.
  • Removes the --debug-session-enabled flag from the aws codebuild start-build-batch call; AWS CLI v1 does not support this flag.

Issue #, if available

N/A

Description of how you validated changes

Manually verified yarn install applies the patch and prompts work under Node 24.

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

sarayev added 3 commits July 13, 2026 11:17
Adds patch-package as a dependency and a postinstall hook to apply
local patches that fix inquirer/base-ui interactive prompt behavior
under Node 24. The patch file patches/inquirer+7.3.3.patch is also
included. Also updates scripts/cloud-pr.sh to add a
CLOUD_PR_SKIP_MWINIT escape hatch and drop the --debug-session-enabled
flag, which AWS CLI v1 does not support.
---
Prompt: Move stashed node24 inquirer/base-ui patch-package WIP to a
new branch, then commit and create a draft PR.
Adds the yarn.lock entries for patch-package and its transitive
dependencies (ci-info, find-yarn-workspace-root, tmp) that were
missing after patch-package was added to the root devDependencies.
Without this, CodeBuild's immutable install fails with YN0028.

---
Prompt: Fix the e2e build_linux YN0028 lockfile failure by regenerating
and committing yarn.lock.
Runs yarn dedupe to satisfy the verify_yarn_lock CI check after
adding patch-package. Deduplicates ci-info and tmp to their highest
resolved versions. No product code changes.

---
Prompt: Fix the verify_yarn_lock CI failure by running yarn dedupe and
committing yarn.lock.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant