Skip to content

Commit

Permalink
temp speed up the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Moroz committed Jun 4, 2024
1 parent 6726164 commit 75559fd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ async function build(path) {
// 2. It could have fully replaced esbuild (as it uses that internally),
// but at the moment its esbuild version is somewhat outdated.
// It’s also harder to configure and esbuild docs are more thorough.
await tsup.build({
entry: [file],
format: ['cjs', 'esm'],
dts: { only: true },
outDir: dist,
silent: true,
external: [/@radix-ui\/.+/],
});
console.log(`Built ${path}/dist/index.d.ts`);
// await tsup.build({
// entry: [file],
// format: ['cjs', 'esm'],
// dts: { only: true },
// outDir: dist,
// silent: true,
// external: [/@radix-ui\/.+/],
// });
// console.log(`Built ${path}/dist/index.d.ts`);
}

globSync('packages/*/*').forEach(build);

0 comments on commit 75559fd

Please sign in to comment.