1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
10 | exports.findCachePath = void 0;
|
11 | const findCacheDirectory = require("find-cache-dir");
|
12 | const os_1 = require("os");
|
13 | const path_1 = require("path");
|
14 | const environment_options_1 = require("./environment-options");
|
15 | function findCachePath(name) {
|
16 | if (environment_options_1.cachingBasePath) {
|
17 | return path_1.resolve(environment_options_1.cachingBasePath, name);
|
18 | }
|
19 | return findCacheDirectory({ name }) || os_1.tmpdir();
|
20 | }
|
21 | exports.findCachePath = findCachePath;
|