Skip to content

Commit 71ceb30

Browse files
authored
chore: fix publishing of core-types when strategy is private (#9237)
1 parent c829d9b commit 71ceb30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

release/core/publish/steps/generate-tarballs.ts

+4
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ async function makeTypesPrivate(pkg: Package) {
9494
// scrub the package.json of any types fields in exports
9595
scrubTypesFromExports(pkg);
9696

97+
// remove @warp-drive/core-types from dependencies and peerDependencies
98+
delete pkg.pkgData.dependencies?.['@warp-drive/core-types'];
99+
delete pkg.pkgData.peerDependencies?.['@warp-drive/core-types'];
100+
97101
// deactivate build types command
98102
if (pkg.pkgData.scripts?.['build:types']) {
99103
pkg.pkgData.scripts['build:types'] = 'echo "Types are private" && exit 0';

0 commit comments

Comments
 (0)