mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-22 08:03:40 +00:00
Fix release note script for ESM
This commit is contained in:
1 parent
d67c458730
commit
44d25c10e1
1 file changed
+6
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user