forked from imbytecat/fullstack-starter
style: 将 biome lineWidth 从默认 80 调整为 120
This commit is contained in:
@@ -24,9 +24,7 @@ const { values } = parseArgs({
|
||||
const resolveTarget = (): Bun.Build.CompileTarget => {
|
||||
if (values.target !== undefined) {
|
||||
if (!isSupportedTarget(values.target)) {
|
||||
throw new Error(
|
||||
`Invalid target: ${values.target}\nAllowed: ${SUPPORTED_TARGETS.join(', ')}`,
|
||||
)
|
||||
throw new Error(`Invalid target: ${values.target}\nAllowed: ${SUPPORTED_TARGETS.join(', ')}`)
|
||||
}
|
||||
return values.target
|
||||
}
|
||||
@@ -45,10 +43,7 @@ const main = async () => {
|
||||
const outfile = `server-${suffix}`
|
||||
|
||||
await mkdir(OUTDIR, { recursive: true })
|
||||
await Promise.all([
|
||||
rm(`${OUTDIR}/${outfile}`, { force: true }),
|
||||
rm(`${OUTDIR}/${outfile}.exe`, { force: true }),
|
||||
])
|
||||
await Promise.all([rm(`${OUTDIR}/${outfile}`, { force: true }), rm(`${OUTDIR}/${outfile}.exe`, { force: true })])
|
||||
|
||||
const result = await Bun.build({
|
||||
entrypoints: [ENTRYPOINT],
|
||||
|
||||
Reference in New Issue
Block a user