mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
14 lines
355 B
JavaScript
14 lines
355 B
JavaScript
'use strict';
|
|
|
|
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;
|
|
};
|