Skip to content

Add CI/release workflows and modernize ESM imports#25

Merged
nicknisi merged 6 commits into
mainfrom
nicknisi/dev-dx-improvements
Jan 31, 2026
Merged

Add CI/release workflows and modernize ESM imports#25
nicknisi merged 6 commits into
mainfrom
nicknisi/dev-dx-improvements

Conversation

@nicknisi
Copy link
Copy Markdown
Member

@nicknisi nicknisi commented Jan 30, 2026

Summary

  • Add GitHub Actions CI workflow (lint, typecheck, build, test on Node 20/22/24)
  • Add release workflow with npm trusted publishing via OIDC (no NPM_TOKEN needed)
  • Restructure source to enable modern JSON imports for version
  • Replace generated version.ts with direct package.json import using with { type: 'json' }
  • Flatten dist/ output by setting rootDir: "./src" in tsconfig
  • Colocate test files with source files (move from __tests__/ directories)
  • Add coverage support with @vitest/coverage-v8
  • Fix plugin path after ESM restructure
  • Route ai-content API calls through credential proxy for proper auth

- 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
@nicknisi nicknisi force-pushed the nicknisi/dev-dx-improvements branch from 53006c8 to 4413403 Compare January 30, 2026 23:00
- 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.
@nicknisi nicknisi merged commit 7d1f998 into main Jan 31, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant