Skip to content

Commit

Permalink
更新node_modules查找逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
hefangshi authored Jun 15, 2016
1 parent 62fa924 commit c30fd35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/yog2
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ cli.launch({
fis = require(env.modulePath);
}
fis.IS_FIS3 = true;
fis.set('system.localNPMFolder', path.join(env.cwd, 'node_modules/yog2'));
fis.set('system.globalNPMFolder', path.dirname(__dirname));
fis.require.paths.unshift(path.join(env.cwd, 'node_modules'));
fis.require.paths.push(path.join(path.dirname(__dirname), 'node_modules'));
fis.cli.run(argv, env);
});

0 comments on commit c30fd35

Please sign in to comment.