Skip to content

Commit

Permalink
chore: update typescript (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
paularmstrong authored Dec 8, 2024
1 parent 67fb969 commit e5fb5fa
Show file tree
Hide file tree
Showing 54 changed files with 1,110 additions and 250 deletions.
6 changes: 4 additions & 2 deletions commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const handler: Handler<Args> = async function handler(argv, { getWorkspac

removals.push(workspace.resolve('dist'));

esmFiles.size &&
if (esmFiles.size) {
buildProcs.push({
name: `Build ${workspace.name}`,
cmd: esbuildBin,
Expand All @@ -103,8 +103,9 @@ export const handler: Handler<Args> = async function handler(argv, { getWorkspac
`--format=${'type' in workspace.packageJson && workspace.packageJson.type === 'module' ? 'esm' : 'cjs'}`,
],
});
}

cjsFiles.size &&
if (cjsFiles.size) {
buildProcs.push({
name: `Build ${workspace.name}`,
cmd: esbuildBin,
Expand All @@ -116,6 +117,7 @@ export const handler: Handler<Args> = async function handler(argv, { getWorkspac
'--out-extension:.js=.cjs',
],
});
}

bins.forEach(([dir, src], name) => {
buildProcs.push({
Expand Down
Loading

0 comments on commit e5fb5fa

Please sign in to comment.