We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b1cf3e commit e85c842Copy full SHA for e85c842
scripts/tsPostBuild.mjs
@@ -35,7 +35,11 @@ import { fix } from 'tsc-esm-fix';
35
// `components/rss/dist/**/*.{js,mjs,d.ts}`
36
const dir = path.dirname(filename);
37
// XXX we should really read the tsconfig for the given package and get the outDir from there
38
- const outDir = dir.match(/(.*dist\/).*/)[1];
+ const match = dir.match(/(.*dist\/).*/);
39
+ if (!match) {
40
+ console.log('dist match not found for:', dir);
41
+ }
42
+ const outDir = match?.[1];
43
if (outDir && !outDirs.includes(outDir)) {
44
outDirs.push(outDir);
45
}
0 commit comments