@@ -55,12 +55,11 @@ let setup () =
5555
5656 Target.create " Restore" <| fun _ ->
5757 DotNet.restore
58- ( DotNet.Options.withWorkingDirectory __ SOURCE _ DIRECTORY __)
58+ id
5959 " ts2ocaml.sln"
6060
6161 Target.create " YarnInstall" <| fun _ ->
62- Yarn.installFrozenLockFile ( fun ``params`` ->
63- { `` params `` with WorkingDirectory = " ./" })
62+ Yarn.installFrozenLockFile id
6463
6564 Target.create " Prepare" ignore
6665
@@ -132,7 +131,7 @@ module Test =
132131 " safe" , !! " node_modules/@types/yargs-parser/index.d.ts" , [];
133132 " safe" , !! " node_modules/@types/yargs/index.d.ts" , [ " --rec-module=off" ];
134133
135- " minimal" , !! " node_modules/@types/vscode/index.d.ts" , [ " --safe-arity=full " ; " -- readable-names" ];
134+ " minimal" , !! " node_modules/@types/vscode/index.d.ts" , [ " --readable-names" ];
136135 ]
137136
138137 for preset, package, additionalOptions in packages do
@@ -234,9 +233,17 @@ module Publish =
234233
235234 " Build" ?=> " Test" ?=> " Publish"
236235
236+ // Utility targets
237+
238+ module Utility =
239+ let setup () =
240+ Target.create " UpdateBindings" <| fun _ -> BindingUpdater.run ()
241+ " Prepare" ==> " UpdateBindings"
242+
237243[<EntryPoint>]
238244let main argv =
239- Shell.cd __ SOURCE_ DIRECTORY__
245+ // ensure working at the repository root
246+ Shell.cd ( Path.combine __ SOURCE_ DIRECTORY__ " .." )
240247
241248 argv
242249 |> Array.toList
@@ -247,6 +254,7 @@ let main argv =
247254 setup ()
248255 Test.setup ()
249256 Publish.setup ()
257+ Utility.setup ()
250258
251259 Target.create " All" ignore
252260 " Prepare"
0 commit comments