1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-02 12:34:22 +02:00

fix: lint

This commit is contained in:
zyoshoka
2025-04-18 19:47:31 +09:00
parent 131605070a
commit 977218bda5
6 changed files with 661 additions and 621 deletions

View File

@@ -1,31 +1,31 @@
import { build } from "esbuild";
import { globSync } from "glob";
import { build } from 'esbuild';
import { globSync } from 'glob';
const entryPoints = globSync("./src/**/**.{ts,tsx}");
const entryPoints = globSync('./src/**/**.{ts,tsx}');
/** @type {import('esbuild').BuildOptions} */
const options = {
entryPoints,
minify: true,
outdir: "./built/esm",
target: "es2022",
platform: "browser",
format: "esm",
entryPoints,
minify: true,
outdir: './built/esm',
target: 'es2022',
platform: 'browser',
format: 'esm',
};
if (process.env.WATCH === "true") {
options.watch = {
onRebuild(error, result) {
if (error) {
console.error("watch build failed:", error);
} else {
console.log("watch build succeeded:", result);
}
},
};
if (process.env.WATCH === 'true') {
options.watch = {
onRebuild(error, result) {
if (error) {
console.error('watch build failed:', error);
} else {
console.log('watch build succeeded:', result);
}
},
};
}
build(options).catch((err) => {
process.stderr.write(err.stderr);
process.exit(1);
process.stderr.write(err.stderr);
process.exit(1);
});