Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,19 @@ lazy val schemas_lib =
createNpmProject := {
val npmDir = target.value / "npm"

val odbSchemaFile =
val odbSchemaFile: File =
(Compile / clueSourceDirectory).value / "resources" / "lucuma" / "schemas" / "ObservationDB.graphql"
val navigateSchemaFile =
val navigateSchemaFile: File =
(Compile / crossProjectBaseDirectory).value / "../../navigate/web/server/src/main/resources/navigate.graphql"
val semVerWithPrerelease: String = // Just keep X.Y.Z from the latest tag
gitDescribedVersion.value.getOrElse("0.0.0").takeWhile(c => c != '+' && c != '-') +
"-" + version.value

IO.write(
npmDir / "package.json",
s"""|{
| "name": "lucuma-schemas",
| "version": "${gitDescribedVersion.value.getOrElse("0.0.0")}",
| "version": "$semVerWithPrerelease",
| "license": "${licenses.value.head._1}",
| "exports": {
| "./odb": "./${odbSchemaFile.getName}",
Expand Down
2 changes: 1 addition & 1 deletion project/Versions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ object Versions {
val pprint = "0.9.4"
val pureConfig = "0.17.9"
val sbtBuildInfo = "0.13.1"
val sbtLucuma = "0.14.6"
val sbtLucuma = "0.14.7"
val sbtRevolver = "0.10.0"
val scalaCollectionContrib = "0.4.0"
val scalaJsDom = "2.8.1"
Expand Down
Loading