anchor.diff:      |> DeleteFiles
   
   let nugetRestore baseDir () =
  -    Util.run (baseDir </> "Fable.Core") dotnetExePath "restore"
  -    Util.run (baseDir </> "Fable.Compiler") dotnetExePath "restore"
  -    Util.run (baseDir </> "dotnet-fable") dotnetExePath "restore"
  +    run (baseDir </> "Fable.Core") dotnetExePath "restore"
  +    run (baseDir </> "Fable.Compiler") dotnetExePath "restore"
  +    run (baseDir </> "dotnet-fable") dotnetExePath "restore"
   
   let buildCLI baseDir isRelease () =
       sprintf "publish -o ../../../%s -c %s -v n"
           cliBuildDir (if isRelease then "Release" else "Debug")
  -    |> Util.run (baseDir </> "dotnet-fable") dotnetExePath
  +    |> run (baseDir </> "dotnet-fable") dotnetExePath
   
   let buildCoreJS () =
  -    Yarn.install __SOURCE_DIRECTORY__
  -    Npm.script __SOURCE_DIRECTORY__ "tslint" [sprintf "--project %s" coreJsSrcDir]
  -    Npm.script __SOURCE_DIRECTORY__ "tsc" [sprintf "--project %s" coreJsSrcDir]
  +    Yarn.install CWD
  +    Yarn.run CWD "tslint" (sprintf "--project %s" coreJsSrcDir)
  +    Yarn.run CWD "tsc" (sprintf "--project %s" coreJsSrcDir)
   
   let buildSplitter () =
  -    let buildDir = __SOURCE_DIRECTORY__ </> "src/js/fable-splitter"
  -    Yarn.install __SOURCE_DIRECTORY__
  -    // Npm.script __SOURCE_DIRECTORY__ "tslint" [sprintf "--project %s" buildDir]
  -    Npm.script __SOURCE_DIRECTORY__ "tsc" [sprintf "--project %s" buildDir]
  +    let buildDir = CWD </> "src/js/fable-splitter"
  +    Yarn.install CWD
  +    // Yarn.run CWD "tslint" [sprintf "--project %s" buildDir]
  +    Yarn.run CWD "tsc" (sprintf "--project %s" buildDir)
   
   let buildCore isRelease () =
       let config = if isRelease then "Release" else "Debug"
       sprintf "build -c %s" config
  -    |> Util.run coreSrcDir dotnetExePath
  +    |> run coreSrcDir dotnetExePath
   
       CreateDir coreBuildDir
       FileUtils.cp (sprintf "%s/bin/%s/netstandard1.6/Fable.Core.dll" coreSrcDir config) coreBuildDir
  
positive.code: Target "RunTestsJS" runTestsJS
  
  Target "PublishPackages" (fun () ->
      let baseDir = __SOURCE_DIRECTORY__ </> "src"
      let packages = [
          // Nuget packages
          Some buildCoreJS, "dotnet/Fable.Core/Fable.Core.fsproj"
  
negative.code: 
  let dotnetcliVersion = "2.0.2"
  let mutable dotnetExePath = environVarOrDefault "DOTNET" "dotnet"
  
  let CWD = __SOURCE_DIRECTORY__
  let cliBuildDir = "build/fable"
  let coreBuildDir = "build/fable-core"
  let coreSrcDir = "src/dotnet/Fable.Core"
  