Skip to content

Commit

Permalink
Use separate Spago config for tests
Browse files Browse the repository at this point in the history
This will allow us to get the licenses of production dependencies only.
See my next commit.
  • Loading branch information
triallax committed Feb 9, 2023
1 parent 5c0e05f commit 68c0fb9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"build": "spago build && npm run esbuild && node copy",
"prepack": "spago build && npm run esbuild:node",
"server": "live-server web --open",
"test": "spago test"
"test": "spago -x test.dhall test"
},
"bugs": {
"url": "https://github.com/sharkdp/insect/issues"
Expand Down
7 changes: 2 additions & 5 deletions spago.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ Need help? See the following resources:
-}
{ name = "insect"
, dependencies =
[ "aff"
, "arrays"
[ "arrays"
, "bifunctors"
, "control"
, "decimals"
, "effect"
, "either"
, "foldable-traversable"
, "integers"
Expand All @@ -22,9 +20,8 @@ Need help? See the following resources:
, "prelude"
, "quantities"
, "strings"
, "test-unit"
, "tuples"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs", "test/**/*.purs" ]
, sources = [ "src/**/*.purs" ]
}
5 changes: 5 additions & 0 deletions test.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
let conf = ./spago.dhall
in conf // {
sources = conf.sources # [ "test/**/*.purs" ]
, dependencies = conf.dependencies # ["aff", "effect", "test-unit"]
}

0 comments on commit 68c0fb9

Please sign in to comment.