Skip to content

Commit

Permalink
use meta.url
Browse files Browse the repository at this point in the history
  • Loading branch information
Elmer Bulthuis committed May 6, 2024
1 parent bddd4d2 commit 02a78e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import cp from "child_process";
import path from "path";
import { fileURLToPath } from "url";

const workspaceRoot = path.resolve(import.meta.dirname, "..");
const dirname = path.dirname(fileURLToPath(import.meta.url));
const workspaceRoot = path.resolve(dirname, "..");

const options = { shell: true, stdio: "inherit", env: process.env };

Expand Down

0 comments on commit 02a78e7

Please sign in to comment.