Skip to content

Commit e948d35

Browse files
authored
Fixed NexT package.json path on Windows. (#343)
* Fixed NexT `package.json` path on Windows. Fix for #298. * Merge branch 'fix/windows-backslashes'
1 parent 3685052 commit e948d35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/helpers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ hexo.extend.helper.register('hexo_env', function(type) {
77
});
88

99
hexo.extend.helper.register('next_env', function(type) {
10-
var env = require('../package.json');
10+
var path = require('path');
11+
var env = require(path.normalize('../package.json'));
1112
return env[type];
1213
});
1314

0 commit comments

Comments
 (0)