Skip to content

refactor: read installed version via readFileSync in emit-cli guard#526

Merged
creatornader merged 1 commit into
mainfrom
chore/emit-cli-guard-readfile
Jul 15, 2026
Merged

refactor: read installed version via readFileSync in emit-cli guard#526
creatornader merged 1 commit into
mainfrom
chore/emit-cli-guard-readfile

Conversation

@creatornader

Copy link
Copy Markdown
Owner

Follow-up to #525, which auto-merged before this landed on its branch: the guard script read the installed package version by spawning node -p with an interpolated require. A plain readFileSync + JSON.parse does the same with no subprocess and no code-string interpolation, and hard-fails if the installed package.json is unreadable. Script re-verified end to end after the change (install, drift gates, signed smoke at log_index 79091).

@creatornader
creatornader enabled auto-merge (squash) July 15, 2026 19:51
@creatornader
creatornader merged commit bdec7f2 into main Jul 15, 2026
14 checks passed
@creatornader
creatornader deleted the chore/emit-cli-guard-readfile branch July 15, 2026 19:57
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