Skip to content

fix: remove stale deps, add lint script, pin CI bun version#98

Merged
davideast merged 1 commit into
mainfrom
fix/stale-deps-lint-script
Jun 2, 2026
Merged

fix: remove stale deps, add lint script, pin CI bun version#98
davideast merged 1 commit into
mainfrom
fix/stale-deps-lint-script

Conversation

@davideast
Copy link
Copy Markdown
Collaborator

Closes #30

Issue #30 reported that the root build contract was broken and the CLI had stale dependencies. The packageManager field and root turbo commands have since been fixed, but three things remained:

  1. ink, react, @json-render/core, @json-render/ink, and mdast were still listed as runtime dependencies with zero imports in the source tree
  2. turbo lint ran 0 tasks because there was no package-level lint script
  3. CI used bun-version: latest and cd packages/cli && bun run build instead of the root build contract

Dependency cleanup

  • Removed ink, react, @json-render/core, @json-render/ink, mdast from dependencies
  • Removed @types/react from devDependencies
  • bun install now completes with no peer warnings
  • Lockfile shrunk by ~90 lines

Lint script

  • Added "lint": "tsc --noEmit --skipLibCheck" to packages/cli/package.json
  • --skipLibCheck matches the build script and avoids pre-existing bun-types compatibility noise
  • Fixed 10 pre-existing type errors in handler.test.ts where properties.get() returns ResolvedValue | undefined but tests compared against raw number/boolean primitives

CI updates

  • Pinned bun-version: 1.3.9 to match root packageManager field
  • Switched to root-level turbo commands (bun run build, bun run test) instead of cd packages/cli workarounds
  • Added a Lint step that runs before tests

- Remove dead runtime dependencies with zero imports: ink, react,
  @json-render/core, @json-render/ink, mdast (type-only import,
  covered by @types/mdast)
- Remove @types/react from devDependencies
- Add package-level lint script (tsc --noEmit --skipLibCheck) so
  turbo lint actually runs
- Fix 10 pre-existing type errors in handler.test.ts where
  properties.get() returns ResolvedValue but tests compared against
  raw primitives
- Pin CI bun version to 1.3.9 to match root packageManager field
  instead of floating on latest
- Use root-level turbo commands in CI instead of cd-ing into
  packages/cli
- Add lint step to CI pipeline
- Regenerate bun.lock after dependency removal

bun install now completes with no peer warnings.
bun run build, bun run test, and bun run lint all pass at the root.

Closes #30
@davideast davideast merged commit 18508f2 into main Jun 2, 2026
13 checks passed
@davideast davideast deleted the fix/stale-deps-lint-script branch June 2, 2026 05:41
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.

Restore root Bun/Turbo build contract and remove stale Ink peer mismatch

1 participant