isaacs / tshy

Other
895 stars 18 forks source link

Consistent naming #23

Closed valerii15298 closed 1 year ago

valerii15298 commented 1 year ago

Why emit folder is called commonjs instead of cjs? That is very strange. I think the naming should be more consistent either use full names or short ones but not mix them. cjs and esm - seems best choice or commonjs and esmidules - this one doesn't look very good to be honest

isaacs commented 1 year ago

The dialect is commonjs. cjs is the file extension.

The override for commonjs is -cjs.cts instead of -commonjs.cts because it was initially the only override, before other dialect support was added. That's unfortunate, imo.

Thanks for the suggestion, I'm probably not going to change it again, though. It's fine.