@@ -106,7 +106,7 @@ async function loadWorkspace(dir: string, workspaces?: string[]) {
106106
107107 const setVersion = ( name : string , newVersion : string ) => {
108108 find ( name ) . data . version = newVersion
109- for ( const pkg of packages ) {
109+ for ( const pkg of packages . filter ( p => ! p . data . private ) ) {
110110 pkg . updateDeps ( dep => {
111111 if ( dep . name === name ) {
112112 dep . range = newVersion
@@ -116,10 +116,7 @@ async function loadWorkspace(dir: string, workspaces?: string[]) {
116116 }
117117 }
118118
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 ( ) ) )
123120
124121 return {
125122 dir,
@@ -138,18 +135,9 @@ async function main() {
138135 const commit = execSync ( 'git rev-parse --short HEAD' ) . toString ( 'utf-8' ) . trim ( )
139136 const release = `${ workspace . workspacePkg . data . version } -${ commit } `
140137
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- ]
148138 for ( const pkg of workspace . packages . filter ( p => ! p . data . private ) ) {
149139 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 )
153141 }
154142
155143 await workspace . save ( )
0 commit comments