cli: fix tsx entry points

Co-authored-by: Johan Haals <johan.haals@gmail.com>
Co-authored-by: Philipp Hugenroth <philipph@spotify.com>
Co-authored-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-09-07 12:06:53 +02:00
parent e9f96d661a
commit a23fce763c
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'),
),
]),
);