mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
Update link-in-app.ts
This commit is contained in:
parent
cf2abbb127
commit
a27c95896b
1 changed files with 8 additions and 0 deletions
|
|
@ -22,6 +22,14 @@ fs.writeFileSync(
|
|||
"main": packageJsonParsed["main"]?.replace(/^dist\//, ""),
|
||||
"types": packageJsonParsed["types"]?.replace(/^dist\//, ""),
|
||||
"module": packageJsonParsed["module"]?.replace(/^dist\//, ""),
|
||||
"bin": !("bin" in packageJsonParsed)
|
||||
? undefined
|
||||
: Object.fromEntries(
|
||||
Object.entries(packageJsonParsed["bin"]).map(([key, value]) => [
|
||||
key,
|
||||
(value as string).replace(/^dist\//, "")
|
||||
])
|
||||
),
|
||||
"exports": !("exports" in packageJsonParsed)
|
||||
? undefined
|
||||
: Object.fromEntries(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue