Skip to content

Commit

Permalink
fix: remove unused imports
Browse files Browse the repository at this point in the history
in src/index.ts the zod import causes an error since there is no util/zod.  The others are just unused.
  • Loading branch information
lart2150 committed May 3, 2024
1 parent 6e68b93 commit e7ee335
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions skeleton/templates/cdk/src/api-stack.ts.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,18 @@ import {
InstanceClass,
InstanceSize,
InstanceType,
IpAddresses,
IpProtocol,
Port,
SubnetType,
Vpc,
} from "aws-cdk-lib/aws-ec2";
import { DockerImageAsset } from "aws-cdk-lib/aws-ecr-assets";
import { Cluster, ContainerImage } from "aws-cdk-lib/aws-ecs";
import { ApplicationLoadBalancedFargateService } from "aws-cdk-lib/aws-ecs-patterns";
import { Role, ServicePrincipal } from "aws-cdk-lib/aws-iam";
import {
AuroraPostgresEngineVersion,
ClientPasswordAuthType,
Credentials,
DatabaseCluster,
DatabaseClusterEngine,
DatabaseProxy,
ProxyTarget,
} from "aws-cdk-lib/aws-rds";
import { ClusterInstance } from "aws-cdk-lib/aws-rds";
import type { Construct } from "constructs";
Expand Down
2 changes: 0 additions & 2 deletions skeleton/templates/src/index.ts.mustache
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as zlib from "zlib";
import cors from "@koa/cors";
import { isHttpError } from "http-errors";
import gracefulShutdown from "http-graceful-shutdown";
import Koa from "koa";
import bodyParser from "koa-bodyparser";
Expand All @@ -17,7 +16,6 @@ import { appConfigHandler } from "./app-config/handler.js";
import { registerRoutes } from "./route/index.js";
import { orm, requestContextMiddleware } from "./util/mikro-orm.js";
import { logger } from "./util/winston.js";
import { ZodValidationError } from "./util/zod.js";
{{#if (has features "appconfig")}}

const appConfigStartResult = await appConfigHandler.start();
Expand Down

0 comments on commit e7ee335

Please sign in to comment.