File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed 
scalajslib/src/mill/scalajslib Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ object Deps {
7373    val scalajsEnvNodejs = ivy"org.scala-js::scalajs-env-nodejs:1.4.0".withDottyCompat(scalaVersion)
7474    val scalajsEnvPhantomjs = ivy"org.scala-js::scalajs-env-phantomjs:1.0.0".withDottyCompat(scalaVersion)
7575    val scalajsEnvSelenium = ivy"org.scala-js::scalajs-env-selenium:1.1.1".withDottyCompat(scalaVersion)
76-     val scalajsSbtTestAdapter = ivy"org.scala-js:: scalajs-sbt-test-adapter :${scalaJsVersion}".withDottyCompat(scalaVersion) 
77-     val scalajsLinker = ivy"org.scala-js:: scalajs-linker :${scalaJsVersion}".withDottyCompat(scalaVersion) 
76+     val scalajsSbtTestAdapter = ivy"org.scala-js:scalajs-sbt-test-adapter_2.13 :${scalaJsVersion}"
77+     val scalajsLinker = ivy"org.scala-js:scalajs-linker_2.13 :${scalaJsVersion}"
7878    val scalajsImportMap = ivy"com.armanbilge::scalajs-importmap:0.1.1".withDottyCompat(scalaVersion)
7979  }
8080
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ object CodeGen {
128128    )
129129    val  segments  =  scriptFolderPath.relativeTo(projectRoot).segments
130130    val  instrument  =  new  ObjectDataInstrument (scriptCode)
131-     fastparse.parse(scriptCode, Parsers .CompilationUnit (_), instrument =  instrument)
131+     fastparse.parse(scriptCode, Parsers .CompilationUnit (using   _), instrument =  instrument)
132132    val  objectData  =  instrument.objectData
133133
134134    val  expectedParent  = 
@@ -186,6 +186,7 @@ object CodeGen {
186186      millTopLevelProjectRoot : os.Path 
187187  ):  String  =  {
188188    s """ import _root_.mill.runner.MillBuildRootModule 
189+        |import _root_.mill.main.TokenReaders.given 
189190       |@_root_.scala.annotation.nowarn 
190191       |object MillMiscInfo extends MillBuildRootModule.MillMiscInfo( 
191192       |   ${enclosingClasspath.map(p =>  literalize(p.toString))}, 
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ trait ScalaJSModule extends scalalib.ScalaModule { outer =>
7676
7777  def  scalaJSLinkerClasspath :  T [Loose .Agg [PathRef ]] =  T  {
7878    val  commonDeps  =  Seq (
79-       ivy " org.scala-js:: scalajs-sbt-test-adapter : ${scalaJSVersion()}" 
79+       ivy " org.scala-js:scalajs-sbt-test-adapter_2.13 : ${scalaJSVersion()}" 
8080    )
8181    val  scalajsImportMapDeps  =  scalaJSVersion() match  {
8282      case  s " 1. $n. $_"  if  n.toIntOption.exists(_ >=  16 ) &&  scalaJSImportMap().nonEmpty => 
@@ -92,7 +92,7 @@ trait ScalaJSModule extends scalalib.ScalaModule { outer =>
9292        )
9393      case  " 1"   => 
9494        Seq (
95-           ivy " org.scala-js:: scalajs-linker : ${scalaJSVersion()}" 
95+           ivy " org.scala-js:scalajs-linker_2.13 : ${scalaJSVersion()}" 
9696        ) ++  scalaJSJsEnvIvyDeps()
9797    }
9898    //  we need to use the scala-library of the currently running mill
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ object IntegrationTester {
104104       * Returns the raw text of the `.json` metadata file 
105105       */  
106106      def  text :  String  =  {
107-         val  Seq ((List (selector), _)) = 
107+         val  Seq ((Seq (selector), _)) = 
108108          mill.resolve.ParseArgs .apply(Seq (selector0), SelectMode .Separated ).getOrElse(??? )
109109
110110        val  segments  =  selector._2.value.flatMap(_.pathSegments)
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments