Skip to content

Commit c9f6140

Browse files
committed
Fix lint
1 parent f3a9367 commit c9f6140

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/execute-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async function main(): Promise<void> {
8282
try {
8383
testFiles = await findTestFiles(opts.testsDir);
8484
} catch (err) {
85-
const msg = err instanceof Error ? err.message : String(err);
85+
const _msg = err instanceof Error ? err.message : String(err);
8686
process.exit(1);
8787
}
8888

scripts/publish.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bun
22

3-
import { $ } from "bun";
43
import { writeFile } from "node:fs/promises";
4+
import { $ } from "bun";
55

66
// 1. Validation
77
const bump = process.env.BUMP;
@@ -38,7 +38,7 @@ console.log(`Bumping ${currentVersion} -> ${newVersion}`);
3838

3939
// 3. Update Files
4040
pkg.version = newVersion;
41-
await writeFile("package.json", JSON.stringify(pkg, null, 2) + "\n");
41+
await writeFile("package.json", `${JSON.stringify(pkg, null, 2)}\n`);
4242

4343
// 4. Build
4444
console.log("Running build...");
@@ -50,7 +50,7 @@ try {
5050
// We pass the token directly to the publish command
5151
await $`npm publish --access public --//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN}`;
5252
console.log("NPM publish successful.");
53-
} catch (error) {
53+
} catch (_error) {
5454
console.error("NPM publish failed.");
5555
process.exit(1);
5656
}

0 commit comments

Comments
 (0)