diff --git a/lib/installer.js b/lib/installer.js index 6c5b1f38..491f2912 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -32,7 +32,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.showVersionInfo = exports.installJulia = exports.getDownloadURL = exports.getFileInfo = exports.getJuliaVersion = exports.getJuliaVersions = exports.getJuliaVersionInfo = void 0; +exports.getJuliaVersionInfo = getJuliaVersionInfo; +exports.getJuliaVersions = getJuliaVersions; +exports.getJuliaVersion = getJuliaVersion; +exports.getFileInfo = getFileInfo; +exports.getDownloadURL = getDownloadURL; +exports.installJulia = installJulia; +exports.showVersionInfo = showVersionInfo; const core = __importStar(require("@actions/core")); const exec = __importStar(require("@actions/exec")); const tc = __importStar(require("@actions/tool-cache")); @@ -94,7 +100,6 @@ function getJuliaVersionInfo() { return JSON.parse(fs.readFileSync(versionsFile).toString()); }); } -exports.getJuliaVersionInfo = getJuliaVersionInfo; /** * @returns An array of all Julia versions available for download */ @@ -107,7 +112,6 @@ function getJuliaVersions(versionInfo) { return versions; }); } -exports.getJuliaVersions = getJuliaVersions; function getJuliaVersion(availableReleases, versionInput, includePrerelease = false) { if (semver.valid(versionInput) == versionInput || versionInput.endsWith('nightly')) { // versionInput is a valid version or a nightly version, use it directly @@ -128,7 +132,6 @@ function getJuliaVersion(availableReleases, versionInput, includePrerelease = fa version = version.replace(/^v/, ''); return version; } -exports.getJuliaVersion = getJuliaVersion; function getDesiredFileExts() { let fileExt1; let hasFileExt2; @@ -262,7 +265,6 @@ function getFileInfo(versionInfo, version, arch) { core.error(`Encountered error: ${err}`); throw err; } -exports.getFileInfo = getFileInfo; function getDownloadURL(fileInfo, version, arch) { const baseURL = `https://julialangnightlies-s3.julialang.org/bin/${osMap[osPlat]}/${arch}`; // release branch nightlies, e.g. 1.6-nightlies should return .../bin/linux/x64/1.6/julia-latest-linux64.tar.gz @@ -280,7 +282,6 @@ function getDownloadURL(fileInfo, version, arch) { } return fileInfo.url; } -exports.getDownloadURL = getDownloadURL; function installJulia(dest, versionInfo, version, arch) { return __awaiter(this, void 0, void 0, function* () { // Download Julia @@ -348,7 +349,6 @@ function installJulia(dest, versionInfo, version, arch) { } }); } -exports.installJulia = installJulia; /** * Test if Julia has been installed and print the version. * @@ -385,4 +385,3 @@ function showVersionInfo(showVersionInfoInput, version) { } }); } -exports.showVersionInfo = showVersionInfo; diff --git a/package-lock.json b/package-lock.json index e30c2443..3e0d7a8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "nock": "^13.5.4", "prettier": "^3.3.2", "ts-jest": "^29.1.5", - "typescript": "^5.4.5" + "typescript": "^5.5.3" } }, "node_modules/@actions/core": { @@ -5049,9 +5049,9 @@ } }, "node_modules/typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz", + "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -9022,9 +9022,9 @@ "dev": true }, "typescript": { - "version": "5.4.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", - "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.3.tgz", + "integrity": "sha512-/hreyEujaB0w76zKo6717l3L0o/qEUtRgdvUBvlkhoWeOVMjMuHNHk0BRBzikzuGDqNmPQbg5ifMEqsHLiIUcQ==", "dev": true }, "undici-types": { diff --git a/package.json b/package.json index a9a4854b..3e750727 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,6 @@ "nock": "^13.5.4", "prettier": "^3.3.2", "ts-jest": "^29.1.5", - "typescript": "^5.4.5" + "typescript": "^5.5.3" } }