Skip to content

Commit 222e941

Browse files
committed
perf: replace debug with obug
1 parent fbf6d4a commit 222e941

File tree

13 files changed

+30
-26
lines changed

13 files changed

+30
-26
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@
9292
"ansis": "catalog:prod",
9393
"cac": "catalog:prod",
9494
"chokidar": "catalog:prod",
95-
"debug": "catalog:prod",
9695
"diff": "catalog:prod",
9796
"empathic": "catalog:prod",
9897
"hookable": "catalog:prod",
98+
"obug": "catalog:prod",
9999
"rolldown": "catalog:prod",
100100
"rolldown-plugin-dts": "catalog:prod",
101101
"semver": "catalog:prod",
@@ -110,7 +110,6 @@
110110
"@sxzz/eslint-config": "catalog:dev",
111111
"@sxzz/prettier-config": "catalog:dev",
112112
"@sxzz/test-utils": "catalog:dev",
113-
"@types/debug": "catalog:dev",
114113
"@types/node": "catalog:dev",
115114
"@types/semver": "catalog:dev",
116115
"@unocss/eslint-plugin": "catalog:docs",

pnpm-lock.yaml

Lines changed: 18 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ catalogs:
1313
'@sxzz/eslint-config': ^7.2.10
1414
'@sxzz/prettier-config': ^2.2.4
1515
'@sxzz/test-utils': ^0.5.12
16-
'@types/debug': ^4.1.12
1716
'@types/node': ^24.10.0
1817
'@types/semver': ^7.7.1
1918
bumpp: ^10.3.1
@@ -53,11 +52,11 @@ catalogs:
5352
ansis: ^4.2.0
5453
cac: ^6.7.14
5554
chokidar: ^4.0.3
56-
debug: ^4.4.3
5755
diff: ^8.0.2
5856
empathic: ^2.0.0
5957
giget: ^2.0.0
6058
hookable: ^5.5.3
59+
obug: ^0.1.0
6160
package-manager-detector: ^1.5.0
6261
rolldown: 1.0.0-beta.49
6362
rolldown-plugin-dts: ^0.17.5

src/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'node:path'
33
import process from 'node:process'
44
import { pathToFileURL } from 'node:url'
55
import { underline } from 'ansis'
6-
import Debug from 'debug'
6+
import Debug from 'obug'
77
import { createConfigCoreLoader } from 'unconfig-core'
88
import { fsStat } from '../utils/fs.ts'
99
import { toArray } from '../utils/general.ts'

src/config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'node:path'
22
import process from 'node:process'
33
import { blue } from 'ansis'
4-
import Debug from 'debug'
4+
import Debug from 'obug'
55
import { glob } from 'tinyglobby'
66
import { resolveClean } from '../features/clean.ts'
77
import { resolveEntry } from '../features/entry.ts'

src/features/attw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { tmpdir } from 'node:os'
33
import path from 'node:path'
44
import process from 'node:process'
55
import { dim } from 'ansis'
6-
import Debug from 'debug'
6+
import Debug from 'obug'
77
import { exec } from 'tinyexec'
88
import { fsRemove } from '../utils/fs.ts'
99
import { importWithError } from '../utils/general.ts'

src/features/clean.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from 'node:path'
2-
import Debug from 'debug'
2+
import Debug from 'obug'
33
import { glob } from 'tinyglobby'
44
import { fsRemove } from '../utils/fs.ts'
55
import { slash } from '../utils/general.ts'

src/features/debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Debug from 'debug'
1+
import Debug from 'obug'
22
import { resolveComma, toArray } from '../utils/general.ts'
33
import type { StartOptions } from '@vitejs/devtools/cli-commands'
44
import type { InputOptions } from 'rolldown'

src/features/external.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { isBuiltin } from 'node:module'
22
import path from 'node:path'
33
import { blue, underline } from 'ansis'
4-
import Debug from 'debug'
4+
import Debug from 'obug'
55
import { RE_DTS, RE_NODE_MODULES } from 'rolldown-plugin-dts/filename'
66
import { shimFile } from '../index.ts'
77
import { matchPattern } from '../utils/general.ts'

src/features/publint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'node:path'
22
import process from 'node:process'
33
import { dim } from 'ansis'
4-
import Debug from 'debug'
4+
import Debug from 'obug'
55
import { importWithError } from '../utils/general.ts'
66
import { prettyName } from '../utils/logger.ts'
77
import type { ResolvedConfig } from '../config/index.ts'

0 commit comments

Comments
 (0)