UNPKG

serverless

Version:

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

20 lines (17 loc) 372 B
'use strict'; const path = require('path'); const memoizee = require('memoizee'); const resolve = require('ncjsm/resolve'); module.exports = memoizee( async () => { try { return path.resolve( path.dirname((await resolve(process.cwd(), 'serverless')).realPath), '..' ); } catch { return null; } }, { promise: true } );