327 Commits

Author SHA1 Message Date
Mariusz Nowak
ab3c543089 fix(Packaging): Fix package.artifact validation for S3 urls 2021-07-08 21:51:01 +02:00
Mariusz Nowak
21c0fedc50 fix(Packaging): Validate package.artifact paths 2021-07-08 13:54:32 +02:00
Nyambayar Turbat
db67b353c9
refactor: Use async in lib/plugins/package (#9644) 2021-07-02 11:18:38 +02:00
Mariusz Nowak
c563581ac9 refactor: Construct user errors with ServerlessError 2021-05-19 13:16:42 +02:00
Piotr Grzesik
81f0858cc9 refactor: Add code to ServerlessError in lib/plugins 2021-04-23 13:34:20 +02:00
Mariusz Nowak
e8c8f1cfff refactor: Rename servicePath vars to serviceDir 2021-04-16 13:32:13 +02:00
Mariusz Nowak
87d380275b refactor: Replace config.servicePath with service.dir 2021-04-16 13:32:13 +02:00
Mariusz Nowak
fc3a4391b5 refactor: Introduce serviceDir and configurationFilename
In place of `configurationPath`
2021-04-16 13:32:13 +02:00
Mariusz Nowak
2011649537 refactor: Remove injustified "eslint-disable" comments 2021-04-02 15:05:03 +02:00
Mariusz Nowak
7d16947273 fix(Packaging): Ensure to apply dev dependency exclusion 2021-04-02 14:48:32 +02:00
Joël Galeran
bf83f3c406
chore: Update code comment about file stat chmod (#9191)
It seems that `normalizedFilesToChmodPlusX` was removed and does not exist anymore so removing it from the comment seemed appropriate
2021-03-29 15:13:18 +02:00
Juanjo Diaz
e1678fb1c6
feat(Packaging): Deprecate include & exclude in favor of patterns
(PR #8581)
2021-03-26 11:33:58 +01:00
Mariusz Nowak
2294a4b4cb refactor(CLI): Move lifecycles definition to commands schema
It's needed to be able to process commands as introduced by plugins without a need of processing Serverless instance
2021-03-24 11:50:24 +01:00
Piotr Grzesik
6e3e21cafa fix(Packaging): Ensure to properly exclude when NODE_ENV set 2021-03-18 16:01:47 +01:00
Mariusz Nowak
14a2640bd9 refactor(CLI): Seclude schema of core commands 2021-03-16 09:34:33 +01:00
Piotr Grzesik
399d91b7e4 refactor: Revert bluebird from lib/plugins/package
This reverts commit 0fb0f43919bd3bd4a9c57b9f33bf96a822ce027c.
2021-03-04 11:06:44 +01:00
Juanjo Diaz
0fb0f43919
refactor: Remove bluebird from lib/plugins/package (#9028) 2021-03-01 11:44:49 +01:00
Juanjo Diaz
006557d847
refactor: Use standalone ServerlessError. (#8897) 2021-02-09 09:20:55 +01:00
Piotr Grzesik
847aa9ca7f fix(Packaging): Proper exclusion of dependencies across platforms 2021-01-26 11:36:03 +01:00
Mariusz Nowak
8f3481e42a refactor: Improve var naming 2021-01-22 14:57:10 +01:00
Mariusz Nowak
f274cd7637 refactor: Seclude configuration parse from internals 2021-01-22 14:57:10 +01:00
Tomás Milar
708f6a7e26
fix(Packaging): Properly exclude devDependencies on Windows (#8803) 2021-01-21 20:55:21 +01:00
Mariusz Nowak
b23bfdbf6a refactor(CLI): Seclude service config path resolution out of internals 2021-01-18 16:19:12 +01:00
Mariusz Nowak
8173a36b7c refactor: Refactor to async/await 2021-01-18 16:19:12 +01:00
Robert Bragg
bcbbd47fa0
fix(Packaging): Consider absolute artifact paths (#8325) (#8315)
Co-authored-by: Piotr Grzesik <pj.grzesik@gmail.com>
2021-01-07 13:53:00 +01:00
Mariusz Nowak
cf7b25e458 style: Upgrade "prettier" to v2 2021-01-04 16:21:24 +01:00
Piotr Grzesik
537fcac759 fix(Packaging): Exclude .env files only when useDotenv is set 2020-12-21 16:58:41 +01:00
Piotr Grzesik
8791cdacb7 fix(Packaging): Ensure that .env files are excluded from package
Addresses #8566
2020-12-17 10:31:48 +01:00
Łukasz Jendrysik
c864fbd482
fix(Packaging): Add exec bit for packaged files on Windows (#8615) 2020-12-14 17:54:01 +01:00
Juanjo Diaz
86b366a5d3
fix(Packaging): Do not exclude layer paths when packaging a layer (#8602) 2020-12-11 15:43:28 +01:00
Łukasz Jendrysik
13c7b7bc97
fix(Packaging): Expose meaningfully file access errors (#8582) 2020-12-07 16:32:39 +01:00
Mariusz Nowak
c0ea4c1461 feat(AWS Lambda): Basic container image support 2020-12-04 13:53:49 +01:00
Mariusz Nowak
7fc7e78e7f refactor(Packaging): Refactor to async/await 2020-12-04 13:53:49 +01:00
Mariusz Nowak
b43cf22608 refactor(Packaging): Refactor to async/await 2020-12-04 13:53:49 +01:00
Mariusz Nowak
3808471972 test: Move unit tests to "test/unit" folder 2020-11-30 16:53:52 +01:00
Graham McGregor
06f6c6d28e
refactor: Refactor some functions to native promises (#8533) 2020-11-25 13:40:48 +01:00
Dmitry Gorbash
fdd962baa5
fix(Packaging): Fix compatibility with npm v7.0 (#8505) 2020-11-16 16:18:02 +01:00
Piotr Grzesik
b867df147a
refactor: Replace _.{entries|entriesIn|toPairs} with Object.entries
(PR #8275)
2020-09-23 13:13:54 +02:00
Mariusz Nowak
615b10b7b1 test(Packaging): Ensure test is deterministic 2020-09-10 13:26:17 +02:00
Christian Musa
c620af3cd6 fix(Packaging): Fix resolution of files with '.' In their names (#8130) 2020-09-10 13:26:17 +02:00
Mariusz Nowak
8c3c7c4e3a chore: Rename "tests" folder to "test"
Also upgrade @serverless/eslint-config to v2
2020-08-28 16:22:09 +02:00
Mariusz Nowak
2561ae800e
fix(packaging): Ensure to include "aws-sdk" dependency if installed (#8145)
Latest version of "aws-sdk" do not necessarily aligns with one available in Lambda environment.
Users may intentionally install latest version to ensure they have access to latest features

This reverts commit f45da3c7b168d34e7d3c520068dc24364753a74a.
2020-08-28 14:09:23 +02:00
Yogendra Sharma
f45da3c7b1
perf(packaging): Exclude "aws-sdk" dependency (#8103)
As it's unconditionally provided in AWS environment
2020-08-19 16:42:10 +02:00
Mariusz Nowak
cae28851df fix: Packaged files permissions handling 2020-07-22 10:50:11 +02:00
Mariusz Nowak
cd308b466c test: Fix zip permissions tests 2020-07-22 10:50:11 +02:00
Dai Van Nguyen
4c33476210
refactor: Replace _.isEmpty with native counterparts (#7873) 2020-06-25 15:17:52 +02:00
Çalgan Aygün
7e68a0c90f
refactor: Replace _.compact with array.filter(Boolean) (#7858) 2020-06-22 10:38:34 +02:00
Nguyễn Việt Đức
57e4212671
refactor: Replace _.sortBy with array.sort (#7823) 2020-06-18 14:36:45 +02:00
Nguyễn Việt Đức
4c6f8be5cc
refactor: Replace _.map with array.map (#7827) 2020-06-12 09:59:42 +02:00
srd2014
053f5f420b
refactor: Replace _.split with string.split (#7820) 2020-06-09 12:23:14 +02:00