Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 27, 2025
1 parent da6f38c commit 64f55fe
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions esbuild.mjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import * as esbuild from 'esbuild';
import * as esbuild from "esbuild";

const options = {
entryPoints: ['src/index.ts'],
entryPoints: ["src/index.ts"],
bundle: true,
minify: process.env.NODE_ENV === 'production',
sourcemap: process.env.NODE_ENV === 'development',
mainFields: ['module', 'main'],
external: ['coc.nvim'],
platform: 'node',
target: 'node18',
outfile: 'lib/index.js',
minify: process.env.NODE_ENV === "production",
sourcemap: process.env.NODE_ENV === "development",
mainFields: ["module", "main"],
external: ["coc.nvim"],
platform: "node",
target: "node18",
outfile: "lib/index.js",
};

if (process.argv.length > 2 && process.argv[2] === '--watch') {
if (process.argv.length > 2 && process.argv[2] === "--watch") {
const ctx = await esbuild.context(options);
await ctx.watch();
console.log('watching...');
console.log("watching...");
} else {
const result = await esbuild.build(options);
if (result.errors.length) {
Expand Down

0 comments on commit 64f55fe

Please sign in to comment.