@@ -666,19 +666,19 @@ To use a pre-installed Node.js instance, add the following lines to your `build.
666
666
<tab title =" Kotlin " group-key =" kotlin " >
667
667
668
668
``` kotlin
669
- project.plugins.withType( org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsPlugin ) {
669
+ project.plugins.withType< org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsPlugin > {
670
670
// Set to `true` for default behavior
671
- project.extensions.getByType( org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsEnvSpec ).download = false
671
+ project.the < org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsEnvSpec > ( ).download = false
672
672
}
673
673
```
674
674
675
675
</tab >
676
676
<tab title =" Groovy " group-key =" groovy " >
677
677
678
678
``` groovy
679
- project.plugins.withType< org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsPlugin> {
679
+ project.plugins.withType( org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsPlugin) {
680
680
// Set to `true` for default behavior
681
- project.the< org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsEnvSpec>( ).download = false
681
+ project.extensions.getByType( org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsEnvSpec).download = false
682
682
}
683
683
```
684
684
@@ -807,7 +807,7 @@ To use these options, update `build.gradle(.kts)` as follows:
807
807
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnLockMismatchReport
808
808
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
809
809
810
- rootProject.plugins.withType( org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin :: class .java) {
810
+ rootProject.plugins.withType< org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin > {
811
811
rootProject.the<YarnRootExtension >().yarnLockMismatchReport =
812
812
YarnLockMismatchReport .WARNING // NONE | FAIL
813
813
rootProject.the<YarnRootExtension >().reportNewYarnLock = false // true
0 commit comments