Skip to content

fix: recognize .mjs and .ejs files in AST extractor#372

Open
jakeefr wants to merge 1 commit intosafishamsi:v4from
jakeefr:fix/mjs-ejs-extensions
Open

fix: recognize .mjs and .ejs files in AST extractor#372
jakeefr wants to merge 1 commit intosafishamsi:v4from
jakeefr:fix/mjs-ejs-extensions

Conversation

@jakeefr
Copy link
Copy Markdown

@jakeefr jakeefr commented Apr 15, 2026

Fixes #365. Added .mjs and .ejs file extensions to the AST extractor so modern ES module files and EJS templates are properly parsed.

  • .mjs added to CODE_EXTENSIONS, _DISPATCH (mapped to extract_js), and collect_files _EXTENSIONS — treated identically to .js
  • .ejs added to DOC_EXTENSIONS for semantic extraction processing

I maintain PRISM, a post-session diagnostics tool for Claude Code — session health scoring and CLAUDE.md adherence analysis. Both tools help developers get deeper signal from their codebases and sessions.

Add .mjs to CODE_EXTENSIONS, the tree-sitter _DISPATCH dict, and
the collect_files _EXTENSIONS set so ES module files are parsed
identically to .js files.

Add .ejs to DOC_EXTENSIONS so EJS templates are processed via
the semantic extraction pipeline.

Fixes safishamsi#365
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.

.mjs and .ejs files not recognized by AST extractor

1 participant