Skip to content

Commit

Permalink
Rename CDK package to Infra and update stack references
Browse files Browse the repository at this point in the history
  • Loading branch information
senkenn committed Dec 21, 2024
1 parent 467783c commit 9824996
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 31 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/cdk/bin/cdk.ts → packages/infra/bin/infra.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node
import * as cdk from "aws-cdk-lib";
import { S3Stack } from "../lib/cdk-stack";
import { MainStack } from "../lib/main-stack";

const app = new cdk.App();
new S3Stack(app, "S3Stack", {
new MainStack(app, "MainStack", {
/* If you don't specify 'env', this stack will be environment-agnostic.
* Account/Region-dependent features and context lookups will not work,
* but a single synthesized template can be deployed anywhere. */
Expand Down
2 changes: 1 addition & 1 deletion packages/cdk/cdk.json → packages/infra/cdk.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"app": "npx ts-node --prefer-ts-exts bin/cdk.ts",
"app": "npx ts-node --prefer-ts-exts bin/infra.ts",
"watch": {
"include": ["**"],
"exclude": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as s3 from "aws-cdk-lib/aws-s3";
import * as s3_deployment from "aws-cdk-lib/aws-s3-deployment";
import type { Construct } from "constructs";

export class S3Stack extends cdk.Stack {
export class MainStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);

Expand Down
4 changes: 2 additions & 2 deletions packages/cdk/package.json → packages/infra/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "cdk",
"name": "infra",
"version": "0.1.0",
"bin": {
"cdk": "bin/cdk.js"
"cdk": "bin/infra.js"
},
"scripts": {
"build": "tsc",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
50 changes: 25 additions & 25 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9824996

Please sign in to comment.