Skip to content

Commit 1651581

Browse files
author
Todd Anglin
authored
Merge pull request #35 from radeva/radeva/issue-34
fix: Issue #34 when `tns prepare` is called with --path option
2 parents 2b2d145 + b59c781 commit 1651581

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)