Pull Request Overview
- Opened on October 18, 2026
- Status Merged
- Commit count 4 with first commit October 18, 2026
Total Delta
Open Days
Test Delta
How long has this pull request spent in each phase of its lifecycle?
| Fraction of total time | Business days | Phase |
|---|---|---|
|
|
0.0 days | Authoring 1 commit before pull request opened for review |
|
|
0.0 days | Awaiting first review |
| Set up deploy tracking to begin tracking full PR start-to-deploy times | ||
Total time for pull request
0.0 business days
from first commit authored to merge
Deploy tracking has not been set up
Fix nightly library scaffold version selection
Description
Type of Change
- Bug fix (non-breaking change which fixes an issue)
- This change requires a documentation update
Why
Nightly library initialization fails before project generation because its
bootstrap selects either the literal latest or an RN dist-tag without a matching
template. This also blocks the feed warmer's main-library closure.
Related: microsoft/react-native-windows#16489;
the failure predates that trigger-only change.
What
-
Checked bootstrap. Both callers share cRNL 0.63.0's supported RN 0.85.0
bootstrap and check the exact RN/template pair through the configured registry,
so dist-tags cannot select an incompatible scaffold. -
Preserved targets. Stable versions stay unchanged. Nightly library and
example dependencies still return to the requested RN/CLI versions before
resolution; a failed branch does not discard healthy closures. -
Regression coverage. Command-level tests and policy documentation cover
shared selection, checkout paths, and explicit failures, so generator upgrades cannot
silently reuse an unreviewed bootstrap.
Screenshots
Not applicable; no UI changes.
Testing
-
yarn test --scope @rnw-scripts/warm-feed- passed, 105 tests with inherited uppercase npm settings. -
yarn workspace @rnw-scripts/warm-feed lint- passed; changed-file formatting was also checked explicitly. -
yarn workspace @rnw-scripts/warm-feed build- passed.
Real Windows scaffolding with an empty npm cache and anonymous feed access
passed, including both nightly manifest rewrites, actual warmer collection, and
both dependency-graph resolutions. Full clean-agent/native CI validation is pending.
Changelog
Should this change be included in the release notes: yes
Use a compatible bootstrap when creating Windows libraries against nightly React Native.
Microsoft Reviewers: Open in CodeFlow
Comments Threads Pending Resolution
### ð¢ Approval recommended
No unresolved blocking issues remain, and targeted regressions cover selection, path handling, dependency preservation, and failure isolation.
**No open issues** ð
1 resolved since last review
-
[Fix script path resolution when --repo-root is relative](https://github.com/microsoft/react-native-windows/pull/16490#discussion_r4307859777)
Review effort: Balanced
### ð¡ Changes recommended
Relative repository paths break nightly feed warming when launching the shared resolver.
1 open issue
-
[Fix script path resolution when --repo-root is relative](https://github.com/microsoft/react-native-windows/pull/16490#discussion_r4307859777) · New
What changed in this PR
Replaces nightly library scaffoldingâs `latest` selection with a checked, generator-compatible bootstrap shared by the CLI and feed warmer.
**Changes:**
- Pins and validates matching React Native/template versions.
- Preserves stable versions and nightly dependency rewrites.
- Adds regression coverage and bootstrap documentation.
| File | Description |
| ---- | ----------- |
| vnext/âScripts/âGetReactNativeLibraryScaffoldVersion.js | Adds shared bootstrap validation. |
| vnext/âScripts/âcreaternwlib.cmd | Uses the shared resolver for nightlies. |
| packages/â@rnw-scripts/âwarm-feed/âsrc/âtest/âreactNativeLibraryScaffold.test.ts | Tests resolver and Windows CLI behavior. |
| packages/â@rnw-scripts/âwarm-feed/âsrc/âtest/âcreateReactNativeLibrary.test.ts | Tests warmer integration and failure handling. |
| packages/â@rnw-scripts/âwarm-feed/âsrc/âspecialModules/âcreateReactNativeLibrary.ts | Integrates shared scaffold selection. |
| packages/â@rnw-scripts/âwarm-feed/âREADME.md | Documents bootstrap selection and maintenance. |
| change/âreact-native-windows-6312f66b-0df9-4df7-b9d1-897bb9053c9a.json | Records the prerelease change. |
Review effort: Balanced
Resolved Comment Threads
### ð¡ Changes recommended
Relative repository paths break nightly feed warming when launching the shared resolver.
1 open issue
-
[Fix script path resolution when --repo-root is relative](https://github.com/microsoft/react-native-windows/pull/16490#discussion_r4307859777) · New
What changed in this PR
Replaces nightly library scaffoldingâs `latest` selection with a checked, generator-compatible bootstrap shared by the CLI and feed warmer.
**Changes:**
- Pins and validates matching React Native/template versions.
- Preserves stable versions and nightly dependency rewrites.
- Adds regression coverage and bootstrap documentation.
| File | Description |
| ---- | ----------- |
| vnext/âScripts/âGetReactNativeLibraryScaffoldVersion.js | Adds shared bootstrap validation. |
| vnext/âScripts/âcreaternwlib.cmd | Uses the shared resolver for nightlies. |
| packages/â@rnw-scripts/âwarm-feed/âsrc/âtest/âreactNativeLibraryScaffold.test.ts | Tests resolver and Windows CLI behavior. |
| packages/â@rnw-scripts/âwarm-feed/âsrc/âtest/âcreateReactNativeLibrary.test.ts | Tests warmer integration and failure handling. |
| packages/â@rnw-scripts/âwarm-feed/âsrc/âspecialModules/âcreateReactNativeLibrary.ts | Integrates shared scaffold selection. |
| packages/â@rnw-scripts/âwarm-feed/âREADME.md | Documents bootstrap selection and maintenance. |
| change/âreact-native-windows-6312f66b-0df9-4df7-b9d1-897bb9053c9a.json | Records the prerelease change. |
Review effort: Balanced
### ð¢ Approval recommended
The focused changes preserve stable behavior, cover relevant failure paths, and have no identified blocking issues.
**No open issues** ð
Review effort: Balanced