File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ import type { Options as DtsOptions } from 'rolldown-plugin-dts'
47
47
* Build with tsdown.
48
48
*/
49
49
export async function build ( userOptions : Options = { } ) : Promise < void > {
50
+ globalLogger . level =
51
+ userOptions . logLevel || ( userOptions . silent ? 'silent' : 'info' )
50
52
const { configs, files : configFiles } = await resolveOptions ( userOptions )
51
53
52
54
let cleanPromise : Promise < void > | undefined
Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ test('fromVite', async (context) => {
167
167
const restoreCwd = chdir ( testDir )
168
168
const options = await resolveOptions ( {
169
169
config : testDir ,
170
+ logLevel : 'silent' ,
170
171
} )
171
172
expect ( options . configs ) . toMatchObject ( [
172
173
{
You can’t perform that action at this time.
0 commit comments