fable-compiler / Fable

F# to JavaScript, TypeScript, Python, Rust and Dart Compiler
http://fable.io/
MIT License
2.92k stars 300 forks source link

Where is the repo for fable-publish-utils ? #3307

Open davedawkins opened 1 year ago

davedawkins commented 1 year ago

I have a fix for handling missing .snupkg files, but get a 404 for the registered URL at https://www.npmjs.com/package/fable-publish-utils

Missing URL https://github.com/fable-compiler/fable-publish-utils

Code:


    let private tryFindFileWithExt (dir: string) (ext: string) =
        IO.Directory.GetFiles(dir) |> Seq.tryPick (fun path ->
            if path.EndsWith(ext)
            then Some(dir </> path)
            else None)

    let private findFileWithExt (dir: string) (ext: string) =
        tryFindFileWithExt dir ext
        |> function
            | Some x -> x
            | None -> failwithf "Cannot find %s in %s" ext dir
                // Looks like the `nuget push` command automatically detects the .snupkg symbols
                // We issue the command below just in case but with --skip-duplicate to prevent errors

                tryFindFileWithExt tempDir ".snupkg"
                |> function
                    | Some snupkg ->
                        runList ["dotnet nuget push"; snupkg; "-s nuget.org --skip-duplicate -k"; nugetKey]
                    | None ->
                        printfn "No .snupkg found - ignoring"
MangelMaxime commented 1 year ago

The repo is the one you reported the issue to.

The files are located at: https://github.com/fable-compiler/Fable/tree/1a825b60337dac281bd75c3f8aee83c3021f3d1e/src/Fable.PublishUtils