fix(changelog): moved packages
This commit is contained in:
@@ -6,18 +6,11 @@ if (!version) {
|
||||
|
||||
import fs from "fs-extra";
|
||||
import path from "path";
|
||||
import { spawnSync } from "child_process";
|
||||
import { fileURLToPath } from "url";
|
||||
import fetch from "node-fetch";
|
||||
import dotenv from "dotenv";
|
||||
dotenv.config({ path: "./.env" });
|
||||
|
||||
import { createRequire } from "node:module";
|
||||
const require = createRequire(import.meta.url);
|
||||
const conventionalChangelog =
|
||||
require("conventional-changelog-conventionalcommits").default ||
|
||||
require("conventional-changelog-conventionalcommits");
|
||||
|
||||
// Resolve the directory of the current script
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
Reference in New Issue
Block a user