From 5505446801a2b12229e644e7e41d990d4246c6cb Mon Sep 17 00:00:00 2001 From: Brian Surowiec Date: Thu, 28 Apr 2022 21:05:54 -0400 Subject: [PATCH] Use esm style file resolve --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 7f2cf0b..6ae395f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,5 @@ import { readFile } from "node:fs/promises"; -import { join } from "node:path"; +import { fileURLToPath } from "node:url"; import { getInput, @@ -13,7 +13,7 @@ export async function run(): Promise { 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":