Skip to content

Commit

Permalink
Fix biome correctness checks (#12929)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Jan 8, 2025
1 parent ad2a752 commit 21aa25c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions benchmark/make-project/_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
* previous artifacts here before generating files.
* @param {URL} projectDir
*/
// biome-ignore lint/correctness/noUnusedVariables: parameters here are template placeholders
// biome-ignore lint/correctness/noUnusedFunctionParameters: (same as above)
export async function run(projectDir) {}
3 changes: 2 additions & 1 deletion packages/astro/src/core/build/static-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@ async function cleanServerOutput(
files.map(async (filename) => {
const url = new URL(filename, out);
const map = new URL(url + '.map');
await Promise.all([fs.promises.rm(url), fs.promises.rm(new URL(map)).catch((e) => {})]);
// Sourcemaps may not be generated, so ignore any errors if fail to remove it
await Promise.all([fs.promises.rm(url), fs.promises.rm(map).catch(() => {})]);
}),
);

Expand Down
1 change: 0 additions & 1 deletion scripts/cmd/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default async function build(...args) {
const noClean = args.includes('--no-clean-dist');
const bundle = args.includes('--bundle');
const forceCJS = args.includes('--force-cjs');
const copyWASM = args.includes('--copy-wasm');

const { type = 'module', dependencies = {} } = await readPackageJSON('./package.json');

Expand Down

0 comments on commit 21aa25c

Please sign in to comment.