Skip to content

Commit ce919ae

Browse files
committed
chore(deps): upgrade
1 parent 56647d6 commit ce919ae

File tree

4 files changed

+482
-443
lines changed

4 files changed

+482
-443
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@commitlint/config-conventional": "^19.7.1",
3939
"@commitlint/prompt-cli": "^19.7.1",
4040
"@commitlint/types": "^19.5.0",
41-
"@icebreakers/eslint-config": "^1.0.1",
41+
"@icebreakers/eslint-config": "^1.0.2",
4242
"@icebreakers/monorepo": "workspace:*",
4343
"@icebreakers/stylelint-config": "^1.0.0",
4444
"@types/fs-extra": "^11.0.4",

packages/monorepo/src/utils/md5.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import crypto from 'node:crypto'
2+
import { logger } from '../logger'
23

34
export function getFileHash(data: crypto.BinaryLike) {
45
const hashSum = crypto.createHash('md5')
@@ -13,7 +14,7 @@ export function isFileChanged(src: crypto.BinaryLike, dest: crypto.BinaryLike) {
1314
return currentHash !== previousHash
1415
}
1516
catch (err) {
16-
console.error('Error calculating file hash:', err)
17+
logger.error('Error calculating file hash:', err)
1718
return false
1819
}
1920
}

packages/monorepo/test/git.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { logger } from '@/logger'
12
import { GitClient } from '@/monorepo/git'
23
import CI from 'ci-info'
34
import get from 'get-value'
@@ -13,7 +14,7 @@ describe('git client', () => {
1314
if (x) {
1415
const url = gitUrlParse(x)
1516
const y = `${url.owner}/${url.name}`
16-
console.log(y)
17+
logger.log(y)
1718
}
1819
})
1920

@@ -28,6 +29,6 @@ describe('git client', () => {
2829
expect(user).toBeTruthy()
2930
expect(user.email).toBeTruthy()
3031
expect(user.name).toBeTruthy()
31-
console.log('[Git getUser]', user)
32+
logger.log('[Git getUser]', user)
3233
})
3334
})

0 commit comments

Comments
 (0)