11import ReleaseTransformations ._
22import sbtcrossproject .CrossPlugin .autoImport .{crossProject , CrossType }
3+ import org .scalajs .jsenv .nodejs .NodeJSEnv
34
45def ScalaCheck = Def .setting(" org.scalacheck" %%% " scalacheck" % " 1.14.3" )
56def ScalaProps = Def .setting(" com.github.scalaprops" %%% " scalaprops" % " 0.8.0" )
@@ -103,7 +104,7 @@ lazy val core = crossProject(JSPlatform, JVMPlatform)
103104 Global / scalaJSStage := FastOptStage ,
104105 parallelExecution := false ,
105106 coverageEnabled := false ,
106- jsEnv := new org.scalajs.jsenv.nodejs. NodeJSEnv ( ))
107+ jsEnv := new NodeJSEnv ( NodeJSEnv . Config ().withArgs( List ( " --dns-result-order=ipv4first " )) ))
107108
108109lazy val coreJVM = core.jvm
109110lazy val coreJS = core.js
@@ -120,7 +121,7 @@ lazy val check = crossProject(JSPlatform, JVMPlatform)
120121 Global / scalaJSStage := FastOptStage ,
121122 parallelExecution := false ,
122123 coverageEnabled := false ,
123- jsEnv := new org.scalajs.jsenv.nodejs. NodeJSEnv ( ))
124+ jsEnv := new NodeJSEnv ( NodeJSEnv . Config ().withArgs( List ( " --dns-result-order=ipv4first " )) ))
124125
125126lazy val checkJVM = check.jvm
126127lazy val checkJS = check.js
@@ -141,7 +142,7 @@ lazy val props = crossProject(JSPlatform, JVMPlatform)
141142 .jsSettings(
142143 Global / scalaJSStage := FastOptStage ,
143144 coverageEnabled := false ,
144- jsEnv := new org.scalajs.jsenv.nodejs. NodeJSEnv ( ))
145+ jsEnv := new NodeJSEnv ( NodeJSEnv . Config ().withArgs( List ( " --dns-result-order=ipv4first " )) ))
145146
146147lazy val propsJVM = props.jvm
147148lazy val propsJS = props.js
@@ -159,7 +160,7 @@ lazy val tests = crossProject(JSPlatform, JVMPlatform)
159160 Global / scalaJSStage := FastOptStage ,
160161 parallelExecution := false ,
161162 coverageEnabled := false ,
162- jsEnv := new org.scalajs.jsenv.nodejs. NodeJSEnv ( ))
163+ jsEnv := new NodeJSEnv ( NodeJSEnv . Config ().withArgs( List ( " --dns-result-order=ipv4first " )) ))
163164
164165lazy val testsJVM = tests.jvm
165166lazy val testsJS = tests.js
0 commit comments