{"_id":"@andrew-talentfish/serverless-plugin-typescript","_rev":"4-dd23318196b1cdf83f0d706993b3fac1","name":"@andrew-talentfish/serverless-plugin-typescript","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@andrew-talentfish/serverless-plugin-typescript","version":"1.0.0","license":"MIT","main":"dist/src/index.js","scripts":{"prepublish":"npm run build","precommit":"npm run test","build":"rimraf dist && tsc","pretest":"npm run lint","test":"jest","lint":"tslint -c tslint.json 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/andrew-talentfish/serverless-plugin-typescript.git"},"keywords":["serverless","serverless plugin","typescript","aws lambda"],"devDependencies":{"@types/fs-extra":"5.0.5","@types/jest":"24.0.12","@types/lodash":"4.14.123","@types/node":"12.6.2","jest":"24.5.0","mock-fs":"4.9.0","rimraf":"2.6.3","ts-jest":"24.0.2","tslint":"5.14.0","ttypescript":"^1.5.12","typescript":"^3.4.1"},"dependencies":{"fs-extra":"^7.0.1","globby":"^9.2.0","lodash":"^4.17.11"},"peerDependencies":{"typescript":">=2.2.2"},"jest":{"preset":"ts-jest","testRegex":"(/__tests__/.*|\\.(test|spec))\\.ts$","moduleFileExtensions":["ts","tsx","js"]},"description":"[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) [![npm version](https://badge.fury.io/js/serverless-plugin-typescript.svg)](https://badge.fury.io/js/serverless-plugin-typescript) [![Build Status](https://travis-ci.or","bugs":{"url":"https://github.com/andrew-talentfish/serverless-plugin-typescript/issues"},"homepage":"https://github.com/andrew-talentfish/serverless-plugin-typescript#readme","_id":"@andrew-talentfish/serverless-plugin-typescript@1.0.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ZebgLpRCUaHq9dYi2A7WptTeFjQlH/eXe40Ij17+tUgZfawrxDJd8lH8wuiUBn44nypLN2XFaE5/eAhgKk1NRw==","shasum":"a220f7332dbb897880674a23bd48c9c1f23f1bd4","tarball":"https://registry.npmjs.org/@andrew-talentfish/serverless-plugin-typescript/-/serverless-plugin-typescript-1.0.0.tgz","fileCount":3,"unpackedSize":7624,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLawPCRA9TVsSAnZWagAAd5AP/0A+2IcL86A7CfATgI8p\n9RC41sPNFExZSpaMH1g3HIjnsDGCuSM/UE5MiULu4kmj5YUF96RapLj148x4\nT0mCJ9jfYP2+GsfeejQYzBRRFNCAGC4eAfdw7ullomsPC8vWkL1RhwtDDhi7\nyxFxTbl0ZktTB/FHgf0g9V/X4dOGJLoD9MdLsypiJ4ySageP4s5ZELvTHz/c\nSGIkt8t/xJiDn/oEKQwUayosXL5iGpmfw3pYjN497LzB3WWS677Gr4WF7LYA\n/PXYCBx2/fnJ9J7hCZTguxb5WGh3+jBei5uWuhBlZVWkonWc80AbzcAqwWSW\nqJS1+VGIqWaCfwcfjznDsQUi9GRfKYmeA+ZMH4naJWhPJBmG0QT5jfmYas8J\nK5FRYPk2xp306vWQ4skyWQ9YC3YpShwPkwMfKSBPCfxoVOA2m9s2k7QGaahm\n7KKunLSnYe5TFHp85pjvok5WyH2Wyxh/YR/D6O24KKCEou2+4Y+Ex80XaVfd\nAHBI83TP2oCYhGS4eks2oWT26QO+7ACB16QXHWjhYnOVTjjZbI1+z35iMa7s\n6ldOJt6zx/L6yFDqGju4bPqSGCcYuRv+7HT8MUddTl7tX8YXxG1me1KBofzU\nTCGVtchaExB3bebSGu7mJdVj7uxW2a657vXhovZT4H5LCWdPgj10mg0ucXju\n/6st\r\n=x1Ql\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD49m7h/afPWlQ0sMOUas9LxFUf/U1BwekB4B5isUMPQAIgYWYoqSjlvbE9MKbzMlSL+vYYB+ma9sdngchE0X794EI="}]},"_npmUser":{"name":"andrew-talentfish","email":"andrew@talentfish.io"},"directories":{},"maintainers":[{"name":"andrew-talentfish","email":"andrew@talentfish.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/serverless-plugin-typescript_1.0.0_1613605903184_0.33960162122407334"},"_hasShrinkwrap":false},"1.0.1":{"name":"@andrew-talentfish/serverless-plugin-typescript","version":"1.0.1","license":"MIT","main":"dist/src/index.js","scripts":{"prepublish":"npm run build","precommit":"npm run test","build":"rimraf dist && tsc","pretest":"npm run lint","test":"jest","lint":"tslint -c tslint.json 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/prisma/serverless-plugin-typescript.git"},"keywords":["serverless","serverless plugin","typescript","aws lambda"],"devDependencies":{"@types/fs-extra":"5.0.5","@types/jest":"24.0.12","@types/lodash":"4.14.123","@types/node":"12.6.2","jest":"24.5.0","mock-fs":"4.9.0","rimraf":"2.6.3","ts-jest":"24.0.2","tslint":"5.14.0","ttypescript":"^1.5.12","typescript":"^3.4.1"},"dependencies":{"fs-extra":"^7.0.1","globby":"^9.2.0","lodash":"^4.17.11"},"peerDependencies":{"typescript":">=2.2.2"},"jest":{"preset":"ts-jest","testRegex":"(/__tests__/.*|\\.(test|spec))\\.ts$","moduleFileExtensions":["ts","tsx","js"]},"description":"[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) [![npm version](https://badge.fury.io/js/serverless-plugin-typescript.svg)](https://badge.fury.io/js/serverless-plugin-typescript) [![Build Status](https://travis-ci.or","bugs":{"url":"https://github.com/prisma/serverless-plugin-typescript/issues"},"homepage":"https://github.com/prisma/serverless-plugin-typescript#readme","_id":"@andrew-talentfish/serverless-plugin-typescript@1.0.1","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-qE80pKuzhN2mNbWFoHgaqILNpsX9rPe+DLz1doxSCSu4VEFWbAZlQY9XKM8smKzbfNhQICJHz1p8tT/567lakA==","shasum":"d8ee2acf065bcda360c13d40c5414b5e9d790183","tarball":"https://registry.npmjs.org/@andrew-talentfish/serverless-plugin-typescript/-/serverless-plugin-typescript-1.0.1.tgz","fileCount":19,"unpackedSize":45147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLa/oCRA9TVsSAnZWagAAhisP/0WIgKcnU0tVNPN6Jh1K\nLr87KUB/lO91ZhCrWjdemiUXaCGAOdL3hDjAQHXsrRdeW8DXSaOLVeGpLJVB\nyTh09xGAr76m+Z6pPZ3uSZL9k6Qh4Cw5TYUysZzflzFbyvGxUSRURhIL4+Ol\nXS6jdIlxFFWtAy/waoEy9zpbUbDowA3eWJgQnV3vQZN0kHFKatItKtYjuFtg\nRwSl3LL015xvVKZq/V2svzoe19BP7mAW4yLQQETj6Ujs2aec71g3RJCSI257\n1qZlsFcJoZOnl9wpNztzLq7QCiMSJG2Esfun6pbSs8OqzvPl3BtnVNdLjoYt\nNr/ZdVsD1B9Nbr+RlxG0nm8N1nwl7Uu56i08KBbzeGWrkT7vPBIHf4QZpulx\ngP7HlakIxM2agerW7vpaigTAx92S91dkbv0raqwcu2hFsSLAJqzYUqsSh4FG\naQKVIRC22Eo8SSfjfpDt1+pWsFSyS8GJnTX/o2hMh6Gqvr9njVcFjC07qReq\nUFfqVYv8rIZoiv9jtJkRVDHC8xf/t3SaT/Yd92g6Qpgi1A59GG+I/y8GAppV\nVDvha3btotw2l7iGESby+CDqOXvjs/cHxvCNJ7zjh84PgpttkR8plSUc6miE\nGqqH/SsJrP1JBDqjw98v0V9DD1l7wqtnxrPo2ls4OnpNkOSgEPbWByQDgnwO\nWOsv\r\n=dF+e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAI0yvhElmCzqfJbLDsjnTIWqmojKwJgzpryXECoDNDvAiBfZAE5yNUGJx3BZf/qvY9JGWZ3t4nHFwhodr2uGpcwGA=="}]},"_npmUser":{"name":"andrew-talentfish","email":"andrew@talentfish.io"},"directories":{},"maintainers":[{"name":"andrew-talentfish","email":"andrew@talentfish.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/serverless-plugin-typescript_1.0.1_1613606887601_0.16662276984993296"},"_hasShrinkwrap":false},"1.0.2":{"name":"@andrew-talentfish/serverless-plugin-typescript","version":"1.0.2","license":"MIT","main":"dist/src/index.js","scripts":{"prepublish":"npm run build","precommit":"npm run test","build":"rimraf dist && tsc","pretest":"npm run lint","test":"jest","lint":"tslint -c tslint.json 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/prisma/serverless-plugin-typescript.git"},"keywords":["serverless","serverless plugin","typescript","aws lambda"],"devDependencies":{"@types/fs-extra":"5.0.5","@types/jest":"24.0.12","@types/lodash":"4.14.123","@types/node":"12.6.2","jest":"24.5.0","mock-fs":"4.9.0","rimraf":"2.6.3","ts-jest":"24.0.2","tslint":"5.14.0","ttypescript":"^1.5.12","typescript":"^3.4.1"},"dependencies":{"fs-extra":"^7.0.1","globby":"^9.2.0","lodash":"^4.17.11","ttypescript":"^1.5.12"},"peerDependencies":{"typescript":">=2.2.2"},"jest":{"preset":"ts-jest","testRegex":"(/__tests__/.*|\\.(test|spec))\\.ts$","moduleFileExtensions":["ts","tsx","js"]},"description":"[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) [![npm version](https://badge.fury.io/js/serverless-plugin-typescript.svg)](https://badge.fury.io/js/serverless-plugin-typescript) [![Build Status](https://travis-ci.or","bugs":{"url":"https://github.com/prisma/serverless-plugin-typescript/issues"},"homepage":"https://github.com/prisma/serverless-plugin-typescript#readme","_id":"@andrew-talentfish/serverless-plugin-typescript@1.0.2","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-MlrtD6Jp3yatf21ebutgCAKLNG95Hgc70ix8UdbbYpYrNEXDIb6BBplhEJEdxXCdy7r6wSI7zWis+tem2ViOLg==","shasum":"f7c597f2d2025952da218848e6db7a70e8139a38","tarball":"https://registry.npmjs.org/@andrew-talentfish/serverless-plugin-typescript/-/serverless-plugin-typescript-1.0.2.tgz","fileCount":19,"unpackedSize":45177,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLbGXCRA9TVsSAnZWagAARB0P/jzei0MFZNXRVCbNY5lB\nxh83Uiso7gF1rl45DrHTy/bNKF7qYe9eclRwsIlGOBu/p9ib1cB9RFk/6e9o\nUmdNulOncVpnf7liVwQiGX88pQZFrzMfXVuUs05c0TyrfWWtA2p/N4wAMEOC\nIuJ/4DlE1Hm5P86Z/xfti4E05qVBDy3uxTWwuH4c2bpwGjp/uPZIk9Pf9Tbu\nmFPi59lwB6tYWR62PTrdy5R+Xo4lIxuR+vxQzakfA4ATSGEj6jPBcvpiUTTX\nOf8Rlt83cCzhCiWFPVaR2AijhMduyuqojjEXsiISpCNW/qxirfagXJ+G0XZP\n/2NTVjQhOI3pP08/HsFl7ouGpVGG4W0HVZ8n2dbEYCq7CWqrPCeb/+ghbczo\n3MFyyyNNfqnAmn8/ZzqhiMFRaG1CUp9n7oFFCv504B517XRj3kOCO169LAeK\nVj/kXpQNysLXJvigd8mvgZ7gDa4cQKj7bF9GUFml0ir8rW3PGcDjuVpyYIob\n0jJoxnwpqT2j35zuDh9/67jA9cZqbg5U30WIDRbA3gcSDKTvQxG3rVvQF5R3\nWieTtL0CiqyOlZjJdZR6eHQVysk9gkrzbQiS57k5pV5b6ec83leYYwGy9QPc\n2NnP1SAQfOWBrbsnrt4yFN45VBd49pC6c6Om7QrGsx9GHePyo9vi3jIg48Ek\no9gJ\r\n=IWy4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDnMTlihWnpI2fuCW0omasP/dMPKExoFH6BCTiUEboKJAiBT6Mq5ZyqVgDrxNFKtwQu4uRNscBTds+yuiZcMhcBNyw=="}]},"_npmUser":{"name":"andrew-talentfish","email":"andrew@talentfish.io"},"directories":{},"maintainers":[{"name":"andrew-talentfish","email":"andrew@talentfish.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/serverless-plugin-typescript_1.0.2_1613607318808_0.07777875911188037"},"_hasShrinkwrap":false},"1.0.3":{"name":"@andrew-talentfish/serverless-plugin-typescript","version":"1.0.3","license":"MIT","main":"dist/src/index.js","scripts":{"prepublish":"npm run build","precommit":"npm run test","build":"rimraf dist && tsc","pretest":"npm run lint","test":"jest","lint":"tslint -c tslint.json 'src/**/*.ts'"},"repository":{"type":"git","url":"git+https://github.com/prisma/serverless-plugin-typescript.git"},"keywords":["serverless","serverless plugin","typescript","aws lambda"],"devDependencies":{"@types/fs-extra":"5.0.5","@types/jest":"24.0.12","@types/lodash":"4.14.123","@types/node":"12.6.2","jest":"24.5.0","mock-fs":"4.9.0","rimraf":"2.6.3","ts-jest":"24.0.2","tslint":"5.14.0","ttypescript":"^1.5.12","typescript":"^3.4.1"},"dependencies":{"fs-extra":"^7.0.1","globby":"^9.2.0","lodash":"^4.17.11"},"peerDependencies":{"typescript":">=2.2.2"},"jest":{"preset":"ts-jest","testRegex":"(/__tests__/.*|\\.(test|spec))\\.ts$","moduleFileExtensions":["ts","tsx","js"]},"description":"[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) [![npm version](https://badge.fury.io/js/serverless-plugin-typescript.svg)](https://badge.fury.io/js/serverless-plugin-typescript) [![Build Status](https://travis-ci.or","bugs":{"url":"https://github.com/prisma/serverless-plugin-typescript/issues"},"homepage":"https://github.com/prisma/serverless-plugin-typescript#readme","_id":"@andrew-talentfish/serverless-plugin-typescript@1.0.3","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-5E4Nwfvqjn1sK0NW1jaRJUDRR64NHJid4C2sjR1jP0eZjiNNsrVw4nMHpBjae+LS0/rgaIu55ALkXi2XrJyC1g==","shasum":"8b34fee16c96799f0aa91a87f52f29329d986d01","tarball":"https://registry.npmjs.org/@andrew-talentfish/serverless-plugin-typescript/-/serverless-plugin-typescript-1.0.3.tgz","fileCount":19,"unpackedSize":45147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLbKeCRA9TVsSAnZWagAA9NMP/jcZRImU6QZqP63GEQev\nE7QrAjaiinXoxX2Jm10fHkVMF2fboGhKTwJwObz8IgZ+OaupBhodM+hNDYiz\nxAX0KmEr++mWaYKyIvN7aXq4fDovIhCUue2pB9S4318d7OJSMaKpdtgiF5ne\n8ga3gXIEvOkwfsH6oXvei/niyAOoXwaDETrkVhG46ggFrdNJtcNAIOcUBh82\nsQS3yxnTamNk347KAftiNIyab1Hk+Pcc6VhGsNXJuiXMNY0Bsxb/bP49FQ/9\nXDijcB5uj+hLOqMUh0KYMPBTbq+NiCecN1P7kLy8kuQ4QuKnF2wUQ7mJ9tvH\nnFpMm8ufNCyHggdwPbkhvK5Pd2CIa0BIm5km21sGtsNehp7rYpPK3WczA3Ot\nYcKKF/W44JtXo5b557NUjFm22IEQMQm5p6kjuovEanKZRuvPQRAiF3dk9JSF\nBWAuGke3oi5ojsqzWA+YHRc0rbPjePwGg/oOO/CAtBKO5UxIzwytm+gldZoc\nqZI+Qa918d+7CBiLjISNQyDoOXeWSuMAoSTxeAlrlWjRegjO+Og0euN9KGVe\ndFeWWnqknTUaLOyEjpvWRSXDXHZ8Cw4kNp7fGEVDcBfW46sncaBWMEhG3Dqt\nNL1+uTVu04HgtZKkdFHMbANtyrIrL4BdWacjLOa+Vl8moxjX7xPS20CPPeoZ\nnWpb\r\n=mlUA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBgSH6dkhy4qNr5CC3OlHNowbjz8MavkJ0WmD4kl6BDIAiBep/PLm5jmYe9ExlfeLlwH8qKiGDd2mkkQN1oaNB/jrw=="}]},"_npmUser":{"name":"andrew-talentfish","email":"andrew@talentfish.io"},"directories":{},"maintainers":[{"name":"andrew-talentfish","email":"andrew@talentfish.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/serverless-plugin-typescript_1.0.3_1613607581358_0.26385859624855645"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-17T23:51:43.146Z","1.0.0":"2021-02-17T23:51:43.351Z","modified":"2022-04-04T14:01:03.240Z","1.0.1":"2021-02-18T00:08:07.786Z","1.0.2":"2021-02-18T00:15:18.925Z","1.0.3":"2021-02-18T00:19:41.651Z"},"maintainers":[{"name":"andrew-talentfish","email":"andrew@talentfish.io"}],"description":"[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) [![npm version](https://badge.fury.io/js/serverless-plugin-typescript.svg)](https://badge.fury.io/js/serverless-plugin-typescript) [![Build Status](https://travis-ci.or","homepage":"https://github.com/prisma/serverless-plugin-typescript#readme","keywords":["serverless","serverless plugin","typescript","aws lambda"],"repository":{"type":"git","url":"git+https://github.com/prisma/serverless-plugin-typescript.git"},"bugs":{"url":"https://github.com/prisma/serverless-plugin-typescript/issues"},"license":"MIT","readme":"# serverless-plugin-typescript\n[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) [![npm version](https://badge.fury.io/js/serverless-plugin-typescript.svg)](https://badge.fury.io/js/serverless-plugin-typescript) [![Build Status](https://travis-ci.org/prisma/serverless-plugin-typescript.svg?branch=master)](https://travis-ci.org/prisma/serverless-plugin-typescript)\n\nServerless plugin for zero-config Typescript support\n\n## Features\n\n* Zero-config: Works out of the box without the need to install any other compiler or plugins\n* Supports ES2015 syntax + features (`export`, `import`, `async`, `await`, `Promise`, ...)\n* Supports `sls package`, `sls deploy` and `sls deploy function`\n* Supports `sls invoke local` + `--watch` mode\n* Integrates nicely with [`serverless-offline`](https://github.com/dherault/serverless-offline)\n\n## Install\n\n```sh\nyarn add --dev serverless-plugin-typescript typescript\n# or\nnpm install -D serverless-plugin-typescript typescript\n```\n\nAdd the following plugin to your `serverless.yml`:\n\n```yaml\nplugins:\n  - serverless-plugin-typescript\n```\n\n## Configure\n\nSee [example folder](example) for a minimal example.\n\n### `tsconfig.json`\n\nThe default `tsconfig.json` file used by the plugin looks like this:\n\n```json\n{\n  \"compilerOptions\": {\n    \"preserveConstEnums\": true,\n    \"strictNullChecks\": true,\n    \"sourceMap\": true,\n    \"allowJs\": true,\n    \"target\": \"es5\",\n    \"outDir\": \".build\",\n    \"moduleResolution\": \"node\",\n    \"lib\": [\"es2015\"],\n    \"rootDir\": \"./\"\n  }\n}\n```\n\n> Note 1: The `outDir` and `rootDir` options cannot be overwritten.\n\n> Note 2: Don't confuse the [`tsconfig.json`](tsconfig.json) in this repository with the one mentioned above.\n\n### Including extra files\n\nAll files from `package/include` will be included in the final build file. See [Exclude/Include](https://serverless.com/framework/docs/providers/aws/guide/packaging#exclude--include)\n\n\n## Usage\n\n### Google Cloud Functions\n\nWhen using with Google Cloud Functions via the [serverless-google-cloudfunctions](https://github.com/serverless/serverless-google-cloudfunctions)\nplugin, you simply have to provide a `main` field in your `package.json`:\n\n```js\n{\n  // ...\n  \"main\": \"handler.js\",\n  // ..\n}\n```\n\nAnd this plugin will automatically compile your typescript correctly. Note\nthat the field must refer to the compiled file name, namely, ending with a `.js`\nextension.\n\nIf a `main` field was not found, then this plugin will use `index.js`. Before\ncompilation begins, it will check to see that the file indicated exists with a\n`.ts` extension before actually trying to compile it.\n\n### Automatic compilation\n\nThe normal Serverless deploy procedure will automatically compile with Typescript:\n\n- Create the Serverless project with `serverless create -t aws-nodejs`\n- Install Serverless Typescript as above\n- Deploy with `serverless deploy`\n\n### Usage with serverless-offline\n\nThe plugin integrates very well with [serverless-offline](https://github.com/dherault/serverless-offline) to\nsimulate AWS Lambda and AWS API Gateway locally.\n\nAdd the plugins to your `serverless.yml` file and make sure that `serverless-plugin-typescript`\nprecedes `serverless-offline` as the order is important:\n```yaml\n  plugins:\n    ...\n    - serverless-plugin-typescript\n    ...\n    - serverless-offline\n    ...\n```\n\nRun `serverless offline` or `serverless offline start` to start the Lambda/API simulation.\n\nIn comparison to `serverless offline`, the `start` command will fire an `init` and a `end` lifecycle hook which is needed for `serverless-offline` and e.g. `serverless-dynamodb-local` to switch off resources (see below)\n\n#### serverless-dynamodb-local\n\nConfigure your service the same as mentioned above, but additionally add the `serverless-dynamodb-local`\nplugin as follows:\n```yaml\n  plugins:\n    - serverless-plugin-typescript\n    - serverless-dynamodb-local\n    - serverless-offline\n```\n\nRun `serverless offline start`.\n\n#### Other useful options\n\nYou can reduce the clutter generated by `serverless-offline` with `--dontPrintOutput` and\ndisable timeouts with `--noTimeout`.\n\n### Run a function locally\n\nTo run your compiled functions locally you can:\n\n```bash\n$ serverless invoke local --function <function-name>\n```\n\nOptions are:\n\n- `--function` or `-f` (required) is the name of the function to run\n- `--watch` - recompile and run a function locally on source changes\n- `--path` or `-p` (optional) path to JSON or YAML file holding input data\n- `--data` or `-d` (optional) input data\n\n### Enabling source-maps\n\nYou can easily enable support for source-maps (making stacktraces easier to read) by installing and using the following plugin:\n\n```sh\nyarn add --dev source-map-support\n```\n\n```ts\n// inside of your function\nimport 'source-map-support/register'\n```\n\nIf you are using webpack (most likely). Add `devtool: 'source-map'` to `webpack.config.js`:\n```js\nmodule.exports = {\n  .... snip ....\n  devtool: 'source-map',\n  .... snip ....\n\n}\n```\n\n## Help & Community\n\nJoin our [Spectrum community](http://spectrum.chat/prisma) if you run into issues or have questions. We love talking to you!\n\n<p align=\"center\"><a href=\"https://oss.prisma.io\"><img src=\"https://imgur.com/IMU2ERq.png\" alt=\"Prisma\" height=\"170px\"></a></p>\n\n","readmeFilename":"README.md"}