File tree Expand file tree Collapse file tree 5 files changed +17
-10
lines changed
Expand file tree Collapse file tree 5 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Target.create "Clean" (fun _ ->
2121
2222Target.create " Build" ( fun _ ->
2323 Shell.mkdir buildPath
24- run dotnet $" run -c Release -p {cliPath} -- --lang Python --exclude Fable.Core --outDir {buildPath}/lib " srcPath
24+ run dotnet $" run -c Release -p {cliPath} -- --lang Python --exclude Fable.Core --outDir {buildPath}/stdlib " srcPath
2525)
2626
2727Target.create " Run" ( fun _ ->
@@ -39,8 +39,13 @@ Target.create "Test" (fun _ ->
3939 run pytest $" {buildPath}/tests" " "
4040)
4141
42+ Target.create " Pack" ( fun _ ->
43+ run dotnet " pack" srcPath
44+ )
45+
4246Target.create " Format" ( fun _ ->
43- run dotnet " fantomas . -r" " src"
47+ run dotnet " fantomas . -r" srcPath
48+ run dotnet " fantomas . -r" testsPath
4449)
4550
4651open Fake.Core .TargetOperators
@@ -54,6 +59,9 @@ let dependencies = [
5459
5560 " Build"
5661 ==> " Test"
62+
63+ " Build"
64+ ==> " Pack"
5765]
5866
5967[<EntryPoint>]
Original file line number Diff line number Diff line change @@ -124,4 +124,4 @@ type IExports =
124124let builtins : IExports = nativeOnly
125125
126126[<Emit( " __name__" ) >]
127- let __name__ : string = nativeOnly
127+ let __name__ : string = nativeOnly
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ open Fable.Core
55// fsharplint:disable MemberNames
66
77type IExports =
8- abstract getenv: key : string -> string option
9- abstract getenv: key : string * ``default`` : string -> string
10- abstract putenv: key : string * value : string -> unit
8+ abstract getenv : key : string -> string option
9+ abstract getenv : key : string * ``default`` : string -> string
10+ abstract putenv : key : string * value : string -> unit
1111
1212
1313[<ImportAll( " os" ) >]
14- let os : IExports = nativeOnly
14+ let os : IExports = nativeOnly
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ license = "MIT"
88
99[tool .poetry .dependencies ]
1010python = " ^3.8"
11- fable-library = " ^0.0.1 "
11+ fable-library = " ^0.3.0 "
1212
1313[tool .poetry .dev-dependencies ]
1414
Original file line number Diff line number Diff line change @@ -8,5 +8,4 @@ let ``test print works`` () =
88 let result = builtins.print " Hello, world!"
99 result |> equal ()
1010
11- let ``test __name__ works`` () =
12- __ name__ |> equal " tests.test_builtins"
11+ let ``test __name__ works`` () = __ name__ |> equal " tests.test_builtins"
You can’t perform that action at this time.
0 commit comments