mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
14 lines
404 B
JavaScript
14 lines
404 B
JavaScript
'use strict';
|
|
|
|
const fileExistsSync = require('./fs/fileExistsSync');
|
|
const readFileSync = require('./fs/readFileSync');
|
|
const getCacheFilePath = require('./getCacheFilePath');
|
|
|
|
const getCacheFile = function (servicePath) {
|
|
const cacheFilePath = getCacheFilePath(servicePath);
|
|
if (!fileExistsSync(cacheFilePath)) return false;
|
|
return readFileSync(cacheFilePath);
|
|
};
|
|
|
|
module.exports = getCacheFile;
|