Skip to content

Commit

Permalink
style(generated-typescript-runtime): fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zetashift committed Sep 10, 2023
1 parent f5f1ffe commit 1b0d8b4
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class GeneratedTypescriptRuntimeProject extends TypeScriptProject {
"@types/aws-lambda",
"@aws-lambda-powertools/tracer",
"@aws-lambda-powertools/logger",
"@aws-lambda-powertools/metrics",
"@aws-lambda-powertools/metrics"
);

// Minimal .npmignore to avoid impacting OpenAPI Generator
Expand All @@ -102,21 +102,21 @@ export class GeneratedTypescriptRuntimeProject extends TypeScriptProject {
// Tell OpenAPI Generator CLI not to generate files that we will generate via this project, or don't need.
const openapiGeneratorIgnore = new OpenApiGeneratorIgnoreFile(this);
openapiGeneratorIgnore.addPatterns(
...GeneratedTypescriptRuntimeProject.openApiIgnorePatterns,
...GeneratedTypescriptRuntimeProject.openApiIgnorePatterns
);

// Add OpenAPI Generator cli configuration
OpenApiToolsJsonFile.ensure(this).addOpenApiGeneratorCliConfig(
options.openApiGeneratorCliConfig,
options.openApiGeneratorCliConfig
);

const generateTask = this.addTask("generate");
generateTask.exec(buildCleanOpenApiGeneratedCodeCommand());
generateTask.exec(
buildTypeSafeApiExecCommand(
TypeSafeApiScript.GENERATE,
this.buildGenerateCommandArgs(),
),
this.buildGenerateCommandArgs()
)
);

this.preCompileTask.spawn(generateTask);
Expand All @@ -142,7 +142,7 @@ export class GeneratedTypescriptRuntimeProject extends TypeScriptProject {
"src",
".npmignore",
"README.md",
".openapi-generator",
".openapi-generator"
);

// If we're not in a monorepo, we need to link the generated client such that any local dependency on it can be
Expand All @@ -155,15 +155,15 @@ export class GeneratedTypescriptRuntimeProject extends TypeScriptProject {
this.tasks
.tryFind("install")
?.exec(
NodePackageUtils.command.cmd(this.package.packageManager, "link"),
NodePackageUtils.command.cmd(this.package.packageManager, "link")
);
break;
case NodePackageManager.PNPM:
// Nothing to do for pnpm, since the pnpm link command handles both the dependant and dependee
break;
default:
console.warn(
`Unknown package manager ${this.package.packageManager}. Cannot link generated typescript runtime project.`,
`Unknown package manager ${this.package.packageManager}. Cannot link generated typescript runtime project.`
);
}
}
Expand Down

0 comments on commit 1b0d8b4

Please sign in to comment.