diff --git a/.changeset/gold-rivers-yell.md b/.changeset/gold-rivers-yell.md new file mode 100644 index 0000000..5e149ed --- /dev/null +++ b/.changeset/gold-rivers-yell.md @@ -0,0 +1,6 @@ +--- +"@zcloak/lint": patch +"@zcloak/dev": patch +--- + +fix build pkg json homepage error diff --git a/package.json b/package.json index baec0ae..ce30e43 100644 --- a/package.json +++ b/package.json @@ -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": "yarn@4.0.0-rc.40", diff --git a/packages/dev/package.json b/packages/dev/package.json index 0a9aef0..e29f40a 100644 --- a/packages/dev/package.json +++ b/packages/dev/package.json @@ -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", diff --git a/packages/dev/scripts/zcloak-dev-build-ts.mjs b/packages/dev/scripts/zcloak-dev-build-ts.mjs index 00e687e..06629bd 100755 --- a/packages/dev/scripts/zcloak-dev-build-ts.mjs +++ b/packages/dev/scripts/zcloak-dev-build-ts.mjs @@ -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 } : {}), diff --git a/packages/lint/package.json b/packages/lint/package.json index 6a793bb..af601fe 100644 --- a/packages/lint/package.json +++ b/packages/lint/package.json @@ -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",