diff --git a/lib/generateRoutes/index.ts b/lib/generateRoutes/index.ts index 07c292b..6bc13e8 100644 --- a/lib/generateRoutes/index.ts +++ b/lib/generateRoutes/index.ts @@ -67,7 +67,7 @@ export async function generateTypes(apiPath: string, filePath: string): Promise< export function generateTypescript(api: OpenAPI.Document, typeImportLocation: string): string { let generatedTSEndpoints = '/**\n* This file was auto-generated by the generateRoutes endpoint generator.\n* Do not make direct changes to the file.\n' + - `* To update this file run \`npx apollo-rest_utils \`\n*/\n\n`; + `* To update this file run \`npx apollo-rest-utils \`\n*/\n\n`; generatedTSEndpoints += `import {operations} from '${typeImportLocation}'\n\nimport { IRestEndpoint} from 'apollo-rest-utils';\n\n\n`; // Create an object representing routes by method, e.g., { 'get': {}, ... } // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access