hexo-cli
hexo-cli copied to clipboard
Add support for pnpm/package.yaml
Check List
- [X] I have already read README.
- [X] I have already searched existing issues.
- [X] I have already searched existing pull requrests.
Feature Request
Currently only a repo with a package.json present can be recognized as a valid Hexo blog repo. i.e. in an unrecognized directory, I need to run hexo init first. It would be great to take package.yaml, which is used by pnpm into consideration.
Additional context
https://github.com/hexojs/hexo-cli/blob/267b1491ec91a915d7479d06cf7095d98a3e88d2/lib/hexo.ts#L75
It might have something to do with this line.