File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
# 0.1.4 (unreleased)
2
2
3
3
* bump lambda rust docker version to 0.1.0-rust-1.27.2
4
+ * speed up deployments by ~ 3.2 seconds by disabling excludeDevDependencies. it's on by default but it's not useful for for Rust focused services
4
5
5
6
# 0.1.3
6
7
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
// https://serverless.com/blog/writing-serverless-plugins/
4
+ // https://serverless.com/framework/docs/providers/aws/guide/plugins/
4
5
5
6
const { spawnSync } = require ( 'child_process' ) ;
6
7
const { removeSync } = require ( 'fs-extra' ) ;
@@ -26,6 +27,14 @@ class ServerlessPlugin {
26
27
} ,
27
28
this . serverless . service . custom && this . serverless . service . custom . rust || { }
28
29
) ;
30
+
31
+ // By default, Serverless examines node_modules to figure out which
32
+ // packages there are from dependencies versus devDependencies of a
33
+ // package. While there will always be a node_modules due to Serverless
34
+ // and this plugin being installed, it will be excluded anyway.
35
+ // Therefore, the filtering can be disabled to speed up (~3.2s) the process.
36
+ this . serverless . service . package . excludeDevDependencies = false ;
37
+
29
38
this . artifacts = [ ] ;
30
39
}
31
40
You can’t perform that action at this time.
0 commit comments