Closed rtritto closed 1 month ago
Thank you for reporting this. However, please note that pkgroll is a bundler, and the files in the output (such as index.d.mts
) are compiled files meant to be consumed by programs, not necessarily formatted for human readability. As such, they aren't expected to adhere to .editorconfig
settings, which is standard behavior across bundlers.
If you need the output to follow a specific format, I recommend passing the files through a tool like Prettier or using ESLint's autofix feature after bundling.
Problem
I'm using a
.editorconfig
withindent_style = space
andindent_size = 2
. These settings, on bundle dist, theindent_size = 2
setting is applied only toindex.mjs
and not to generatedindex.d.mts
.Current output where indent size is 4:
Expected behavior
Minimal reproduction URL
https://github.com/rtritto/test-pkgroll/tree/bug-styles-type-definition
Version
2.5.0
Node.js version
22.9.0
Package manager
yarn
Operating system
Windows
Bugs are expected to be fixed by those affected by it
Compensating engineering work financially will speed up resolution