fix(examples): sync example Node.js versions with templates and generation workflow#12121
Conversation
…#12120) The example artifacts were regenerated for the v3.10.1 maintenance release, which reverted the engine field from '>=24.14' back to '>=20.0' and left the sandbox node version at '18'. Update the examples to reflect current maintainer intent: - Bump engines.node from '>=20.0' to '>=24.14' (reapplies PR facebook#11914 change overwritten by PR facebook#11985) - Bump sandbox.config.json node from '18' to '24' (syncs with generateExamples.js updated in PR facebook#12080)
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Pre-flight checklist
Summary
The generated example artifacts at
examples/contain values that are out of sync with the current template definitions and generation workflow:package.jsonfiles still requires">=20.0", while the local templates atpackages/create-docusaurus/templates/specify">=24.14".sandbox.config.jsonfiles still specifies"18", while the generation script atadmin/scripts/generateExamples.jsemits"24".The examples are generated from the published
create-docusauruspackage. At the time of the last regeneration, the published package produced values that differ from the current local templates and generation workflow.This PR updates the checked-in example artifacts so they are consistent with the current template definitions and the values emitted by
admin/scripts/generateExamples.js.No regeneration was performed as part of this change; only the stale values in the generated artifacts were updated.
Changes
examples/classic/package.json— engine">=20.0"→">=24.14"examples/classic-typescript/package.json— engine">=20.0"→">=24.14"examples/classic/sandbox.config.json— node version"18"→"24"(two occurrences)examples/classic-typescript/sandbox.config.json— node version"18"→"24"(two occurrences)Verification
Issue
Closes #12120