MCPcopy Create free account
hub / github.com/Snapchat/Valdi / withOutputPath

Method withOutputPath

npm_modules/cli/src/utils/fileUtils.ts:48–51  ·  view source on GitHub ↗
(outputPath: string)

Source from the content-addressed store, hash-verified

46 }
47
48 withOutputPath(outputPath: string): TemplateFile {
49 const newOutputPath = isDirectory(outputPath) ? path.join(outputPath, this.baseName) : outputPath;
50 return new TemplateFile(this.templatePath, newOutputPath, this.replacements);
51 }
52
53 expandTemplate(): string {
54 const metaTemplatePath = path.join(Constants.META_DIR_PATH, this.templatePath);

Callers 1

initializeConfigFilesFunction · 0.80

Calls 2

isDirectoryFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected