-
-
Notifications
You must be signed in to change notification settings - Fork 146
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Clear and concise description of the problem
When using the config option exports: true, the indentation is overwritten to use two spaces, regardless of what it was before:
tsdown/src/features/exports.ts
Lines 66 to 70 in 845feb8
| `${JSON.stringify( | |
| { ...pkg, ...generated, packageJsonPath: undefined }, | |
| null, | |
| 2, | |
| )}\n`, |
Suggested solution
It would be ideal if the exports feature could auto-detect and use the actual indentation used in the package.json.
Alternative
A config option where the desired indentation could be specified.
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers