Take the repository address from package.json instead of assuming GitHub

build-ts split repository.url on 'https://github.com/'. Since the April
move of repository URLs to git.pezkuwichain.io that split returns
undefined and the build stops with "Cannot read properties of undefined
(reading 'split')" in every repo on the new host (pezkuwi-wasm, and this
one). Where it did not throw, orderPackageJson rebuilt bugs, homepage and
repository.url as github.com, silently reverting the declared host in
every package it built.

repoBaseFromUrl now parses the declared URL (accepting a git+ prefix and
a trailing .git) and the published metadata is derived from it.

Checked end to end on pezkuwi-wasm: the build completes and leaves every
package.json unchanged; the built package keeps its git.pezkuwichain.io
repository URL.
This commit is contained in:
Kurdistan Tech Ministry authored and SatoshiQaziMuhammed committed 2026-10-07 08:14:02 +04:00
1 parent 4db0839e91
commit e419fceaa9
2 files changed
+32 -14

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@
"sideEffects": false,
"type": "module",
"types": "./index.d.ts",
"version": "0.85.11",
"version": "0.85.12",
"main": "./cjs/index.js",
"module": "./index.js",
"bin": {