Skip to content

Commit

Permalink
chore: fix publishing of core-types when strategy is private (#9237)
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired authored Feb 26, 2024
1 parent c829d9b commit 71ceb30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions release/core/publish/steps/generate-tarballs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ async function makeTypesPrivate(pkg: Package) {
// scrub the package.json of any types fields in exports
scrubTypesFromExports(pkg);

// remove @warp-drive/core-types from dependencies and peerDependencies
delete pkg.pkgData.dependencies?.['@warp-drive/core-types'];
delete pkg.pkgData.peerDependencies?.['@warp-drive/core-types'];

// deactivate build types command
if (pkg.pkgData.scripts?.['build:types']) {
pkg.pkgData.scripts['build:types'] = 'echo "Types are private" && exit 0';
Expand Down

0 comments on commit 71ceb30

Please sign in to comment.