MCPcopy
hub / github.com/serverless/serverless / getDotServerlessLocalPath

Function getDotServerlessLocalPath

packages/sf-core/src/utils/fs/index.js:440–444  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

438 * @returns Path to the .{basePath} file in the current working directory
439 */
440const getDotServerlessLocalPath = (options) => {
441 const servicePath = options?.servicePath || process.cwd()
442 const basePath = `.${options?.basePath || 'serverless'}`
443 return path.join(servicePath, basePath)
444}
445
446/**
447 * Get .{basePath} file path in the user's home directory. This can be used

Callers 2

commandSupportFunction · 0.90
saveMetaFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…