Skip to content

Commit 87b2f75

Browse files
authored
Promote --js-es-module-import-map to stable (#3086)
1 parent 6503d2b commit 87b2f75

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

modules/cli/src/main/scala/scala/cli/commands/shared/ScalaJsOptions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ final case class ScalaJsOptions(
5151

5252
@Group(HelpGroup.ScalaJs.toString)
5353
@HelpMessage("A file relative to the root directory containing import maps for ES module imports")
54-
@Tag(tags.restricted)
54+
@Tag(tags.should)
5555
jsEsModuleImportMap: Option[String] = None,
5656

5757
@Group(HelpGroup.ScalaJs.toString)

website/docs/reference/scala-command/cli-options.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,12 @@ Emit source maps
750750

751751
Set the destination path of source maps
752752

753+
### `--js-es-module-import-map`
754+
755+
`SHOULD have` per Scala Runner specification
756+
757+
A file relative to the root directory containing import maps for ES module imports
758+
753759
### `--js-dom`
754760

755761
`SHOULD have` per Scala Runner specification

website/docs/reference/scala-command/runner-specification.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ Emit source maps
156156

157157
Set the destination path of source maps
158158

159+
**--js-es-module-import-map**
160+
161+
A file relative to the root directory containing import maps for ES module imports
162+
159163
**--js-dom**
160164

161165
Enable jsdom
@@ -933,6 +937,10 @@ Emit source maps
933937

934938
Set the destination path of source maps
935939

940+
**--js-es-module-import-map**
941+
942+
A file relative to the root directory containing import maps for ES module imports
943+
936944
**--js-dom**
937945

938946
Enable jsdom
@@ -1512,6 +1520,10 @@ Emit source maps
15121520

15131521
Set the destination path of source maps
15141522

1523+
**--js-es-module-import-map**
1524+
1525+
A file relative to the root directory containing import maps for ES module imports
1526+
15151527
**--js-dom**
15161528

15171529
Enable jsdom
@@ -2123,6 +2135,10 @@ Emit source maps
21232135

21242136
Set the destination path of source maps
21252137

2138+
**--js-es-module-import-map**
2139+
2140+
A file relative to the root directory containing import maps for ES module imports
2141+
21262142
**--js-dom**
21272143

21282144
Enable jsdom
@@ -2747,6 +2763,10 @@ Emit source maps
27472763

27482764
Set the destination path of source maps
27492765

2766+
**--js-es-module-import-map**
2767+
2768+
A file relative to the root directory containing import maps for ES module imports
2769+
27502770
**--js-dom**
27512771

27522772
Enable jsdom
@@ -3347,6 +3367,10 @@ Emit source maps
33473367

33483368
Set the destination path of source maps
33493369

3370+
**--js-es-module-import-map**
3371+
3372+
A file relative to the root directory containing import maps for ES module imports
3373+
33503374
**--js-dom**
33513375

33523376
Enable jsdom
@@ -3984,6 +4008,10 @@ Emit source maps
39844008

39854009
Set the destination path of source maps
39864010

4011+
**--js-es-module-import-map**
4012+
4013+
A file relative to the root directory containing import maps for ES module imports
4014+
39874015
**--js-dom**
39884016

39894017
Enable jsdom
@@ -4672,6 +4700,10 @@ Emit source maps
46724700

46734701
Set the destination path of source maps
46744702

4703+
**--js-es-module-import-map**
4704+
4705+
A file relative to the root directory containing import maps for ES module imports
4706+
46754707
**--js-dom**
46764708

46774709
Enable jsdom
@@ -5601,6 +5633,10 @@ Emit source maps
56015633

56025634
Set the destination path of source maps
56035635

5636+
**--js-es-module-import-map**
5637+
5638+
A file relative to the root directory containing import maps for ES module imports
5639+
56045640
**--js-dom**
56055641

56065642
Enable jsdom

0 commit comments

Comments
 (0)