Skip to content

Commit 655456c

Browse files
fix: pass correct directory to copyExtensions in template installation\n\nWhen installing template extensions, copyExtensions() was called with\nstagedDir as the source directory instead of extDir (_extensions folder).\nThis caused readExtensions() to fail finding any extensions on the second\ncall, resulting in an empty _extensions folder being created.\n\nFixes: #14008
1 parent def4986 commit 655456c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/command/use/commands/template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async function useTemplate(
157157
// Copy the extensions into a substaging directory
158158
// this will ensure that they are namespaced properly
159159
const subStagedDir = tempContext.createDir();
160-
await copyExtensions(source, stagedDir, subStagedDir);
160+
await copyExtensions(source, extDir, subStagedDir);
161161

162162
// Now complete installation from this sub-staged directory
163163
await completeInstallation(subStagedDir, outputDirectory);

0 commit comments

Comments
 (0)