From 965e2f41510d9d1bd447649e60abe26c8b28204b Mon Sep 17 00:00:00 2001 From: bboure Date: Wed, 5 Jul 2023 16:39:24 +0200 Subject: [PATCH] export types --- doc/general-config.md | 2 +- package.json | 1 + tsconfig.json | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/general-config.md b/doc/general-config.md index 1c58e23e..47a0e27c 100644 --- a/doc/general-config.md +++ b/doc/general-config.md @@ -190,7 +190,7 @@ appSync: ## Esbuild -By default, this plugin uses esbuild in order to bundle Javascript resolvers. TypeSCript fiels are also transpiled into compatible JavaScript. This option allows you to pass custom options that must be passed to the esbuild command. +By default, this plugin uses esbuild in order to bundle Javascript resolvers. TypeScript fiels are also transpiled into compatible JavaScript. This option allows you to pass custom options that must be passed to the esbuild command. ⚠️ Use these options carefully. Some options are not compatible with AWS AppSync. For more details about using esbuild with AppSync, see the [official guidelines](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-reference-overview-js.html#additional-utilities) diff --git a/package.json b/package.json index efc37aff..d6ce69b1 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.0.0-development", "description": "AWS AppSync support for the Serverless Framework", "main": "lib/index.js", + "types": "lib/types/plugin.d.ts", "repository": "https://github.com/sid88in/serverless-appsync-plugin", "license": "MIT", "files": [ diff --git a/tsconfig.json b/tsconfig.json index 2077e072..84c86304 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,8 @@ "resolveJsonModule": true, "skipLibCheck": true, "outDir": "lib", - "noImplicitAny": false + "noImplicitAny": false, + "declaration": true }, "include": ["src/**/*.ts"], "exclude": ["node_modules", "src/__tests__"]