Skip to content

Commit

Permalink
Fixed NexT package.json path on Windows. (theme-next#343)
Browse files Browse the repository at this point in the history
* Fixed NexT `package.json` path on Windows.

Fix for theme-next#298.

* Merge branch 'fix/windows-backslashes'
  • Loading branch information
ivan-nginx authored Jul 4, 2018
1 parent 0e59d70 commit 99c5151
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ hexo.extend.helper.register('hexo_env', function(type) {
});

hexo.extend.helper.register('next_env', function(type) {
var env = require('../package.json');
var path = require('path');
var env = require(path.normalize('../package.json'));
return env[type];
});

Expand Down

0 comments on commit 99c5151

Please sign in to comment.