mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
Fixes the issue for global to local fallback case, where older global which send cache on every command was sending same telemetry as local
11 lines
255 B
JavaScript
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');
|
|
})();
|