Skip to content

Commit

Permalink
chore(atomic): fix tsc path transformer for declaration files (#4984)
Browse files Browse the repository at this point in the history
https://coveord.atlassian.net/browse/KIT-3978

For the transformer to affect both js and d.ts, you need it in `before`
& `afterDeclarations`.


microsoft/TypeScript#29543 (comment)
  • Loading branch information
alexprudhomme authored Feb 19, 2025
1 parent 8e32def commit ed12109
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/atomic/scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function emit(program) {
const emitOnlyDtsFiles = false;
const customTransformers = {
before: [svgTransformer, pathTransformer],
afterDeclarations: [pathTransformer],
};

return program.emit(
Expand Down

0 comments on commit ed12109

Please sign in to comment.