Explicitly import performance for Node 12 compatibility

This commit is contained in:
Henry Mercer
2022-08-19 11:12:10 +01:00
parent fbab93d8c8
commit b7435e9897
6 changed files with 15 additions and 6 deletions
+2
View File
@@ -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";