You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by br...@apache.org on 2019/12/22 16:38:55 UTC

[cordova-windows] 02/05: Fix path to winjs dependency (#331)

This is an automated email from the ASF dual-hosted git repository.

brodybits pushed a commit to branch brodybits-patchwip1
in repository https://gitbox.apache.org/repos/asf/cordova-windows.git

commit 9622ae5c09914550ab3e40af79eee116b897aacf
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Fri Apr 26 14:29:23 2019 +0200

    Fix path to winjs dependency (#331)
    
    Fixes #326
---
 bin/lib/create.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/lib/create.js b/bin/lib/create.js
index 0417e0e..6919145 100644
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -91,7 +91,7 @@ module.exports.create = function (destinationDir, config, options) {
     // Copy base.js into the target project directory
     var destinationDirectory = path.join(projectPath, 'platform_www', 'WinJS', 'js');
     var destBaseJsPath = path.join(destinationDirectory, 'base.js');
-    var srcBaseJsPath = path.join(root, 'node_modules', 'winjs', 'js', 'base.js');
+    var srcBaseJsPath = require.resolve('winjs/js/base');
     recursiveCreateDirectory(destinationDirectory);
     shell.cp('-f', srcBaseJsPath, destBaseJsPath);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org