Skip to content

Commit 8286a20

Browse files
committed
🔧 Configure tsdown as builder for console
1 parent d940e5f commit 8286a20

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

‎packages/console/package.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
],
3535
"scripts": {
3636
"build": "pnpm run \"/^build:.*/\"",
37-
"build:tsc": "tsc -b tsconfig.build.json",
37+
"build:tsc": "tsdown",
3838
"clean": "pnpm run \"/^clean:.*/\"",
3939
"clean:tsc": "rm -rf dist",
4040
"docs": "node '../../markdown.mjs'",
@@ -53,6 +53,8 @@
5353
"@w5s/task": "workspace:^1.0.0-alpha.0"
5454
},
5555
"devDependencies": {
56+
"@w5s/tsdown-config": "1.0.0-alpha.4",
57+
"tsdown": "0.21.3",
5658
"typescript": "5.9.3",
5759
"vite": "latest",
5860
"vitest": "latest"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { defineConfig } from '@w5s/tsdown-config';
2+
3+
export default defineConfig({});

‎packages/log/src/LogHandler/Console.ts‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { Console as defaultConsole } from '@w5s/console/dist/Console.js';
2-
import { fontWeight as ansiFontWeight } from '@w5s/console/dist/ANSICode/fontWeight.js';
3-
import { color as ansiColor } from '@w5s/console/dist/ANSICode/color.js';
1+
import { Console as defaultConsole, ANSICode } from '@w5s/console';
42
import { format as timeAsString } from '@w5s/time/dist/Time/format.js';
53
import type { LogHandler } from '../LogHandler.js';
64
import { LogLevelAsString } from '../LogLevel/LogLevelAsString.js';
@@ -10,11 +8,11 @@ import type { LogRecord } from '../LogRecord.js';
108
import { messageWithData } from '../LogRecord/messageWithData.js';
119
import type { LogLevel } from '../LogLevel.js';
1210

13-
const red = ansiColor('red');
14-
const yellow = ansiColor('yellow');
15-
const blue = ansiColor('blue');
16-
const black = ansiColor('black');
17-
const dim = ansiFontWeight('dim');
11+
const red = ANSICode.color('red');
12+
const yellow = ANSICode.color('yellow');
13+
const blue = ANSICode.color('blue');
14+
const black = ANSICode.color('black');
15+
const dim = ANSICode.fontWeight('dim');
1816
const formatTime = dim;
1917
const logLevelAsInt = LogLevelAsInt.asInt;
2018

‎pnpm-lock.yaml‎

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

0 commit comments

Comments
 (0)