Skip to content

Commit

Permalink
Clean up after previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
petervdonovan committed Aug 27, 2022
1 parent 49c2847 commit 6a60cb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions org.lflang/src/org/lflang/generator/ts/TSGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ class TSGenerator(

Files.createDirectories(fileConfig.srcGenPkgPath) // may throw

val pnpmInstall = commandFactory.createCommand("pnpm", listOf("install", if (production) "--prod" else ""), path, false)
val pnpmInstall = commandFactory.createCommand("pnpm", if (production) listOf("install", "--prod") else listOf("install"), path, false)

// Attempt to use pnpm, but fall back on npm if it is not available.
if (pnpmInstall != null) {
Expand All @@ -375,7 +375,7 @@ class TSGenerator(
errorReporter.reportWarning(
"Falling back on npm. To prevent an accumulation of replicated dependencies, " +
"it is highly recommended to install pnpm globally (npm install -g pnpm).")
val npmInstall = commandFactory.createCommand("npm", listOf("install", if (production) "--production" else ""), path)
val npmInstall = commandFactory.createCommand("npm", if (production) listOf("install", "--production") else listOf("install"), path)

if (npmInstall == null) {
errorReporter.reportError(NO_NPM_MESSAGE)
Expand Down

0 comments on commit 6a60cb3

Please sign in to comment.