build(deps): check in dist build

Signed-off-by: Billy Zha <jinzha1@microsoft.com>
This commit is contained in:
Billy Zha 2024-07-05 06:26:09 +00:00 committed by Shiwei Zhang
parent f9c05c148d
commit 909ac7e5c3
1 changed files with 5 additions and 7 deletions

12
dist/index.js vendored
View File

@ -6625,7 +6625,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
return result; return result;
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.hash = void 0; exports.hash = hash;
const crypto = __importStar(__nccwpck_require__(6113)); const crypto = __importStar(__nccwpck_require__(6113));
const fs = __importStar(__nccwpck_require__(7147)); const fs = __importStar(__nccwpck_require__(7147));
// hash computes SH256 of file at path. // hash computes SH256 of file at path.
@ -6638,7 +6638,6 @@ function hash(path) {
stream.on('end', () => resolve(hash.digest('hex'))); stream.on('end', () => resolve(hash.digest('hex')));
}); });
} }
exports.hash = hash;
/***/ }), /***/ }),
@ -6687,7 +6686,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod }; return (mod && mod.__esModule) ? mod : { "default": mod };
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getBinaryExtension = exports.mapArch = exports.mapPlatform = exports.getReleaseInfo = void 0; exports.getReleaseInfo = getReleaseInfo;
exports.mapPlatform = mapPlatform;
exports.mapArch = mapArch;
exports.getBinaryExtension = getBinaryExtension;
const os = __importStar(__nccwpck_require__(2037)); const os = __importStar(__nccwpck_require__(2037));
const releases_json_1 = __importDefault(__nccwpck_require__(2387)); const releases_json_1 = __importDefault(__nccwpck_require__(2387));
// Get release info of a certain verion of ORAS CLI // Get release info of a certain verion of ORAS CLI
@ -6720,7 +6722,6 @@ function getReleaseInfo(version, url, checksum) {
} }
return download; return download;
} }
exports.getReleaseInfo = getReleaseInfo;
// getPlatform maps os.platform() to ORAS supported platforms. // getPlatform maps os.platform() to ORAS supported platforms.
function mapPlatform() { function mapPlatform() {
const platform = os.platform(); const platform = os.platform();
@ -6737,7 +6738,6 @@ function mapPlatform() {
throw new Error(`unsupported platform: ${platform}`); throw new Error(`unsupported platform: ${platform}`);
} }
} }
exports.mapPlatform = mapPlatform;
// mapArch maps os.arch() to ORAS supported architectures. // mapArch maps os.arch() to ORAS supported architectures.
function mapArch() { function mapArch() {
const architecture = os.arch(); const architecture = os.arch();
@ -6760,12 +6760,10 @@ function mapArch() {
throw new Error(`unsupported architecture: ${architecture}`); throw new Error(`unsupported architecture: ${architecture}`);
} }
} }
exports.mapArch = mapArch;
function getBinaryExtension() { function getBinaryExtension() {
const platform = mapPlatform(); const platform = mapPlatform();
return platform === 'windows' ? '.exe' : ''; return platform === 'windows' ? '.exe' : '';
} }
exports.getBinaryExtension = getBinaryExtension;
/***/ }), /***/ }),