Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

lodash's infinitely nested dependency graph collides with Windows path limit of 255 chars, fix tests that fail on windows #23

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/template.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var template = require('lodash.template');
var reInterpolate = require('lodash._reinterpolate');
var template = require('lodash-node/modern/utilities/template');
var reInterpolate = require('lodash-node/modern/internals/reInterpolate');

var forcedSettings = {
escape: /<%-([\s\S]+?)%>/g,
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"main": "./index.js",
"dependencies": {
"chalk": "~0.4.0",
"lodash.template": "~2.4.1",
"lodash._reinterpolate": "~2.4.1",
"lodash-node": "~2.4.1",
"optimist": "~0.6.0",
"vinyl": "~0.2.1",
"through": "~2.3.4",
Expand All @@ -19,7 +18,6 @@
"devDependencies": {
"mocha": "*",
"should": "*",
"lodash.templatesettings": "~2.4.1",
"event-stream": "~3.0.20"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion test/File.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('File()', function() {
file.path.should.equal(fname);
file.cwd.should.equal(__dirname);
file.base.should.equal(base);
file.relative.should.equal('fixtures/test.coffee');
file.relative.should.equal(path.join('fixtures','test.coffee'));
done();
});
});
2 changes: 1 addition & 1 deletion test/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('template()', function(){
});

it('should ignore modified templateSettings', function(done){
var templateSettings = require('lodash.templatesettings');
var templateSettings = require('lodash-node/modern/utilities/templateSettings');
templateSettings.interpolate = /\{\{([\s\S]+?)\}\}/g;

var opt = {
Expand Down