Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit bd817c0

Browse files
author
exoego
committed
Prepare Scala.js cross publishing
1 parent 05c3772 commit bd817c0

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jdk:
1010
- openjdk11
1111

1212
env:
13-
- TRAVIS_NODE_VERSION="12.10.0" JOB_NAME="test"
13+
global:
14+
- TRAVIS_NODE_VERSION="12.10.0" JOB_NAME="test"
1415
matrix:
1516
- SCALAJS_VERSION="0.6.32"
1617
- SCALAJS_VERSION="1.0.0"

project/MySettings.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import org.scalajs.sbtplugin.ScalaJSPlugin.AutoImport.{ModuleKind, scalaJSModuleKind}
1+
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
22
import sbt._
33
import sbt.Keys._
44
import sbtrelease.ReleasePlugin.autoImport._
@@ -57,7 +57,10 @@ object MySettings {
5757

5858
lazy val commonScalaJsSettings = Seq(
5959
scalacOptions += "-P:scalajs:sjsDefinedByDefault",
60-
scalaJSModuleKind := ModuleKind.CommonJSModule,
60+
scalaJSLinkerConfig ~= {
61+
val isCI = Option(System.getenv("CI")).exists(_.contains("true"))
62+
_.withModuleKind(ModuleKind.CommonJSModule)
63+
},
6164
logBuffered in Test := true
6265
)
6366

script/release.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
3+
console.log("AYY! !");

0 commit comments

Comments
 (0)