Skip to content

Commit b59c781

Browse files
Veselina RadevaVeselina Radeva
authored andcommitted
fix: Issue #34 when tns prepare is called with paths parameter
1 parent 2b2d145 commit b59c781

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/importer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var path = require("path");
33
module.exports = function(url, prev, done) {
44
if (url[0] === '~' && url[1] !== '/') {
55
// Resolve "~" paths to node_modules
6-
url = path.resolve('node_modules', url.substr(1));
6+
url = path.resolve(__dirname, "../../../node_modules", url.substr(1));
77
} else if (url[0] === '~' && url[1] === '/') {
88
// Resolve "~/" paths to the app root
99
url = path.resolve(__dirname, "../../../app/"+ url.substr(2));

0 commit comments

Comments
 (0)