upgrade typescript, types, node and webpack

This commit is contained in:
Mickael Lecoq 2018-04-17 15:20:18 +02:00
parent 86298b6e0e
commit c8b42bee9d
3 changed files with 12 additions and 9 deletions

View File

@ -10,13 +10,14 @@
"source-map-support": "^0.5.0"
},
"devDependencies": {
"@types/aws-lambda": "0.0.22",
"@types/aws-lambda": "8.10.1",
"@types/node": "^8.0.57",
"serverless-webpack": "^4.0.0",
"ts-loader": "^2.3.7",
"typescript": "^2.5.2",
"webpack": "^3.6.0"
"serverless-webpack": "^5.1.1",
"ts-loader": "^4.2.0",
"typescript": "^2.8.1",
"webpack": "^4.5.0"
},
"author": "The serverless webpack authors (https://github.com/elastic-coders/serverless-webpack)",
"author":
"The serverless webpack authors (https://github.com/elastic-coders/serverless-webpack)",
"license": "MIT"
}

View File

@ -7,7 +7,7 @@ plugins:
provider:
name: aws
runtime: nodejs6.10
runtime: nodejs8.10
functions:
hello:

View File

@ -8,6 +8,7 @@ Object.keys(slsw.lib.entries).forEach(key => (
));
module.exports = {
mode: 'production',
entry: entries,
devtool: 'source-map',
resolve: {
@ -26,8 +27,9 @@ module.exports = {
},
target: 'node',
module: {
loaders: [
{ test: /\.ts(x?)$/, loader: 'ts-loader' },
rules: [
// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader`
{ test: /\.tsx?$/, loader: 'ts-loader' },
],
},
};