Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
// TypeScript 7 ships no compiler API, which tsup calls to bundle type
// declarations. tsup asks for TypeScript as a peer, so it would get the
// workspace's 7; give it the version 6 twin, which provides the same API.
// Remove once tsup supports TypeScript 7.
function readPackage(pkg) {
if (pkg.name === 'tsup') {
delete pkg.peerDependencies?.typescript
delete pkg.peerDependenciesMeta?.typescript
pkg.dependencies = { ...pkg.dependencies, typescript: 'npm:@typescript/typescript6@^6.0.2' }
}
return pkg
}
module.exports = { hooks: { readPackage } }