diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index cf5c3a0..ee3fbfa 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1,3 @@ -* @gowrizrh @aligent/aligent-devops +* @kai-nguyen-aligent @aligent/aligent-serverless-developers + +.github @aligent/aligent-devops 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 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 {};