@@ -55,12 +55,11 @@ let setup () =
55
55
56
56
Target.create " Restore" <| fun _ ->
57
57
DotNet.restore
58
- ( DotNet.Options.withWorkingDirectory __ SOURCE _ DIRECTORY __)
58
+ id
59
59
" ts2ocaml.sln"
60
60
61
61
Target.create " YarnInstall" <| fun _ ->
62
- Yarn.installFrozenLockFile ( fun ``params`` ->
63
- { `` params `` with WorkingDirectory = " ./" })
62
+ Yarn.installFrozenLockFile id
64
63
65
64
Target.create " Prepare" ignore
66
65
@@ -132,7 +131,7 @@ module Test =
132
131
" safe" , !! " node_modules/@types/yargs-parser/index.d.ts" , [];
133
132
" safe" , !! " node_modules/@types/yargs/index.d.ts" , [ " --rec-module=off" ];
134
133
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" ];
136
135
]
137
136
138
137
for preset, package, additionalOptions in packages do
@@ -234,9 +233,17 @@ module Publish =
234
233
235
234
" Build" ?=> " Test" ?=> " Publish"
236
235
236
+ // Utility targets
237
+
238
+ module Utility =
239
+ let setup () =
240
+ Target.create " UpdateBindings" <| fun _ -> BindingUpdater.run ()
241
+ " Prepare" ==> " UpdateBindings"
242
+
237
243
[<EntryPoint>]
238
244
let main argv =
239
- Shell.cd __ SOURCE_ DIRECTORY__
245
+ // ensure working at the repository root
246
+ Shell.cd ( Path.combine __ SOURCE_ DIRECTORY__ " .." )
240
247
241
248
argv
242
249
|> Array.toList
@@ -247,6 +254,7 @@ let main argv =
247
254
setup ()
248
255
Test.setup ()
249
256
Publish.setup ()
257
+ Utility.setup ()
250
258
251
259
Target.create " All" ignore
252
260
" Prepare"
0 commit comments