Explicitly import performance for Node 12 compatibility
This commit is contained in:
parent
f0a1a35a9f
commit
c72f566aae
6 changed files with 15 additions and 6 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue