Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
Removed nunjucks from dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronelliott committed Sep 29, 2015
1 parent ec3bd4a commit 01f2ea1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

var extend = require('extend'),
path = require('path'),
prequire = require('parent-require'),
render = require('./renderer');

module.exports = function($opts) {
Expand All @@ -17,7 +18,7 @@ module.exports = function($opts) {
}, $opts);

return function($$resolver) {
var nunjucks = $$resolver('$nunjucks') || require('nunjucks');
var nunjucks = $$resolver('$nunjucks') || prequire('nunjucks');

if ($opts.enabled) {
$opts.env = $opts.env || nunjucks.configure($opts.options);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"coveralls": "^2.11.4",
"istanbul": "^0.3.17",
"mocha": "^2.2.5",
"nunjucks": "^2.1.0",
"proxyquire": "^1.7.1",
"reflekt": "^0.3.9",
"should": "^7.0.4",
Expand All @@ -35,6 +36,6 @@
"dependencies": {
"extend": "^3.0.0",
"is": "^3.0.1",
"nunjucks": "^1.3.4"
"parent-require": "^1.0.0"
}
}

0 comments on commit 01f2ea1

Please sign in to comment.