From efa793999dcffd7791b6f87c55e008eec9c0c907 Mon Sep 17 00:00:00 2001 From: Torbjorn van Heeswijck Date: Fri, 24 Nov 2023 10:49:56 +1030 Subject: [PATCH 1/4] chore: Make Kai codeowner --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index cf5c3a0..87816ba 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @gowrizrh @aligent/aligent-devops +* @kai-nguyen-aligent @aligent/aligent-devops From c09de6d9f9c3cc1d1cbc9fb0640046b86d623429 Mon Sep 17 00:00:00 2001 From: Torbjorn van Heeswijck Date: Fri, 24 Nov 2023 10:50:06 +1030 Subject: [PATCH 2/4] chore: change release email to devops --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d20f42a..409a28e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: registry-url: https://registry.npmjs.org/ - run: npm ci - run: git config --global user.name "Automated NPM Release" - - run: git config --global user.email "sysadmin+npm-deploy@aligent.com.au" + - run: git config --global user.email "devops+npm-deploy@aligent.com.au" - run: npm version ${{ github.event.release.tag_name }} --allow-same-version - run: npm run build - run: npm publish --access public From fab3b1e1e8f40815d67e40f5425a59cf9befbb6c Mon Sep 17 00:00:00 2001 From: Torbjorn van Heeswijck Date: Fri, 24 Nov 2023 10:50:33 +1030 Subject: [PATCH 3/4] chore: delete dist folder --- dist/index.d.ts | 1 - dist/lib/utils.d.ts | 11 ------- dist/type/serverless-export-resources.d.ts | 36 ---------------------- 3 files changed, 48 deletions(-) delete mode 100644 dist/index.d.ts delete mode 100644 dist/lib/utils.d.ts delete mode 100644 dist/type/serverless-export-resources.d.ts diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index cb0ff5c..0000000 --- a/dist/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/dist/lib/utils.d.ts b/dist/lib/utils.d.ts deleted file mode 100644 index 56a45ba..0000000 --- a/dist/lib/utils.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type Service from 'serverless/classes/Service'; -import type { Output } from 'serverless/plugins/aws/provider/awsProvider'; -import { OutputInfo } from '../type/serverless-export-resources'; -export declare const DEFAULT_EXPORT_PREFIX: "aser"; -export declare function generateLambdaFunctionFullName(logicalName: string, postfix?: string): string; -export declare function generateStateMachineFullName(logicalName: string, customName: string, postfix?: string): string; -export declare function validateLambdaFunctionExportRequirements(service: Service, functionNames?: string[]): string[]; -export declare function validateStateMachineExportRequirements(service: Service, stateMachineNames?: string[]): string[]; -export declare function prepareLambdaFunctionOutputs(service: Service, functionNames?: string[]): Record; -export declare function prepareStateMachineOutputs(service: Service, stateMachineNames?: string[]): Record; -export declare function generateCustomOutputs(stackName: string, resourceOutputs: Record, type: 'function' | 'stateMachine'): Record; diff --git a/dist/type/serverless-export-resources.d.ts b/dist/type/serverless-export-resources.d.ts deleted file mode 100644 index 3000688..0000000 --- a/dist/type/serverless-export-resources.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { FunctionDefinitionHandler, FunctionDefinitionImage } from 'serverless'; -import type Service from 'serverless/classes/Service'; -import type { Outputs } from 'serverless/plugins/aws/provider/awsProvider'; -interface FunctionDefinitionHandlerDescription extends FunctionDefinitionHandler { - description?: string; -} -interface FunctionDefinitionImageDescription extends FunctionDefinitionImage { - description?: string; -} -export type FunctionDefinitionDescription = FunctionDefinitionHandlerDescription | FunctionDefinitionImageDescription; -interface StateMachineDefinition { - Comment?: string; - StartAt: string; - States: Record; -} -export type StateMachine = { - name?: string; - definition: StateMachineDefinition; -}; -export type ExportResourcesConfig = { - functions?: string[]; - stateMachines?: string[]; - prefix: string; -}; -export type OutputInfo = { - fullName: string; - description: string; -}; -export type ResourceOutputs = { - functions: Record; - stateMachines: Record; -}; -export type ServerlessResources = Service['resources'] & { - Outputs?: Outputs; -}; -export {}; From 7f53f973a88a3890963da8660c1be30dbb53c0e5 Mon Sep 17 00:00:00 2001 From: Torbjorn van Heeswijck Date: Fri, 24 Nov 2023 11:06:29 +1030 Subject: [PATCH 4/4] chore: add serverless team to codeowners, make devops codeowners for github --- .github/CODEOWNERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 87816ba..ee3fbfa 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1,3 @@ -* @kai-nguyen-aligent @aligent/aligent-devops +* @kai-nguyen-aligent @aligent/aligent-serverless-developers + +.github @aligent/aligent-devops