We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c07fbcb commit f4988deCopy full SHA for f4988de
index.js
@@ -15,6 +15,15 @@ class ServerlessWebpack {
15
this.serverless = serverless;
16
this.options = options;
17
18
+ if (
19
+ this.serverless.service
20
+ && this.serverless.service.custom
21
+ && this.serverless.service.custom.webpack
22
+ && this.serverless.service.custom.webpack.endsWith('.ts')
23
+ ) {
24
+ require('ts-node/register');
25
+ }
26
+
27
Object.assign(
28
this,
29
validate,
package.json
@@ -31,7 +31,8 @@
31
"body-parser": "^1.15.2",
32
"express": "^4.14.0",
33
"fs-extra": "^0.26.7",
34
- "npm-programmatic": "0.0.5"
+ "npm-programmatic": "0.0.5",
35
+ "ts-node": "^3.2.0"
36
},
37
"devDependencies": {
38
"chai": "^3.5.0",
0 commit comments