Skip to content

Commit 1f97abe

Browse files
authored
Merge pull request #6520 from Shopify/lopert.pnpm-fix
fix for pnpm
2 parents 30b615b + 8502c36 commit 1f97abe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/app/src/cli/services/generate/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ async function functionExtensionInit({
183183
taskList.push({
184184
title: 'Installing additional dependencies',
185185
task: async () => {
186-
// We need to run `npm install` once to setup the workspace correctly
187-
if (app.usesWorkspaces && app.packageManager === 'npm') {
188-
await installNodeModules({packageManager: 'npm', directory: app.directory})
186+
// We need to run install once to setup the workspace correctly
187+
if (app.usesWorkspaces) {
188+
await installNodeModules({packageManager: app.packageManager, directory: app.directory})
189189
}
190190

191191
const requiredDependencies = getFunctionRuntimeDependencies(templateLanguage)

0 commit comments

Comments
 (0)