Skip to content

Commit b813f91

Browse files
committed
Add compatibility definitions to config.ts
1 parent 4c98a0b commit b813f91

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎pr-checks/config.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
import path from "path";
2+
import { fileURLToPath } from "url";
3+
4+
// For backwards-compatibility.
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = path.dirname(__filename);
27

38
/** The oldest supported major version of the CodeQL Action. */
49
export const OLDEST_SUPPORTED_MAJOR_VERSION = 3;

0 commit comments

Comments
 (0)