Skip to content

Instantly share code, notes, and snippets.

@cam8001
Last active April 17, 2021 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cam8001/60787f048d3554d4f84ea4d701d76a2f to your computer and use it in GitHub Desktop.
Save cam8001/60787f048d3554d4f84ea4d701d76a2f to your computer and use it in GitHub Desktop.
tsconfig.json for lambda with typescript
{
"name": "my-lambda-function",
"version": "1.0.0",
"scripts": {
"build": "tsc && npm run copy-config",
"copy-config": "cp -r configuration/* build/",
"release": "npm run build",
},
"dependencies": {
"aws-lambda": "^1.0.6",
"aws-sdk": "^2.809.0",
},
"devDependencies": {
"@types/aws-lambda": "^8.10.66",
"typescript": "^4.1.3"
}
}
{
"compilerOptions": {
"target": "ES2018",
"module": "commonjs",
"lib": [
"es2016",
"es2017.object",
"es2017.string",
"DOM"
],
"outDir": "./build",
"declaration": true,
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": false,
"inlineSourceMap": true,
"inlineSources": true,
"experimentalDecorators": true,
"strictPropertyInitialization": false,
"typeRoots": [
"./node_modules/@types"
],
"resolveJsonModule": true,
"esModuleInterop": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment