cli: trim typesVersions from published packages

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-01-17 23:26:45 +01:00
parent 8da954740e
commit b5c1b48d17
@@ -63,6 +63,9 @@ export async function productionPack(options: ProductionPackOptions) {
}
}
// For published packages we rely on compatibility entry points rather than this
delete pkg.typesVersions;
// We remove the dependencies from package.json of packages that are marked
// as bundled, so that yarn doesn't try to install them.
if (pkg.bundled) {