@@ -36,6 +36,7 @@ import FileSystem.Path as Path exposing (Path)
36
36
import Compiler.PackageName as PackageName exposing (PackageName)
37
37
import Compiler.Platform as Platform exposing (Platform)
38
38
import Compiler.Outline as Outline exposing (Outline)
39
+ import Compiler.ModuleName as ModuleName exposing (ModuleName)
39
40
import SemanticVersion exposing (SemanticVersion)
40
41
import ChildProcess exposing (Shell(..))
41
42
import Json.Encode as Json
@@ -215,7 +216,7 @@ type alias MakeFlags =
215
216
, output : Maybe MakeOutput
216
217
, report : Maybe {}
217
218
, projectPath : Path
218
- , entryPoints : Array Path
219
+ , entryPoints : Array ModuleName
219
220
, outline : Outline
220
221
, rootSources : Dict String String
221
222
, dependencies : Dict String { outline : Outline.PkgOutline, sources : Dict String String }
@@ -323,7 +324,7 @@ commandEncoder interactive pathToString command =
323
324
, { key = "output", value = maybeEncoder makeOutputEncoder flags.output }
324
325
, { key = "report-json", value = maybeToBool flags.report }
325
326
, { 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 }
327
328
, { key = "project-outline", value = Outline.toJson flags.outline }
328
329
, { key = "sources", value = Json.dict identity Json.string flags.rootSources }
329
330
, { key = "dependencies", value = Json.dict identity depsToJson flags.dependencies }
0 commit comments