Improve typegap: restore CI workflows, add release automation, fix CLI runtime#1
Merged
Conversation
- Add ci.yml with checkout, install, typecheck, build, test, smoke, and pack checks - The previous workflows were temporarily removed for initial push but never restored chore: add release:check scripts for release readiness - Add release:check, smoke, and package:smoke scripts to package.json - Fix smoke command to use positional directory argument instead of non-existent 'scan' subcommand - Fix CLI version import by creating src/version.ts (JSON import with type assertion is not portable across tsc setups) Fixes: - CI was completely missing, leaving no automated validation - release:check did not exist, making it difficult to verify release readiness - smoke script referenced a 'scan' subcommand that the CLI does not have (uses positional arg) - CLI failed at runtime due to import syntax that tsc compiles but Node cannot resolve
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
.github/workflows/ci.ymlafter previous temporary removal for initial push (workflows were never restored)release:check,smoke, andpackage:smokescripts to package.jsonsrc/cli.tsimported version viaimport { version } '../package.json' with { type: 'json' }— tsc compiled it but Node.js could not resolve the export at runtime. Createdsrc/version.tsinstead.scansubcommand (CLI uses positional directory arg)Why it matters
Without CI, typegap has zero automated validation — no typecheck, no test, no build gate on PRs or merges. This is a basic reliability risk for a dev tool with 60+ tests.
Without release:check, there is no local gate to verify a release-ready package before publishing.
The CLI was import-broken at runtime, making the bin entry non-functional.
Verification
Remaining work