From 8a19fb9e66c97574348adf60daa67a96904e42b5 Mon Sep 17 00:00:00 2001 From: Mahmut Gundogdu Date: Thu, 22 Dec 2022 15:36:44 +0300 Subject: [PATCH] Add oauth packages copy to template command --- npm/ng-packs/scripts/copy-packages-to-templates.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/npm/ng-packs/scripts/copy-packages-to-templates.ts b/npm/ng-packs/scripts/copy-packages-to-templates.ts index e71dacbcc0..dd605db994 100644 --- a/npm/ng-packs/scripts/copy-packages-to-templates.ts +++ b/npm/ng-packs/scripts/copy-packages-to-templates.ts @@ -17,7 +17,8 @@ const packageMap = { 'tenant-management': 'ng.tenant-management', 'theme-basic': 'ng.theme.basic', 'theme-shared': 'ng.theme.shared', - 'schematics':'ng.schematics' + 'schematics':'ng.schematics', + oauth:'ng.oauth' }; program.option('-t, --templates ', 'template dirs', false); program.option('-p, --template-path ', 'root template path', false); @@ -25,8 +26,9 @@ program.parse(process.argv); const templates = program.templates ? program.templates.split(',') : defaultTemplates; const templateRootPath = program.templatePath ? program.templatePath : defaultTemplatePath; (async () => { - await execa('yarn', ['build'], { + await execa('yarn', ['build:all'], { stdout: 'inherit', + cwd:'../' }); await installPackages();