Skip to content

Commit

Permalink
Use esm style file resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
xt0rted committed Apr 29, 2022
1 parent 37f2710 commit 5505446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readFile } from "node:fs/promises";
import { join } from "node:path";
import { fileURLToPath } from "node:url";

import {
getInput,
Expand All @@ -13,7 +13,7 @@ export async function run(): Promise<void> {
try {
const action = getInput("action");

const matcherFile = join(__dirname, "problem-matcher.json");
const matcherFile = fileURLToPath(new URL("problem-matcher.json", import.meta.url));

switch (action) {
case "add":
Expand Down

0 comments on commit 5505446

Please sign in to comment.