UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

15 lines (11 loc) 537 B
'use strict'; const path = require('path'); const resolveLocalServerlessPath = require('../cli/resolve-local-serverless-path'); const serverlessPath = path.resolve(__dirname, '../..'); // This method should be kept as sync. The reason for it is the fact that // telemetry generation and persistence needs to be run in sync manner // and it depends on this function, either directly or indirectly. module.exports = () => { const localServerlessPath = resolveLocalServerlessPath(); return serverlessPath === localServerlessPath; };