Hello @ShreyPurohit,
Bug Description
Files with the same base name but different extensions are not being handled correctly.
Current Output
{
"test": {
"demo": "png",
"demo.svg": "svg",
"demo.tsx": "tsx"
}
}
Expected Output
{
"test": {
"demo": ["png", "svg", "tsx"]
}
}
Problem
The current implementation maps a filename to a single extension value, which does not properly support multiple files sharing the same base name with different extensions.
This can lead to overwritten values or inconsistent output formatting.
Steps to Reproduce
- Create files with the same base name:
demo.png
demo.svg
demo.tsx
- Run the extension/file parser.
- Observe the generated output.
Expected Behavior
File extensions should be grouped into an array for files sharing the same base filename.
Screenshot

Hello @ShreyPurohit,
Bug Description
Files with the same base name but different extensions are not being handled correctly.
Current Output
{ "test": { "demo": "png", "demo.svg": "svg", "demo.tsx": "tsx" } }Expected Output
{ "test": { "demo": ["png", "svg", "tsx"] } }Problem
The current implementation maps a filename to a single extension value, which does not properly support multiple files sharing the same base name with different extensions.
This can lead to overwritten values or inconsistent output formatting.
Steps to Reproduce
demo.pngdemo.svgdemo.tsxExpected Behavior
File extensions should be grouped into an array for files sharing the same base filename.
Screenshot