serverless
Version:
Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more
12 lines (8 loc) • 348 B
JavaScript
;
const path = require('path');
const resolveLocalServerlessPath = require('../cli/resolve-local-serverless-path');
const serverlessPath = path.resolve(__dirname, '../Serverless.js');
module.exports = async () => {
const localServerlessPath = await resolveLocalServerlessPath();
return serverlessPath === localServerlessPath;
};