File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ import {
2727 SetLevelRequestSchema ,
2828} from './third_party/index.js' ;
2929import { ToolCategory } from './tools/categories.js' ;
30- import { tools as slimTools } from './tools/slim/tools.js' ;
3130import type { ToolDefinition } from './tools/ToolDefinition.js' ;
3231import { createTools } from './tools/tools.js' ;
3332
@@ -261,7 +260,7 @@ function registerTool(tool: ToolDefinition): void {
261260}
262261
263262const tools = createTools ( args ) ;
264- for ( const tool of args . slim ? slimTools : tools ) {
263+ for ( const tool of tools ) {
265264 registerTool ( tool ) ;
266265}
267266
Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ import * as performanceTools from './performance.js';
1717import * as screencastTools from './screencast.js' ;
1818import * as screenshotTools from './screenshot.js' ;
1919import * as scriptTools from './script.js' ;
20+ import { tools as slimTools } from './slim/tools.js' ;
2021import * as snapshotTools from './snapshot.js' ;
2122import type { ToolDefinition } from './ToolDefinition.js' ;
2223
2324export const createTools = ( args : ParsedArguments ) => {
24-
25- const rawTools = [
26- ...Object . values ( consoleTools ) ,
25+ const rawTools = args . slim
26+ ? [ ...Object . values ( slimTools ) ]
27+ : [
28+ ...Object . values ( consoleTools ) ,
2729 ...Object . values ( emulationTools ) ,
2830 ...Object . values ( extensionTools ) ,
2931 ...Object . values ( inputTools ) ,
You can’t perform that action at this time.
0 commit comments