Skip to content

chore: Phase 3 cleanup — remove legacy JS files#85

Merged
nmccready merged 1 commit intomasterfrom
chore/phase3-cleanup
Feb 14, 2026
Merged

chore: Phase 3 cleanup — remove legacy JS files#85
nmccready merged 1 commit intomasterfrom
chore/phase3-cleanup

Conversation

@nmccready-tars
Copy link

Remove all legacy JS source files, test runners, and bin/cli.js shim superseded by the TypeScript rewrite.

Deleted: t/cli.js, t/include.js, t/replaceEnv.js, t/unit.js, t/tests/extendEnv.js, index.js, lib/.js, lib/include/.js, bin/cli.js
Updated: test/cli.test.ts and benchmarks/benchmark-runner.js to reference dist/
Preserved: All fixture data in t/tests/, t/includes/, t/fixtures/, t/regression-fixtures/
Verified: npm run build ✅ | npm test ✅ (197/197 pass)

Closes #80, closes #81, closes #82, closes #83

Delete all legacy JavaScript files that were superseded by the TypeScript
rewrite in Phase 2:

- Remove JS test runners: t/cli.js, t/include.js, t/replaceEnv.js,
  t/unit.js, t/tests/extendEnv.js
- Remove legacy JS source: index.js, lib/*.js, lib/include/*.js
- Remove bin/cli.js shim (package.json bin already points to dist/cli.js)
- Update test/cli.test.ts to reference dist/cli.js instead of bin/cli.js
- Update benchmarks/benchmark-runner.js to import from dist/

All test fixture data in t/tests/, t/includes/, t/fixtures/, and
t/regression-fixtures/ is preserved (used by new TS tests).

197 tests pass.

Closes #80, closes #81, closes #82, closes #83
@nmccready
Copy link
Collaborator

Whats the total coverage at?

@nmccready-tars
Copy link
Author

✅ QA PASS

All verification checks passed:

  • Build: Clean (tsc, no errors)
  • Tests: 197/197 passed
  • Typecheck: No type errors
  • Lint: No lint errors
  • Structural: No stale JS source files remain (only .prettierrc.js and benchmarks/benchmark-runner.js, both expected)
  • package.json: bin/main/exports correctly point to dist/
  • CLI: npx cfn-include --help and pipe input both work
  • Imports: No broken references to deleted files

Minor note (non-blocking): README has 4 cosmetic references to ./bin/cli.js — suggest updating in a follow-up.

Verdict: Ready to merge. Issue #84 can be closed.

@nmccready nmccready merged commit 47b33ea into master Feb 14, 2026
5 checks passed
@nmccready nmccready deleted the chore/phase3-cleanup branch February 15, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants