update baseRootPath to be happier with npm@3

npm@3 now flattens node_modules directory
This should be happy no matter where the module ends up
This commit is contained in:
Gavin Mogan 2015-09-24 23:45:12 -07:00
parent 76f0e8e672
commit 8a2fc142ba

View File

@ -6,7 +6,7 @@ let path = require('path');
let fs = require('fs');
// Set the base root directory for our files
let baseRootPath = path.join(__dirname, '../../node_modules/react-webpack-template');
let baseRootPath = path.dirname(require.resolve("react-webpack-template"));
module.exports = generator.Base.extend({