Skip to content

Commit 44dd33b

Browse files
Before this PR, tsc compiled the now-deleted .doc.ts files (e.g.
src/surfaces/checkout/components/Abbreviation/Abbreviation.doc.ts), which incidentally created build/ts/surfaces/checkout/components/ as a side effect. copyComponentDefinitions in buildTargetDts.ts assumed that directory existed. With the .doc.ts files gone, tsc no longer creates the parent dir, so copyFileSync fails with ENOENT on the destination.
1 parent 7ee0b07 commit 44dd33b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/ui-extensions/buildTargetDts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function copyComponentDefinitions({
2828
if (!existsSync(buildPath)) {
2929
mkdirSync(buildPath, {recursive: true});
3030
}
31+
mkdirSync(componentsBuildPath, {recursive: true});
3132

3233
const exists = componentsSrcPaths.every((path) => existsSync(path));
3334

0 commit comments

Comments
 (0)