@@ -4282,9 +4282,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
4282
4282
result["default"] = mod;
4283
4283
return result;
4284
4284
};
4285
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4286
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4287
+ };
4285
4288
Object.defineProperty(exports, "__esModule", { value: true });
4286
4289
const core = __importStar(__webpack_require__(470));
4287
4290
const exec = __importStar(__webpack_require__(986));
4291
+ const os_1 = __importDefault(__webpack_require__(87));
4292
+ const path_1 = __importDefault(__webpack_require__(622));
4288
4293
exports.supportedPackageManagers = {
4289
4294
npm: {
4290
4295
lockFilePatterns: ['package-lock.json', 'yarn.lock'],
@@ -4293,7 +4298,7 @@ exports.supportedPackageManagers = {
4293
4298
pnpm: {
4294
4299
lockFilePatterns: ['pnpm-lock.yaml'],
4295
4300
getCacheFolderCommand: 'pnpm get store',
4296
- defaultCacheFolder: '~/ .pnpm-store'
4301
+ defaultCacheFolder: path_1.default.join(os_1.default.homedir(), ' .pnpm-store')
4297
4302
},
4298
4303
yarn1: {
4299
4304
lockFilePatterns: ['yarn.lock'],
@@ -50613,9 +50618,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
50613
50618
result["default"] = mod;
50614
50619
return result;
50615
50620
};
50621
+ var __importDefault = (this && this.__importDefault) || function (mod) {
50622
+ return (mod && mod.__esModule) ? mod : { "default": mod };
50623
+ };
50616
50624
Object.defineProperty(exports, "__esModule", { value: true });
50617
50625
const core = __importStar(__webpack_require__(470));
50618
50626
const cache = __importStar(__webpack_require__(692));
50627
+ const fs_1 = __importDefault(__webpack_require__(747));
50619
50628
const constants_1 = __webpack_require__(196);
50620
50629
const cache_utils_1 = __webpack_require__(143);
50621
50630
function run() {
@@ -50639,6 +50648,9 @@ const cachePackages = (packageManager) => __awaiter(void 0, void 0, void 0, func
50639
50648
return;
50640
50649
}
50641
50650
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
+ }
50642
50654
if (primaryKey === state) {
50643
50655
core.info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`);
50644
50656
return;
0 commit comments