Skip to content

Commit

Permalink
maint: fix __dirname not defined in ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 authored Sep 30, 2024
1 parent 6df1755 commit 117c4db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions script/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { Octokit } from "@octokit/rest";
import * as YAML from "yaml";
import * as fs from "fs";
import { join, extname } from "path";
import { fileURLToPath } from 'url';

const __dirname = url.fileURLToPath(new URL('.', import.meta.url));

function pad(number: number) {
if (number < 10) {
Expand Down

0 comments on commit 117c4db

Please sign in to comment.