@@ -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+ };
42854288Object.defineProperty(exports, "__esModule", { value: true });
42864289const core = __importStar(__webpack_require__(470));
42874290const exec = __importStar(__webpack_require__(986));
4291+ const os_1 = __importDefault(__webpack_require__(87));
4292+ const path_1 = __importDefault(__webpack_require__(622));
42884293exports.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+ };
5061650624Object.defineProperty(exports, "__esModule", { value: true });
5061750625const core = __importStar(__webpack_require__(470));
5061850626const cache = __importStar(__webpack_require__(692));
50627+ const fs_1 = __importDefault(__webpack_require__(747));
5061950628const constants_1 = __webpack_require__(196);
5062050629const cache_utils_1 = __webpack_require__(143);
5062150630function 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;
0 commit comments