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

Function getPreviewDir

npm_modules/cli/src/preview/previewGenerator.ts:23–25  ·  view source on GitHub ↗
(workspaceRoot: string)

Source from the content-addressed store, hash-verified

21const PREVIEW_DIR = 'apps/preview';
22
23export function getPreviewDir(workspaceRoot: string): string {
24 return path.join(workspaceRoot, PREVIEW_DIR);
25}
26
27/**
28 * Write all preview harness files. Creates the directory if needed.

Callers 4

valdiPreviewFunction · 0.90
generatePreviewFilesFunction · 0.85
generateTsconfigFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected