mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
12 lines
340 B
JavaScript
12 lines
340 B
JavaScript
const path = require('path');
|
|
const fileExistsSync = require('./fs/fileExistsSync');
|
|
const getServerlessDir = require('./getServerlessDir');
|
|
|
|
module.exports = function isTrackingDisabled() {
|
|
// to be updated to .serverlessrc
|
|
if (fileExistsSync(path.join(getServerlessDir(), 'stats-disabled'))) {
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|