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 267ebe8 commit 8dbc180Copy full SHA for 8dbc180
scripts/release.mjs
@@ -1,9 +1,13 @@
1
import fs from "fs";
2
import process from "process";
3
import archiver from "archiver";
4
-import path from "path";
+import { fileURLToPath } from "url";
5
+import path, { dirname } from "path";
6
import { releaseDirectories, releaseFiles, updateFile } from "./commons.mjs";
7
8
+const __filename = fileURLToPath(import.meta.url);
9
+const __dirname = dirname(__filename);
10
+
11
const tarballReleaseFiles = () =>
12
new Promise((resolve, reject) => {
13
// create a file to stream archive data to.
0 commit comments