Skip to content

Commit

Permalink
Add yarnrc file to source control
Browse files Browse the repository at this point in the history
This file missing was causing the latest build failure. We had a task to generate it with hard-coded contents, but we could instead check it into source control.
  • Loading branch information
shakuzen committed Oct 24, 2023
1 parent b05c415 commit 6daebb4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,5 @@ node/
.yarn/

build/
.yarnrc.yml

.frontend-gradle-plugin/
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
11 changes: 0 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,6 @@ frontend {
publishScript = 'run deploy'
}

tasks.register('setupYarnRc') {
doLast {
File file = new File(".yarnrc.yml")
if (!file.exists()) {
println("Creating .yarnrc.yml")
file.createNewFile()
file.text = "nodeLinker: node-modules"
}
}
}

tasks.register('yarnStart', RunYarn) {
dependsOn tasks.named('installNode')
dependsOn tasks.named('installFrontend')
Expand Down

0 comments on commit 6daebb4

Please sign in to comment.