mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
13 lines
300 B
JavaScript
13 lines
300 B
JavaScript
'use strict';
|
|
|
|
const homedir = require('os').homedir();
|
|
const path = require('path');
|
|
const md5 = require('md5');
|
|
|
|
const getCacheFilePath = function (servicePath) {
|
|
return path.join(homedir, '.serverless', 'cache',
|
|
md5(servicePath), 'autocomplete.json');
|
|
};
|
|
|
|
module.exports = getCacheFilePath;
|