Skip to content

Commit

Permalink
Merge pull request #470 from sanctuary-js/davidchambers/require
Browse files Browse the repository at this point in the history
hide doctest-specific imports from build tools
  • Loading branch information
davidchambers authored Dec 23, 2017
2 parents 8a8e7e7 + df8442e commit 5b32aa4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,12 @@

/* istanbul ignore if */
if (typeof __doctest !== 'undefined') {
/* global __doctest:false */
/* eslint-disable no-unused-vars */
var _List = require('./test/internal/List');
var _List = __doctest.require('./test/internal/List');
var Cons = _List.Cons;
var Nil = _List.Nil;
var Sum = require('./test/internal/Sum');
var Sum = __doctest.require('./test/internal/Sum');
/* eslint-enable no-unused-vars */
env = Z.concat(env, [_List.Type($.Unknown), Sum.Type]);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"devDependencies": {
"browserify": "13.1.x",
"doctest": "0.12.x",
"doctest": "0.13.x",
"eslint": "4.9.x",
"fantasy-land": "3.4.0",
"istanbul": "0.4.x",
Expand Down

0 comments on commit 5b32aa4

Please sign in to comment.