Skip to content

Handle .mts and .cts files as TypeScript in paperwork - #168

Merged
XhmikosR merged 1 commit into
dependents:mainfrom
bardrop-oss:fix-paperwork-mts-cts
Dec 2, 2026
Merged

XhmikosR merged 1 commit into
dependents:mainfrom
bardrop-oss:fix-paperwork-mts-cts

Conversation

@bardrop

@bardrop bardrop commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #167.

paperwork() used the extension without the dot as the type, so .mts and .cts became mts and cts. No detective knows those, so these files always returned []. Now both map to ts.

One test with two small fixtures; it fails on main. npm test passes.

@bardrop

bardrop commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Friendly ping when you have time. Is there anything you'd like changed here?

@XhmikosR

XhmikosR commented Dec 1, 2026

Copy link
Copy Markdown
Member

This need a rebased and cut down then AI slop.

@bardrop
bardrop force-pushed the fix-paperwork-mts-cts branch from 5d2475f to c655112 Compare December 1, 2026 16:10
@bardrop

bardrop commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Rebased on main and cut it down to the fix itself: 3 lines in index.js plus one test (fails on main). The switch rewrite, the .cts require default and the README change are gone.

@XhmikosR
XhmikosR merged commit 00179c5 into dependents:main Dec 2, 2026
7 checks passed
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.

paperwork() returns no dependencies for .mts and .cts files

2 participants