Add CI/release workflows and modernize ESM imports#25
Merged
Conversation
- Add GitHub Actions CI workflow (lint, typecheck, build, test on Node 20/22/24)
- Add release workflow with npm trusted publishing (OIDC, no token needed)
- Move bin.ts and cli.config.ts into src/ to flatten dist output
- Use modern JSON import attribute for version: `import pkg from '../package.json' with { type: 'json' }`
- Remove generated version.ts file and CJS prebuild script
- Set rootDir in tsconfig to flatten dist/ structure
53006c8 to
4413403
Compare
- Move spec files from __tests__/ directories to be siblings of source - Rename event-sequence.spec.ts to installer-core.events.spec.ts - Move test-utils.ts to installer-core.test-utils.ts - Add *.test-utils.ts to tsconfig exclude - Removes test utilities from published package
Add @vitest/coverage-v8 and test:coverage script for local coverage reports.
dist/lib/ is now two levels from root, not three.
Commit/PR message generation now uses a short-lived proxy for auth, matching the agent's auth flow. Supports --direct flag for bypass.
8 tasks
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.
Summary
version.tswith directpackage.jsonimport usingwith { type: 'json' }dist/output by settingrootDir: "./src"in tsconfig__tests__/directories)@vitest/coverage-v8