Skip to content

Commit b69ea7e

Browse files
committed
typescript: Stop running yarn install concurrently
Since `yarn install` doesn't support running concurrently lets call `synchronized` to avoid that.
1 parent 9b83cb3 commit b69ea7e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ metals.sbt
1010

1111
/typescript/**/node_modules
1212
/typescript/**/build
13+
/typescript/.yarn_installed

project/OpenApiTypescriptPlugin.scala

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ object OpenApiTypescriptPlugin extends AutoPlugin {
6464
}
6565

6666
def generateOpenapiTypescriptFile(appName: String): Unit = {
67-
runCommand("yarn --cwd typescript/types-backend/ install")
67+
synchronized {
68+
runCommand("yarn --cwd typescript/types-backend/ install")
69+
}
6870
runCommand(s"yarn --cwd typescript/types-backend/ generate-typescript $appName")
6971
}
7072

0 commit comments

Comments
 (0)