feat(linting): adding in the checks to make me better and not so sloppy
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { dirname, join } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import axios from "axios";
|
||||
import { readFileSync } from "fs";
|
||||
import { dirname, join } from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
@@ -36,8 +36,8 @@ try {
|
||||
},
|
||||
);
|
||||
|
||||
console.log(`✅ Release ${version} created!`);
|
||||
console.log(`🔗 ${response.data.html_url}`);
|
||||
console.info(`✅ Release ${version} created!`);
|
||||
console.info(`🔗 ${response.data.html_url}`);
|
||||
} catch (error) {
|
||||
console.error(`❌ Error: ${error.response?.data?.message || error.message}`);
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user