Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Aug 19, 2024
1 parent 471ccfd commit 7e1545a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/esbuild/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { BuildOptions as ESBuildOptions, BuildResult as ESBuildResult, OutputFile, Plugin } from 'esbuild';
import * as esbuild from 'esbuild';
import path from 'path';
import { build, context } from 'esbuild';

import { BuildOptions } from '../../utils/options';

Expand Down Expand Up @@ -70,12 +69,12 @@ export function runBuilds(builds: ESBuildOptions[], opts: BuildOptions): Promise
if (opts.isWatch) {
return Promise.all(
builds.map(async (buildConfig) => {
const context = await esbuild.context(buildConfig);
return context.watch();
const ctx = await context(buildConfig);
return ctx.watch();
}),
);
} else {
return Promise.all(builds.map(esbuild.build));
return Promise.all(builds.map(build));
}
}

Expand Down

0 comments on commit 7e1545a

Please sign in to comment.