@@ -83,27 +83,27 @@ export async function generatePackageTarballs(
83
83
async function fixVersionsInPackageJson ( pkg : Package ) {
84
84
if ( pkg . pkgData . dependencies ) {
85
85
Object . keys ( pkg . pkgData . dependencies ) . forEach ( ( dep ) => {
86
- const version = pkg . pkgData . dependencies [ dep ] ;
86
+ const version = pkg . pkgData . dependencies ! [ dep ] ;
87
87
if ( version . startsWith ( 'workspace:' ) ) {
88
- pkg . pkgData . dependencies [ dep ] = version . replace ( 'workspace:' , '' ) ;
88
+ pkg . pkgData . dependencies ! [ dep ] = version . replace ( 'workspace:' , '' ) ;
89
89
}
90
90
} ) ;
91
91
}
92
92
93
93
if ( pkg . pkgData . devDependencies ) {
94
94
Object . keys ( pkg . pkgData . devDependencies ) . forEach ( ( dep ) => {
95
- const version = pkg . pkgData . devDependencies [ dep ] ;
95
+ const version = pkg . pkgData . devDependencies ! [ dep ] ;
96
96
if ( version . startsWith ( 'workspace:' ) ) {
97
- pkg . pkgData . devDependencies [ dep ] = version . replace ( 'workspace:' , '' ) ;
97
+ pkg . pkgData . devDependencies ! [ dep ] = version . replace ( 'workspace:' , '' ) ;
98
98
}
99
99
} ) ;
100
100
}
101
101
102
102
if ( pkg . pkgData . peerDependencies ) {
103
103
Object . keys ( pkg . pkgData . peerDependencies ) . forEach ( ( dep ) => {
104
- const version = pkg . pkgData . peerDependencies [ dep ] ;
104
+ const version = pkg . pkgData . peerDependencies ! [ dep ] ;
105
105
if ( version . startsWith ( 'workspace:' ) ) {
106
- pkg . pkgData . peerDependencies [ dep ] = version . replace ( 'workspace:' , '' ) ;
106
+ pkg . pkgData . peerDependencies ! [ dep ] = version . replace ( 'workspace:' , '' ) ;
107
107
}
108
108
} ) ;
109
109
}
0 commit comments