diff options
author | 2022-06-15 12:52:13 +0000 | |
---|---|---|
committer | 2022-06-15 12:52:13 +0000 | |
commit | f1f207839a3d7cdebdfbafaea0d8ffec06d432d8 (patch) | |
tree | ece01c66afbfd0be3eb5d4b4ffdd14032e0686e8 /scripts/cmd/prebuild.js | |
parent | fc52321a888920beebb6b84f56d2f41791666e13 (diff) | |
download | astro-f1f207839a3d7cdebdfbafaea0d8ffec06d432d8.tar.gz astro-f1f207839a3d7cdebdfbafaea0d8ffec06d432d8.tar.zst astro-f1f207839a3d7cdebdfbafaea0d8ffec06d432d8.zip |
[ci] format
Diffstat (limited to 'scripts/cmd/prebuild.js')
-rw-r--r-- | scripts/cmd/prebuild.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/cmd/prebuild.js b/scripts/cmd/prebuild.js index 7f8733cfe..4a67babe2 100644 --- a/scripts/cmd/prebuild.js +++ b/scripts/cmd/prebuild.js @@ -7,7 +7,7 @@ import { pathToFileURL, fileURLToPath } from 'url'; export default async function prebuild(...args) { let buildToString = args.indexOf('--to-string'); - if(buildToString !== -1) { + if (buildToString !== -1) { args.splice(buildToString, 1); buildToString = true; } @@ -33,10 +33,10 @@ export default async function prebuild(...args) { const tscode = await fs.promises.readFile(filepath, 'utf-8'); const esbuildresult = await esbuild.transform(tscode, { loader: 'ts', - minify: true + minify: true, }); const rootURL = new URL('../../', import.meta.url); - const rel = path.relative(fileURLToPath(rootURL), filepath) + const rel = path.relative(fileURLToPath(rootURL), filepath); const mod = `/** * This file is prebuilt from ${rel} * Do not edit this directly, but instead edit that file and rerun the prebuild |