Fix release note script for ESM

This commit is contained in:
陈大猫 committed 2026-01-23 03:11:56 +08:00
1 parent d67c458730
commit 44d25c10e1
1 file changed
+6 -3
+6 -3
View File
@@ -1,6 +1,9 @@
/* global __dirname, console, process, require */
const fs = require('fs');
const path = require('path');
import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
// Determine version priority:
// 1. VERSION env variable