File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ export default defineConfig([
8888 "src/types/*.d.ts" ,
8989 "tests/integration/fixtures/" ,
9090 "eslint-rules" ,
91+ ".yalc" ,
9192 ] ) ,
9293 eslintPluginPrettierRecommended ,
9394] ) ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ async function main(): Promise<void> {
3333 process . exit ( 1 ) ;
3434 }
3535
36- const specFile = await fs . readFile ( spec as string , "utf8" ) ;
36+ const specFile = await fs . readFile ( spec , "utf8" ) ;
3737
3838 const operations : {
3939 path : string ;
@@ -115,7 +115,7 @@ async ${methodName}(options${requiredParams ? "" : "?"}: FetchOptions<operations
115115 } )
116116 . join ( "\n" ) ;
117117
118- const templateFile = await fs . readFile ( file as string , "utf8" ) ;
118+ const templateFile = await fs . readFile ( file , "utf8" ) ;
119119 const templateLines = templateFile . split ( "\n" ) ;
120120 const outputLines : string [ ] = [ ] ;
121121 let addLines = true ;
@@ -134,7 +134,7 @@ async ${methodName}(options${requiredParams ? "" : "?"}: FetchOptions<operations
134134 }
135135 const output = outputLines . join ( "\n" ) ;
136136
137- await fs . writeFile ( file as string , output , "utf8" ) ;
137+ await fs . writeFile ( file , output , "utf8" ) ;
138138}
139139
140140main ( ) . catch ( ( error ) => {
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ async function main(): Promise<void> {
5757 args : process . argv . slice ( 2 ) ,
5858 } ) ;
5959
60- if ( config == null || ( error && error . length ) ) {
60+ if ( ! config || ( error && error . length ) ) {
6161 console . error ( `
6262 ${ error }
6363 - Refer to https://www.mongodb.com/docs/mcp-server/get-started/ for setting up the MCP Server.
You can’t perform that action at this time.
0 commit comments