We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53b3503 commit c9f4b98Copy full SHA for c9f4b98
scripts/release-notes.mjs
@@ -1,12 +1,13 @@
1
import pkg from 'fs-extra';
2
import fetch from 'node-fetch';
3
-import { resolve } from 'path';
+import { resolve, dirname } from 'path';
4
import { compare } from 'semver';
5
-import { URL } from 'url';
+import { URL, fileURLToPath } from 'url';
6
7
import { renderMarkdown } from './utils.mjs';
8
9
-const __dirname = new URL('.', import.meta.url).pathname;
+const __filename = fileURLToPath(import.meta.url);
10
+const __dirname = dirname(__filename);
11
const OUTPUT_PATH = resolve(__dirname, '../src/components/page/reference/ReleaseNotes/release-notes.json');
12
13
// export default {
0 commit comments