Skip to content

Commit

Permalink
Merge pull request #197 from PhilippMDoerner/bring-backwards-compatib…
Browse files Browse the repository at this point in the history
…ility-back

#196 Put taskrequires blocks behind a when-block
  • Loading branch information
moigagoo committed Oct 30, 2023
2 parents 69ca1e0 + 5d7051b commit 0994e31
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions norm.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ skipDirs = @["tests", "htmldocs"]

requires "nim >= 1.4.0", "lowdb >= 0.2.1"

taskRequires "setupBook", "nimib >= 0.3.8", "nimibook >= 0.3.1"
taskRequires "benchmark", "benchy >= 0.0.1"

when NimMajor >= 2:
taskRequires "setupBook", "nimib >= 0.3.8", "nimibook >= 0.3.1"
taskRequires "benchmark", "benchy >= 0.0.1"
else:
# Task Dependencies
requires "nimib >= 0.3.8"
requires "nimibook >= 0.3.1"
requires "benchy >= 0.0.1"

# Tasks

Expand Down

0 comments on commit 0994e31

Please sign in to comment.