MCPcopy Create free account
hub / github.com/thesysdev/openui / shouldCopyTemplatePath

Function shouldCopyTemplatePath

packages/openui-cli/src/commands/create-app.ts:25–31  ·  view source on GitHub ↗
(templateDir: string, src: string)

Source from the content-addressed store, hash-verified

23}
24
25function shouldCopyTemplatePath(templateDir: string, src: string): boolean {
26 const rel = path.relative(templateDir, src);
27 if (!rel) return true;
28 const top = rel.split(path.sep)[0] ?? "";
29 // never copy install/build artifacts that may sit in a template dir
30 return !["node_modules", ".next", ".turbo", "dist"].includes(top);
31}
32
33export async function runCreateApp(options: CreateAppOptions): Promise<void> {
34 const interactive = !options.noInteractive;

Callers 1

runCreateAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected