From 14ae86217c418aa50b8219f102682dd0abda26c2 Mon Sep 17 00:00:00 2001 From: Addie Rudy Date: Wed, 30 Oct 2024 10:27:19 -0400 Subject: [PATCH] fix(projen): Fixed build issues with front end compilation --- .projen/tasks.json | 5 +++-- .projenrc.ts | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.projen/tasks.json b/.projen/tasks.json index 338909b..cba21b3 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -278,10 +278,11 @@ "description": "Prepare the project for compilation", "steps": [ { - "spawn": "build:appsync" + "exec": "npm run build", + "cwd": "lib/user-interface/genai-newsletter-ui/" }, { - "spawn": "compile" + "spawn": "build:appsync" } ] }, diff --git a/.projenrc.ts b/.projenrc.ts index 809b66e..1d8e66c 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -234,8 +234,10 @@ project.tasks.addTask('docs:preview', { exec: 'vitepress preview pages', }); +project.preCompileTask.exec('npm run build', { + cwd: 'lib/user-interface/genai-newsletter-ui/', +}); project.preCompileTask.spawn(buildAppsync); -project.preCompileTask.spawn(frontend.compileTask); // Formatting tasks project.tasks.addTask('format', {