LearnNewsExamplesServices
Frontmatter
id7744
titleRefactor Release Preparation Script: Rename `injectPackageVersion` to `prepareRelease` and Integrate SEO File Generation
stateClosed
labels
enhancementairefactoring
assigneestobiu
createdAtNov 11, 2025, 1:05 PM
updatedAtNov 11, 2025, 2:02 PM
githubUrlhttps://github.com/neomjs/neo/issues/7744
authortobiu
commentsCount0
parentIssue7446
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 11, 2025, 2:02 PM

Refactor Release Preparation Script: Rename injectPackageVersion to prepareRelease and Integrate SEO File Generation

Closed v11.1.0 enhancementairefactoring
tobiu
tobiu commented on Nov 11, 2025, 1:05 PM

The current buildScripts/injectPackageVersion.mjs script is responsible for updating the package version across various files during a release. This ticket proposes to refactor and enhance this script to create a more comprehensive release preparation tool.

Proposed Changes:

  1. Rename Script: Rename buildScripts/injectPackageVersion.mjs to buildScripts/prepareRelease.mjs (or a similar, more descriptive name). This new name will better reflect its expanded responsibilities.
  2. Update package.json: Modify the package.json scripts to use the new script name.
  3. Integrate SEO File Generation: Extend the functionality of the prepareRelease.mjs script to automatically regenerate sitemap.xml and llm.txt. This ensures that these SEO-critical files are always up-to-date with the latest content and version information as part of the release process. The script should call the relevant functions from generate-seo-files.mjs to perform this.

Benefits:

  • Streamlines the release workflow.
  • Ensures consistency and accuracy of version numbers and SEO files.
  • Reduces the risk of manual errors during release preparation.

Acceptance Criteria:

  • The script buildScripts/injectPackageVersion.mjs is renamed to buildScripts/prepareRelease.mjs.
  • All references to the old script name in package.json are updated.
  • The prepareRelease.mjs script successfully updates package versions and regenerates sitemap.xml and llm.txt when executed.
  • The generated sitemap.xml and llm.txt files contain the correct, canonical, hash-based URLs.
tobiu assigned to @tobiu on Nov 11, 2025, 1:05 PM
tobiu added the enhancement label on Nov 11, 2025, 1:05 PM
tobiu added the ai label on Nov 11, 2025, 1:05 PM
tobiu added the refactoring label on Nov 11, 2025, 1:05 PM
tobiu added parent issue #7446 on Nov 11, 2025, 1:06 PM
tobiu referenced in commit b466aea - "Refactor Release Preparation Script: Rename injectPackageVersion to prepareRelease and Integrate SEO File Generation #7744" on Nov 11, 2025, 1:25 PM
tobiu closed this issue on Nov 11, 2025, 2:02 PM