mirror of
https://github.com/github/codeql-action.git
synced 2026-05-13 01:10:21 +00:00
Explicitly import performance for Node 12 compatibility
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
// We need to import `performance` on Node 12
|
||||
import { performance } from "perf_hooks";
|
||||
|
||||
import * as core from "@actions/core";
|
||||
|
||||
import * as actionsUtil from "./actions-util";
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
// We need to import `performance` on Node 12
|
||||
import { performance } from "perf_hooks";
|
||||
|
||||
import * as yaml from "js-yaml";
|
||||
import * as semver from "semver";
|
||||
|
||||
Reference in New Issue
Block a user