Skip to content

Commit

Permalink
Add back fable-libray/package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsogarciacaro committed Sep 30, 2021
1 parent f4d2ee7 commit bd63a98
Show file tree
Hide file tree
Showing 7 changed files with 146 additions and 220 deletions.
7 changes: 3 additions & 4 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module Util =
runFableWithArgs projectDir []

let runMocha testDir =
runNpmScript "mocha" [$"{testDir} -r esm --reporter dot -t 10000"]
runNpmScript "mocha" [$"{testDir} --reporter dot -t 10000"]

let resolveDir dir =
__SOURCE_DIRECTORY__ </> dir
Expand Down Expand Up @@ -131,8 +131,7 @@ let buildLibraryWithOptions (opts: {| watch: bool |}) =
runInDir baseDir "npm install"
makeDirRecursive buildDir

// package.json is causing issues so disable it for now #2549
// copyFile (projectDir </> "package.json") buildDir
copyFile (projectDir </> "package.json") buildDir

if opts.watch then
Async.Parallel [
Expand Down Expand Up @@ -414,7 +413,7 @@ let testRepos() =
let repos = [
"https://github.com/alfonsogarciacaro/FsToolkit.ErrorHandling:update-fable-3", "npm i && npm test"
"https://github.com/fable-compiler/fable-promise:master", "npm i && npm test"
"https://github.com/alfonsogarciacaro/Thoth.Json:nagareyama", "dotnet paket restore && npm i && dotnet fable tests -o tests/bin --run mocha -r esm tests/bin"
"https://github.com/alfonsogarciacaro/Thoth.Json:nagareyama", "dotnet paket restore && npm i && dotnet fable tests -o tests/bin --run mocha tests/bin"
"https://github.com/alfonsogarciacaro/FSharp.Control.AsyncSeq:nagareyama", "cd tests/fable && npm i && npm test"
"https://github.com/alfonsogarciacaro/Fable.Extras:nagareyama", "dotnet paket restore && npm i && npm test"
"https://github.com/alfonsogarciacaro/Fable.Jester:nagareyama", "npm i && npm test"
Expand Down
Loading

0 comments on commit bd63a98

Please sign in to comment.