File tree 1 file changed +6
-0
lines changed
release/core/publish/steps
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ export async function generatePackageTarballs(
34
34
}
35
35
36
36
try {
37
+ if ( pkg . pkgData . scripts ?. [ 'prepack' ] ) {
38
+ await exec ( { cwd : path . join ( PROJECT_ROOT , path . dirname ( pkg . filePath ) ) , cmd : `bun run prepack` } ) ;
39
+ }
37
40
await amendFilesForTypesStrategy ( pkg , pkgStrategy ) ;
38
41
} catch ( e ) {
39
42
console . log ( `🔴 ${ chalk . redBright ( 'failed to amend files to pack for' ) } ${ chalk . yellow ( pkg . pkgData . name ) } ` ) ;
@@ -199,6 +202,9 @@ async function makeTypesStable(pkg: Package) {
199
202
}
200
203
201
204
async function amendFilesForTypesStrategy ( pkg : Package , strategy : APPLIED_STRATEGY ) {
205
+ if ( pkg . pkgData . scripts ?. [ 'prepack' ] ) {
206
+ delete pkg . pkgData . scripts [ 'prepack' ] ;
207
+ }
202
208
switch ( strategy . types ) {
203
209
case 'private' :
204
210
makeTypesPrivate ( pkg ) ;
You can’t perform that action at this time.
0 commit comments