Skip to content

Commit

Permalink
Use junction symlink type on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
coreh committed Jan 3, 2013
1 parent 48efa43 commit eb81178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports = function install(options, callback) {
fs.mkdirSync(path.join(dotrnpm, 'node_modules'));
fs.symlinkSync('.rnpm/node_modules',
path.join(cwd, dir, 'node_modules'),
'dir');
'junction');
// avoid npm warning, and provide some info
// on the nature of the `.rnpm` dir
fs.writeFileSync(path.join(dotrnpm, 'Readme.md'),
Expand All @@ -61,7 +61,7 @@ module.exports = function install(options, callback) {
if (!fs.existsSync(path.join(cwd, dir, 'node_modules'))) {
fs.symlinkSync('.rnpm/node_modules',
path.join(cwd, dir, 'node_modules'),
'dir');
'junction');
}
}

Expand Down

0 comments on commit eb81178

Please sign in to comment.