Skip to content

Commit 11d1666

Browse files
Fix no-var-requires errors
1 parent 10946a6 commit 11d1666

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

lib/installer.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*global exports, process, require*/
1+
/*global exports, process*/
22

33
"use strict";
44
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
@@ -19,11 +19,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
1919
Object.defineProperty(exports, "__esModule", { value: true });
2020
// Load tempDirectory before it gets wiped by tool-cache
2121
let tempDirectory = process.env["RUNNER_TEMP"] || "";
22-
const os = __importStar(require("os"));
23-
const path = __importStar(require("path"));
24-
const util = __importStar(require("util"));
25-
const restm = __importStar(require("typed-rest-client/RestClient"));
26-
const semver = __importStar(require("semver"));
22+
const os = __importStar("os");
23+
const path = __importStar("path");
24+
const util = __importStar("util");
25+
const restm = __importStar("typed-rest-client/RestClient");
26+
const semver = __importStar("semver");
2727
if (!tempDirectory) {
2828
let baseLocation;
2929
if (process.platform === "win32") {
@@ -40,10 +40,10 @@ if (!tempDirectory) {
4040
}
4141
tempDirectory = path.join(baseLocation, "actions", "temp");
4242
}
43-
const core = __importStar(require("@actions/core"));
44-
const tc = __importStar(require("@actions/tool-cache"));
45-
const exc = __importStar(require("@actions/exec"));
46-
const io = __importStar(require("@actions/io"));
43+
const core = __importStar("@actions/core");
44+
const tc = __importStar("@actions/tool-cache");
45+
const exc = __importStar("@actions/exec");
46+
const io = __importStar("@actions/io");
4747
let osPlat = os.platform();
4848
let osArch = os.arch();
4949
function getProtoc(version, includePreReleases, repoToken) {

lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*global exports, require*/
1+
/*global exports*/
22

33
"use strict";
44
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
@@ -17,8 +17,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
1717
return result;
1818
};
1919
Object.defineProperty(exports, "__esModule", { value: true });
20-
const core = __importStar(require("@actions/core"));
21-
const installer = __importStar(require("./installer"));
20+
const core = __importStar("@actions/core");
21+
const installer = __importStar("./installer");
2222
function run() {
2323
return __awaiter(this, void 0, void 0, function* () {
2424
try {

0 commit comments

Comments
 (0)