Skip to content

Commit

Permalink
chore: tweak size check scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Jan 3, 2025
1 parent f670758 commit b834652
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/size-check-core/scripts/size.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const gzip = gzipSync(bundled).length
const brotli = brotliCompressSync(bundled).length

const report = {
name: '@intlify/core',
name: 'packages/size-check-core (@intlify/core)',
size,
gzip,
brotli
Expand Down
2 changes: 1 addition & 1 deletion packages/size-check-petite-vue-i18n/scripts/size.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const gzip = gzipSync(bundled).length
const brotli = brotliCompressSync(bundled).length

const report = {
name: 'petite-vue-i18n',
name: 'packages/size-check-petite-vue-i18n (petite-vue-i18n)',
size,
gzip,
brotli
Expand Down
2 changes: 1 addition & 1 deletion packages/size-check-vue-i18n/scripts/size.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const gzip = gzipSync(bundled).length
const brotli = brotliCompressSync(bundled).length

const report = {
name: 'vue-i18n',
name: 'packages/size-check-vue-i18n (vue-i18n)',
size,
gzip,
brotli
Expand Down
1 change: 1 addition & 0 deletions scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export async function checkSizeDistFiles(target: string) {
// prettier-ignore
return dirs.filter(file => /^(message-compiler|core|vue-i18n|petite-vue-i18n)/.test(file))
.filter(file => !/^core-base/.test(file))
.filter(file => !/^vue-i18n-core/.test(file))
.filter(file => /prod.(cjs|js)$/.test(file))
.filter(file => !/cjs.prod.js$/.test(file))
}
Expand Down

0 comments on commit b834652

Please sign in to comment.