MCPcopy Create free account
hub / github.com/serverless/serverless / getRcDefaultConfigPath

Function getRcDefaultConfigPath

packages/util/src/rc/index.js:70–71  ·  view source on GitHub ↗
(baseFilename)

Source from the content-addressed store, hash-verified

68const getRcDefaultPath = (baseFilename = 'serverless') =>
69 path.join(os.homedir(), getRcFileName(baseFilename))
70const getRcDefaultConfigPath = (baseFilename) =>
71 path.join(os.homedir(), '.config', getRcFileName(baseFilename))
72
73/**
74 * Gets the path to the global .{baseFilename}rc file.

Callers 1

getRcGlobalPathFunction · 0.85

Calls 1

getRcFileNameFunction · 0.85

Tested by

no test coverage detected