19 Commits

Author SHA1 Message Date
Mariusz Nowak
87d380275b refactor: Replace config.servicePath with service.dir 2021-04-16 13:32:13 +02:00
ifitzsimmons
6e486b3eb1
refactor: Use async in lib/plugins/aws/package (#8870)
Covered the following paths:
* Files put directly into `lib/plugins/aws/package/compile`
* Files put directly into `lib/plugins/aws/package`
* `lib/plugins/aws/package/lib`

Made changes to tests where necessary.
2021-03-01 11:15:34 +01:00
Mariusz Nowak
cf7b25e458 style: Upgrade "prettier" to v2 2021-01-04 16:21:24 +01:00
Graham McGregor
06f6c6d28e
refactor: Refactor some functions to native promises (#8533) 2020-11-25 13:40:48 +01:00
srd2014
053f5f420b
refactor: Replace _.split with string.split (#7820) 2020-06-09 12:23:14 +02:00
TATSUNO Yasuhiro
5e0af21313
refactor: Replace _.forEach and _.each with array.forEach (#7748) 2020-05-28 10:45:25 +02:00
Nguyễn Việt Đức
85e9cd4455
refactor: Replace _.assign and _.extend with Object.assign (#7766) 2020-05-26 10:24:46 +02:00
Mariusz Nowak
4944f471b1
Prettify 2019-06-26 12:43:01 +02:00
Philipp Muens
e1f09f3039
Revert "Fixed #4188 - Package generating incorrect package artifact path in serverless-state.json" 2019-03-18 11:12:25 +01:00
Philipp Muens
2a846cabb8 Add check for packageReference / Add tests 2019-03-07 14:44:13 +01:00
Fabien Ruffin
a80340b99f Fixed #4188 - Package generating incorrect package artifact path in serverless-state.json 2018-09-15 22:41:20 +10:00
Doug Moscrop
8d9f4a296b only use json-cycles when opt-in, for state serialization 2018-06-06 15:07:03 -04:00
Frank Schmid
33a93e7a28 Move findReferences to utils. It will be used in extendedValidate too. 2017-04-26 21:57:40 +02:00
Frank Schmid
46646a9bff Replace self references with "${self:}" on save state 2017-04-26 21:44:35 +02:00
Frank Schmid
a67674528e Do not persist artifact if individually is set true. 2017-04-24 10:44:53 +02:00
Frank Schmid
aa29c9632e Persist artifact in saved state
The `service.package.artifact` property was missing in the saveState function, so it was not available in the deploy phase.
This PR saves and restores the property correctly, and for AWS additionally sets it during packaging. For AWS the initialization of the property also was missing, possibly due to a merge conflict.

Combination of the following commits:
Re-revert changes for saveServiceState and extendedValidate
Revert most recent changes
Update package artifact to include path and .zip name
Update artifact file path for packaging and name for service state
Update tests for saveServiceState
Do not persist artifacts as it is not needed
Persist package.artifact correctly
2017-04-21 19:50:00 +02:00
Philipp Muens
b63f48b558 Add tests for "saveServiceState" function 2017-04-11 14:03:22 +02:00
Frank Schmid
802ce6053d First working separated build/deploy 2017-04-06 18:28:59 +07:00
Frank Schmid
0f67313e61 Save state 2017-04-06 18:28:59 +07:00