Skip to content

Commit b719b0a

Browse files
committed
Send module name instead of path to backend make.
1 parent 678196e commit b719b0a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Compiler/Backend.gren

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import FileSystem.Path as Path exposing (Path)
3636
import Compiler.PackageName as PackageName exposing (PackageName)
3737
import Compiler.Platform as Platform exposing (Platform)
3838
import Compiler.Outline as Outline exposing (Outline)
39+
import Compiler.ModuleName as ModuleName exposing (ModuleName)
3940
import SemanticVersion exposing (SemanticVersion)
4041
import ChildProcess exposing (Shell(..))
4142
import Json.Encode as Json
@@ -215,7 +216,7 @@ type alias MakeFlags =
215216
, output : Maybe MakeOutput
216217
, report : Maybe {}
217218
, projectPath : Path
218-
, entryPoints : Array Path
219+
, entryPoints : Array ModuleName
219220
, outline : Outline
220221
, rootSources : Dict String String
221222
, dependencies : Dict String { outline : Outline.PkgOutline, sources : Dict String String }
@@ -323,7 +324,7 @@ commandEncoder interactive pathToString command =
323324
, { key = "output", value = maybeEncoder makeOutputEncoder flags.output }
324325
, { key = "report-json", value = maybeToBool flags.report }
325326
, { key = "project-path", value = Json.string <| pathToString flags.projectPath }
326-
, { key = "entry-points", value = Json.array (Json.string << pathToString) flags.entryPoints }
327+
, { key = "entry-points", value = Json.array ModuleName.toJson flags.entryPoints }
327328
, { key = "project-outline", value = Outline.toJson flags.outline }
328329
, { key = "sources", value = Json.dict identity Json.string flags.rootSources }
329330
, { key = "dependencies", value = Json.dict identity depsToJson flags.dependencies }

0 commit comments

Comments
 (0)