Skip to content

refactor(install): extract setup core helpers#69

Merged
bhdicaire merged 2 commits into
mainfrom
work/install-core
Jun 5, 2026
Merged

refactor(install): extract setup core helpers#69
bhdicaire merged 2 commits into
mainfrom
work/install-core

Conversation

@bhdicaire

Copy link
Copy Markdown
Member

This Pull Request continues the complexity-budget initiative by extracting install/setup normalization logic into a testable functional core.

Detail

This PR:

  • moves CLI argument parsing and install normalization helpers into scripts/lib/install/core.mjs
  • keeps scripts/install.mjs focused on prompting, filesystem writes, formatting, and verification
  • adds direct unit coverage for install core behavior
  • wires test:install-core into test:all
  • prints the installed vanityURLs version at the end of npm run update

Checks

  • npm run test:install-core
  • npm run test:install
  • npm run test:maintenance
  • npm run check

Notes

This PR does not touch scripts/workers/ or generated Worker runtime files.

@bhdicaire bhdicaire requested a review from felleg as a code owner June 5, 2026 15:28
@bhdicaire bhdicaire force-pushed the work/install-core branch from 090e872 to 09e772b Compare June 5, 2026 15:49
@bhdicaire bhdicaire self-assigned this Jun 5, 2026

@bhdicaire bhdicaire left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

@bhdicaire bhdicaire force-pushed the work/install-core branch from 09e772b to 6928635 Compare June 5, 2026 16:17

@bhdicaire bhdicaire left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@bhdicaire bhdicaire merged commit 9499033 into main Jun 5, 2026
2 checks passed
@bhdicaire bhdicaire deleted the work/install-core branch June 5, 2026 16:19
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