imjuni / ctix

CLI to generate barrel file for webpack, rollup entrypoint
MIT License
81 stars 21 forks source link

Folders with '.' in names are not being resolved correctly #73

Closed Vulthil closed 1 year ago

Vulthil commented 1 year ago

When running ctix create and a folder named foo.bar is encountered, the corresponding index.ts file is trying to import the module with import * from "foo" .

A very barebones reproduction repository: https://github.com/Vulthil/RepoForCtix

I've included the generated index.ts files in the source tree. The index.ts file in the src folder is trying to import a module from "./foo" even though the module is called foo.bar.

imjuni commented 1 year ago

@Vulthil Hi, Thank you for your reporting.

Would you create reproducable repo?

Vulthil commented 1 year ago

Updated initial issue with a reproduction repository

imjuni commented 1 year ago

@Vulthil Thank you! I check your repository 👍

imjuni commented 1 year ago

@Vulthil Thank you for your feedback, It was fixed 1.8.1