Skip to content

Commit

Permalink
Merge pull request #358 from xt0rted/file-resolve
Browse files Browse the repository at this point in the history
Use esm style file resolve
  • Loading branch information
xt0rted authored Apr 29, 2022
2 parents 37f2710 + 5505446 commit e938eb1
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 e938eb1

Please sign in to comment.