From 7c74f690857cafc6dc7f1acd2641770d8497bc98 Mon Sep 17 00:00:00 2001 From: Adrian Sieber Date: Fri, 19 Mar 2021 22:48:39 +0000 Subject: [PATCH] Add the extra spago file "test.dhall" for testing --- package.json | 2 +- spago.dhall | 5 +---- test.dhall | 6 ++++++ 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 test.dhall diff --git a/package.json b/package.json index d774a58..06ab484 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "contributors": [], "main": "main.js", "scripts": { - "test": "spago test", + "test": "spago -x test.dhall test", "postinstall": "spago build" }, "devDependencies": {}, diff --git a/spago.dhall b/spago.dhall index 475de22..15a1f3f 100644 --- a/spago.dhall +++ b/spago.dhall @@ -3,17 +3,14 @@ , dependencies = [ "argonaut-codecs" , "argonaut-core" - , "console" , "effect" , "foreign" , "functions" , "ordered-collections" - , "psci-support" - , "spec" , "unsafe-coerce" ] , packages = ./packages.dhall , sources = - [ "src/**/*.purs", "test/**/*.purs" ] + [ "src/**/*.purs" ] } diff --git a/test.dhall b/test.dhall new file mode 100644 index 0000000..046e038 --- /dev/null +++ b/test.dhall @@ -0,0 +1,6 @@ +let conf = ./spago.dhall + +in conf // { + sources = conf.sources # [ "test/**/*.purs" ], + dependencies = conf.dependencies # [ "console", "psci-support", "spec" ] +}