Skip to content

Commit

Permalink
chore(hexo): treat hexo-front-matter-defaults as a peer dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ourai committed Apr 12, 2024
1 parent fad6d4a commit 3b87399
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .knosys/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function copyHexoFiles() {

copyThemeAssets(`${hexoDistRoot}/source`, true);

const pkgFields = pick(require(`${prjRoot}/package.json`), ['version', 'description', 'repository', 'author', 'license', 'bugs', 'homepage', 'dependencies']);
const pkgFields = pick(require(`${prjRoot}/package.json`), ['version', 'description', 'repository', 'author', 'license', 'bugs', 'homepage', 'dependencies', 'peerDependencies']);

saveData(`${hexoDistRoot}/package.json`, JSON.stringify({
name: 'hexo-theme-lime',
Expand Down
13 changes: 3 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ourai/lime",
"version": "0.0.0-alpha.2",
"version": "0.0.0-alpha.3",
"description": "Simple, readable, responsive theme for blogs, personal websites and API docs",
"private": true,
"main": "index.js",
Expand All @@ -14,8 +14,8 @@
"url": "https://github.com/ourai/lime/issues"
},
"homepage": "https://ourai.github.io/lime/",
"dependencies": {
"hexo-front-matter-defaults": "0.0.0"
"peerDependencies": {
"hexo-front-matter-defaults": "~0.0.0"
},
"devDependencies": {
"ksio": "0.0.2"
Expand Down
13 changes: 13 additions & 0 deletions src/hexo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/hexo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"dependencies": {
"hexo": "^6.3.0",
"hexo-front-matter-defaults": "0.0.0",
"hexo-renderer-coffeescript": "^0.2.0",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-marked": "^6.0.0",
Expand Down

0 comments on commit 3b87399

Please sign in to comment.