Add 'getting started' extensions documentation (#9536)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
christine betts
2025-09-25 20:01:49 -04:00
committed by GitHub
parent 463e5d5b7e
commit 7e2ffd7a80
9 changed files with 280 additions and 6 deletions
+6 -1
View File
@@ -36,7 +36,12 @@ async function copyDirectory(template: string, path: string) {
const examplePath = join(EXAMPLES_PATH, template);
await mkdir(path, { recursive: true });
await cp(examplePath, path, { recursive: true });
const entries = await readdir(examplePath, { withFileTypes: true });
for (const entry of entries) {
const srcPath = join(examplePath, entry.name);
const destPath = join(path, entry.name);
await cp(srcPath, destPath, { recursive: true });
}
}
async function handleNew(args: NewArgs) {