Skip to content

Commit e778a0a

Browse files
committed
fix path
1 parent ea003ac commit e778a0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

generators/app/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function getModuleDir() {
3030
const localDir = join(__dirname, '..', '..', 'node_modules', 'highlight.js');
3131

3232
if (existsSync(localDir)) {
33-
return yarnDir;
33+
return localDir;
3434
}
3535

3636
throw 'Error: highlight.js not found in node_modules';
@@ -39,6 +39,7 @@ function getModuleDir() {
3939
function getLanguages() {
4040
const languagesPath = join(hljsDir, 'src', 'languages');
4141

42+
console.log(languagesPath);
4243
return globby(`${languagesPath}/*.js`).then( longPaths => {
4344
const languages = longPaths.map( longPath => {
4445
return basename(longPath, '.js');

0 commit comments

Comments
 (0)