@@ -62,7 +62,7 @@ module Util =
6262 runFableWithArgs projectDir []
6363
6464 let runMocha testDir =
65- runNpmScript " mocha" [ $" {testDir} -r esm - -reporter dot -t 10000" ]
65+ runNpmScript " mocha" [ $" {testDir} --reporter dot -t 10000" ]
6666
6767 let resolveDir dir =
6868 __ SOURCE_ DIRECTORY__ </> dir
@@ -131,8 +131,7 @@ let buildLibraryWithOptions (opts: {| watch: bool |}) =
131131 runInDir baseDir " npm install"
132132 makeDirRecursive buildDir
133133
134- // package.json is causing issues so disable it for now #2549
135- // copyFile (projectDir </> "package.json") buildDir
134+ copyFile ( projectDir </> " package.json" ) buildDir
136135
137136 if opts.watch then
138137 Async.Parallel [
@@ -414,7 +413,7 @@ let testRepos() =
414413 let repos = [
415414 " https://github.com/alfonsogarciacaro/FsToolkit.ErrorHandling:update-fable-3" , " npm i && npm test"
416415 " https://github.com/fable-compiler/fable-promise:master" , " npm i && npm test"
417- " https://github.com/alfonsogarciacaro/Thoth.Json:nagareyama" , " dotnet paket restore && npm i && dotnet fable tests -o tests/bin --run mocha -r esm tests/bin"
416+ " https://github.com/alfonsogarciacaro/Thoth.Json:nagareyama" , " dotnet paket restore && npm i && dotnet fable tests -o tests/bin --run mocha tests/bin"
418417 " https://github.com/alfonsogarciacaro/FSharp.Control.AsyncSeq:nagareyama" , " cd tests/fable && npm i && npm test"
419418 " https://github.com/alfonsogarciacaro/Fable.Extras:nagareyama" , " dotnet paket restore && npm i && npm test"
420419 " https://github.com/alfonsogarciacaro/Fable.Jester:nagareyama" , " npm i && npm test"
0 commit comments