diff --git a/src/build.er b/src/build.er index 0e5cea2..4ef68f3 100644 --- a/src/build.er +++ b/src/build.er @@ -10,8 +10,11 @@ ac = import "ansicolor" {download_dependencies_on_demand!;} = import "download" {load_package_er_as_json!;} = import "metadata" -.compile_command! vers: Versions! = +.compile_command! vers: Versions!, cfg: Config = cmd as List!(Str, _) = !["erg", "compile"] + if! cfg.verbose, do!: + cmd.push! "--verbose" + cmd.push! "2" metadata = load_package_er_as_json!() if! metadata.get("py_command") isnot! None, do!: cmd.push! "--py-command" @@ -38,7 +41,7 @@ ac = import "ansicolor" .build! cfg: Config = start = time!() vers = download_dependencies_on_demand! cfg - cmd = .compile_command! vers + cmd = .compile_command! vers, cfg print! "\{ac.GREEN}Building\{ac.RESET}: \{cfg.project_root.stem}" metadata = load_package_er_as_json!() if! metadata.get("pre_build") isnot! None, do!: diff --git a/src/test.er b/src/test.er index 73a73ab..9981057 100644 --- a/src/test.er +++ b/src/test.er @@ -27,7 +27,7 @@ exc = import "exception" assert name in Str # TODO: filter out src dependencies vers = Versions!.from_package_lock_er!() - cmd = compile_command! if! vers != None, do! vers, do! Versions!.new!() + cmd = compile_command! if!(vers != None, do! vers, do! Versions!.new!()), cfg cmd.push! "--use-local-package" cmd.push! name