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 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}`);