Skip to content

Commit e85c842

Browse files
committed
debugging post build script
1 parent 2b1cf3e commit e85c842

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/tsPostBuild.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ import { fix } from 'tsc-esm-fix';
3535
// `components/rss/dist/**/*.{js,mjs,d.ts}`
3636
const dir = path.dirname(filename);
3737
// XXX we should really read the tsconfig for the given package and get the outDir from there
38-
const outDir = dir.match(/(.*dist\/).*/)[1];
38+
const match = dir.match(/(.*dist\/).*/);
39+
if (!match) {
40+
console.log('dist match not found for:', dir);
41+
}
42+
const outDir = match?.[1];
3943
if (outDir && !outDirs.includes(outDir)) {
4044
outDirs.push(outDir);
4145
}

0 commit comments

Comments
 (0)