serverless/lib/utils/telemetry/cache-path.js
Mariusz Nowak ae9442e53b fix(Telemetry): Do not share telemetry cache folder with old versions
Fixes the issue for global to local fallback case, where older global which send cache on every command was sending same telemetry as local
2021-05-04 22:12:00 +02:00

11 lines
255 B
JavaScript

'use strict';
const path = require('path');
const os = require('os');
module.exports = (() => {
const resolvedHomeDir = os.homedir();
if (!resolvedHomeDir) return null;
return path.resolve(resolvedHomeDir, '.serverless', 'telemetry-cache');
})();