From e0b90ee6f0298147b942611715343222418b682e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grzywacz?= Date: Thu, 19 Oct 2023 13:37:16 +0200 Subject: [PATCH 1/2] build: create new project during CI build process JST-500 --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 914167b..1494c62 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,3 +40,5 @@ jobs: npm run build npm ln golem-sdk --version + golem-sdk new test-app -t js-node -d 'Test App' -a 'Golem' -v '1.0.0' + cd test-app/node_modules From 93b3b5173d6f1d88f9732a247dabbdcddd59e6d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grzywacz?= Date: Thu, 19 Oct 2023 13:44:49 +0200 Subject: [PATCH 2/2] build: create new project during CI build process JST-500 --- src/new/new.action.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/new/new.action.ts b/src/new/new.action.ts index 2be5181..b60fe04 100644 --- a/src/new/new.action.ts +++ b/src/new/new.action.ts @@ -139,7 +139,7 @@ function installDependencies(options: NewOptions, projectPath: string) { const pkg = getPackageManager(); const args = pkg.name === "yarn" ? [] : ["install"]; - const result = spawnSync(pkg.name, args, { cwd: projectPath, stdio: "inherit" }); + const result = spawnSync(pkg.name, args, { cwd: projectPath, stdio: "inherit", shell: true }); if (result.error) { console.error(`Error: There was a problem installing dependencies: ${result.error.message}`);