From dfcc8125d22b969dd75bd983a141e888533eed28 Mon Sep 17 00:00:00 2001 From: Rusty Nelson Date: Mon, 21 Sep 2015 08:12:27 -0400 Subject: [PATCH 1/2] Update jasmine.js Removed install dependent path resolution. The assumption of the package structure limits the usage of this module to only vanilla node.js when it doesn't have to. By using dynamic resolution other structures may be utilized as well as allowing for the default structure to change without breaking implementation. --- tasks/lib/jasmine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/lib/jasmine.js b/tasks/lib/jasmine.js index 02c4ac2..1704e86 100644 --- a/tasks/lib/jasmine.js +++ b/tasks/lib/jasmine.js @@ -65,7 +65,7 @@ exports.init = function(grunt, phantomjs) { exports.copyTempFile(path.join(jasmineRequire.files.imagesDir, 'jasmine_favicon.png'), 'jasmine_favicon.png'); - exports.copyTempFile(path.join(__dirname, '/../../node_modules/es5-shim/es5-shim.js'), 'es5-shim.js'); + exports.copyTempFile(require.resolve( 'es5-shim/es5-shim.js' ), 'es5-shim.js'); var reporters = [ tempDir + '/reporter.js' From ba807dde2d5b47756fcd5b403f5f6832d2a011a3 Mon Sep 17 00:00:00 2001 From: Rusty Nelson Date: Thu, 24 Sep 2015 12:35:49 -0400 Subject: [PATCH 2/2] Removed whitespace --- tasks/lib/jasmine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/lib/jasmine.js b/tasks/lib/jasmine.js index 1704e86..96abf9c 100644 --- a/tasks/lib/jasmine.js +++ b/tasks/lib/jasmine.js @@ -65,7 +65,7 @@ exports.init = function(grunt, phantomjs) { exports.copyTempFile(path.join(jasmineRequire.files.imagesDir, 'jasmine_favicon.png'), 'jasmine_favicon.png'); - exports.copyTempFile(require.resolve( 'es5-shim/es5-shim.js' ), 'es5-shim.js'); + exports.copyTempFile(require.resolve('es5-shim/es5-shim.js'), 'es5-shim.js'); var reporters = [ tempDir + '/reporter.js'