@@ -106,7 +106,7 @@ async function loadWorkspace(dir: string, workspaces?: string[]) {
106
106
107
107
const setVersion = ( name : string , newVersion : string ) => {
108
108
find ( name ) . data . version = newVersion
109
- for ( const pkg of packages ) {
109
+ for ( const pkg of packages . filter ( p => ! p . data . private ) ) {
110
110
pkg . updateDeps ( dep => {
111
111
if ( dep . name === name ) {
112
112
dep . range = newVersion
@@ -116,10 +116,7 @@ async function loadWorkspace(dir: string, workspaces?: string[]) {
116
116
}
117
117
}
118
118
119
- const save = async ( ) => {
120
- await workspacePkg . save ( )
121
- return Promise . all ( packages . map ( pkg => pkg . save ( ) ) )
122
- }
119
+ const save = async ( ) => Promise . all ( packages . map ( pkg => pkg . save ( ) ) )
123
120
124
121
return {
125
122
dir,
@@ -138,18 +135,9 @@ async function main() {
138
135
const commit = execSync ( 'git rev-parse --short HEAD' ) . toString ( 'utf-8' ) . trim ( )
139
136
const release = `${ workspace . workspacePkg . data . version } -${ commit } `
140
137
141
- const filtered = [
142
- 'vue-i18n-next' ,
143
- '@intlify/size-check-core' ,
144
- '@intlify/size-check-petite-vue-i181n' ,
145
- '@intlify/size-check-vue-i18n' ,
146
- '@intlify/message-format-explorer'
147
- ]
148
138
for ( const pkg of workspace . packages . filter ( p => ! p . data . private ) ) {
149
139
workspace . setVersion ( pkg . data . name , release )
150
- if ( ! filtered . includes ( pkg . data . name ) ) {
151
- workspace . rename ( pkg . data . name , pkg . data . name )
152
- }
140
+ workspace . rename ( pkg . data . name , pkg . data . name )
153
141
}
154
142
155
143
await workspace . save ( )
0 commit comments