Skip to content

Commit 0453e51

Browse files
Regenerate compiled files
1 parent 399982b commit 0453e51

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

dist/cache-save/index.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4282,9 +4282,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
42824282
result["default"] = mod;
42834283
return result;
42844284
};
4285+
var __importDefault = (this && this.__importDefault) || function (mod) {
4286+
return (mod && mod.__esModule) ? mod : { "default": mod };
4287+
};
42854288
Object.defineProperty(exports, "__esModule", { value: true });
42864289
const core = __importStar(__webpack_require__(470));
42874290
const exec = __importStar(__webpack_require__(986));
4291+
const os_1 = __importDefault(__webpack_require__(87));
4292+
const path_1 = __importDefault(__webpack_require__(622));
42884293
exports.supportedPackageManagers = {
42894294
npm: {
42904295
lockFilePatterns: ['package-lock.json', 'yarn.lock'],
@@ -4293,7 +4298,7 @@ exports.supportedPackageManagers = {
42934298
pnpm: {
42944299
lockFilePatterns: ['pnpm-lock.yaml'],
42954300
getCacheFolderCommand: 'pnpm get store',
4296-
defaultCacheFolder: '~/.pnpm-store'
4301+
defaultCacheFolder: path_1.default.join(os_1.default.homedir(), '.pnpm-store')
42974302
},
42984303
yarn1: {
42994304
lockFilePatterns: ['yarn.lock'],
@@ -50613,9 +50618,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
5061350618
result["default"] = mod;
5061450619
return result;
5061550620
};
50621+
var __importDefault = (this && this.__importDefault) || function (mod) {
50622+
return (mod && mod.__esModule) ? mod : { "default": mod };
50623+
};
5061650624
Object.defineProperty(exports, "__esModule", { value: true });
5061750625
const core = __importStar(__webpack_require__(470));
5061850626
const cache = __importStar(__webpack_require__(692));
50627+
const fs_1 = __importDefault(__webpack_require__(747));
5061950628
const constants_1 = __webpack_require__(196);
5062050629
const cache_utils_1 = __webpack_require__(143);
5062150630
function run() {
@@ -50639,6 +50648,9 @@ const cachePackages = (packageManager) => __awaiter(void 0, void 0, void 0, func
5063950648
return;
5064050649
}
5064150650
const cachePath = yield cache_utils_1.getCacheDirectoryPath(packageManagerInfo, packageManager);
50651+
if (!fs_1.default.existsSync(cachePath)) {
50652+
throw new Error(`Cache folder path is retrieved for ${packageManager} but doesn't exist on disk: ${cachePath}`);
50653+
}
5064250654
if (primaryKey === state) {
5064350655
core.info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`);
5064450656
return;

dist/setup/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51580,9 +51580,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
5158051580
result["default"] = mod;
5158151581
return result;
5158251582
};
51583+
var __importDefault = (this && this.__importDefault) || function (mod) {
51584+
return (mod && mod.__esModule) ? mod : { "default": mod };
51585+
};
5158351586
Object.defineProperty(exports, "__esModule", { value: true });
5158451587
const core = __importStar(__webpack_require__(470));
5158551588
const exec = __importStar(__webpack_require__(986));
51589+
const os_1 = __importDefault(__webpack_require__(87));
51590+
const path_1 = __importDefault(__webpack_require__(622));
5158651591
exports.supportedPackageManagers = {
5158751592
npm: {
5158851593
lockFilePatterns: ['package-lock.json', 'yarn.lock'],
@@ -51591,7 +51596,7 @@ exports.supportedPackageManagers = {
5159151596
pnpm: {
5159251597
lockFilePatterns: ['pnpm-lock.yaml'],
5159351598
getCacheFolderCommand: 'pnpm get store',
51594-
defaultCacheFolder: '~/.pnpm-store'
51599+
defaultCacheFolder: path_1.default.join(os_1.default.homedir(), '.pnpm-store')
5159551600
},
5159651601
yarn1: {
5159751602
lockFilePatterns: ['yarn.lock'],

0 commit comments

Comments
 (0)