Skip to content

Commit

Permalink
fix build pkg json homepage error
Browse files Browse the repository at this point in the history
  • Loading branch information
zzcwoshizz committed Apr 13, 2023
1 parent 07bd360 commit a4db004
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/gold-rivers-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@zcloak/lint": patch
"@zcloak/dev": patch
---

fix build pkg json homepage error
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "zCloak",
"bugs": "https://github.com/zCloak-Network/toolkit/issues",
"homepage": "https:/github.com/zCloak-Network/toolkit/#readme",
"homepage": "https://github.com/zCloak-Network/toolkit#readme",
"license": "Apache-2.0",
"name": "zcloak-toolkit",
"packageManager": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/zCloak-Network/toolkit/issues",
"contributors": [],
"description": "A collection of shared CI scripts and development environment used by @zcloak projects",
"homepage": "https:/github.com/zCloak-Network/toolkit/tree/master/packages/dev/#readme",
"homepage": "https://github.com/zCloak-Network/toolkit/tree/master/packages/dev#readme",
"license": "Apache-2.0",
"maintainers": [],
"name": "@zcloak/dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/scripts/zcloak-dev-build-ts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ function sortJson(json) {

function orderPackageJson(repoPath, dir, json) {
json.bugs = `https://github.com/${repoPath}/issues`;
json.homepage = path.join(`https://github.com/${repoPath}`, dir ? `/tree/master/${dir}` : '', '#readme');
json.homepage = `https://github.com/${repoPath}${dir ? `/tree/master/${dir}` : ''}#readme`;
json.license = 'Apache-2.0';
json.repository = {
...(dir ? { directory: dir } : {}),
Expand Down
2 changes: 1 addition & 1 deletion packages/lint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/zCloak-Network/toolkit/issues",
"contributors": [],
"description": "A collection of shared CI scripts and development environment used by @zcloak projects",
"homepage": "https:/github.com/zCloak-Network/toolkit/tree/master/packages/lint/#readme",
"homepage": "https://github.com/zCloak-Network/toolkit/tree/master/packages/lint#readme",
"license": "Apache-2.0",
"maintainers": [],
"name": "@zcloak/lint",
Expand Down

0 comments on commit a4db004

Please sign in to comment.