Merge pull request #19833 from backstage/mob/cli-tsx-fix

cli: fix tsx entry points
This commit is contained in:
Patrik Oldsberg
2023-09-07 13:30:59 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Fixed a bug where package exports entry points could not be `.tsx` files.
+1 -1
View File
@@ -157,7 +157,7 @@ export async function makeRollupConfigs(
paths.resolveTargetRoot(
'dist-types',
relativePath(paths.targetRoot, targetDir),
e.path.replace(/\.ts$/, '.d.ts'),
e.path.replace(/\.(?:ts|tsx)$/, '.d.ts'),
),
]),
);