(name: string, version: string)
| 81 | }; |
| 82 | |
| 83 | const packageAlreadyPublished = async (name: string, version: string): Promise<boolean> => { |
| 84 | const proc = Bun.spawn(["npm", "view", `${name}@${version}`, "version"], { |
| 85 | stdio: ["ignore", "ignore", "ignore"], |
| 86 | }); |
| 87 | return (await proc.exited) === 0; |
| 88 | }; |
| 89 | |
| 90 | type DependencyBlock = Record<string, string>; |
| 91 | type PeerDependenciesMeta = Record<string, { optional?: boolean }>; |