876 Commits

Author SHA1 Message Date
Stephane Seng
5952712085 fix(GITHUB-6525-5172): Rewrite copyDirContentsSyncAllow to call fs-extra::copySync() on the directories instead of calling it on the files to copy individually.
The main motivation behind these changes is to rely on
https://github.com/jprichardson/node-fs-extra/blob/8.1.0/docs/copy-sync.md as
much as possible in order to avoid having to do the
`fullFilePath.replace(srcDir, '')` operation because this operation can be
error-prone.

Doing so fixes the following issues because the user-submitted file paths are
now correctly interpreted by fs-extra, closing both #6525 and #5172.
2019-08-12 23:09:23 +02:00
Mariusz Nowak
87faf71920
Clear confusing wording 2019-08-06 22:00:03 +02:00
Mariusz Nowak
ae77dbeaa0
Recognize YAMLException as user error 2019-08-06 14:14:07 +02:00
Mariusz Nowak
b3f06b8b1f
Do not duplicate error message output 2019-08-06 14:14:04 +02:00
Mariusz Nowak
7ce351e084
Log uncaught exceptions 2019-08-06 13:44:43 +02:00
Mariusz Nowak
406d4c713a
Expose stack trace for non user errors 2019-08-06 13:44:15 +02:00
Mariusz Nowak
80e6ad5fb7
Recognize isUserError variable 2019-08-06 13:44:15 +02:00
Mariusz Nowak
ee091fb91c
Show SLS_DEBUG info only when it's not used 2019-08-06 13:44:14 +02:00
Mariusz Nowak
18dfb69e31
Improve non-error exception handling 2019-08-06 13:44:10 +02:00
Mariusz Nowak
5e57ad365e
Improve variable name 2019-08-06 13:02:01 +02:00
Mariusz Nowak
77432a0e07
Improve variable name 2019-08-06 13:02:01 +02:00
Mariusz Nowak
11cb305329
Improve variable name 2019-08-06 13:02:00 +02:00
Philipp Muens
8f86fb29bb Fix test 2019-08-05 16:37:17 +02:00
astuyve
f3b73d1ad3
Newlines, instead of commas 2019-08-05 08:19:56 -05:00
astuyve
800f729bc1
Prettify 2019-08-05 08:14:02 -05:00
astuyve
ac6b740de9
Remove Enterprise and Platform from log info 2019-08-05 08:08:17 -05:00
Maciej Skierkowski
0d44aaca0a Use slss.io for links 2019-07-22 13:02:30 -04:00
Daniel Schep
710139eee9
Fix broken lint outcome after 'no-confusing-arrow' change (#6411)
Fix broken lint outcome after 'no-confusing-arrow' change
2019-07-19 12:09:05 -04:00
Mariusz Nowak
d2e537329f
Fix lint issues
Came out after change to no-confusing-arrow rule
2019-07-19 17:46:08 +02:00
Mariusz Nowak
316c8a86b6
Fix tests 2019-07-19 17:14:27 +02:00
Mariusz Nowak
f8fc8d9730
Ensure to not crash with logged error 2019-07-19 17:14:03 +02:00
Mariusz Nowak
b15c9cce5e
Fix segment tracking tests 2019-07-19 16:47:45 +02:00
Mariusz Nowak
86104ef21d
Reorganize tracking logic 2019-07-18 23:02:14 +02:00
Mariusz Nowak
c8709af12e
Do not do forced process exits 2019-07-18 19:36:07 +02:00
Daniel Schep
505b6d429d support for calling tenant orgs
chosing between the two is handled by SFE plugin
2019-07-16 16:11:45 -04:00
Philipp Muens
084cee4538
Merge pull request #6345 from domcorvasce/master
Add SLS_NO_WARNINGS env var
2019-07-16 12:49:39 +02:00
Jonathan Keslin
31834261b0 Warn when attempting to split non-StringList parameter type 2019-07-12 09:38:48 -07:00
Jonathan Keslin
87315d7c48 prettier fix 2019-07-11 15:46:47 -07:00
Jonathan Keslin
96946fd5fc Allow optionally splitting SSM parameter value for StringList type 2019-07-11 15:33:17 -07:00
Dom Corvasce
5500a07d12 Show available env vars in the help output 2019-07-11 11:41:26 +02:00
Dom Corvasce
38f42dfb5c Rename SLS_NO_WARNINGS to SLS_WARNING_DISABLE 2019-07-10 11:52:05 +02:00
Philipp Muens
dfe6e07161
Merge pull request #6344 from serverless/sfe-version-info
SFE plugin & sdk version info
2019-07-10 11:26:25 +02:00
Philipp Muens
1d4ef3b2b6 Add tests 2019-07-10 11:10:16 +02:00
Daniel Schep
dafbf82056 prettier & dep bump 2019-07-08 16:20:07 -04:00
Dom Corvasce
508ed78442 Add SLS_NO_WARNINGS to hide warnings 2019-07-08 18:27:16 +02:00
Daniel Schep
9559afbc39 Merge remote-tracking branch 'origin/master' into sfe-version-info 2019-07-08 12:10:17 -04:00
Daniel Schep
92bd3fd814 SFE plugin & sdk version info
in both `--version` and error output
2019-07-05 14:58:13 -04:00
Mariusz Nowak
02192415be
Improve serverless mock 2019-07-01 13:05:49 +02:00
Mariusz Nowak
d91ed8e57f
Merge branch 'master' into interactive-serverless 2019-07-01 12:48:22 +02:00
Mariusz Nowak
e11cc2c51b
Ensure to expose non-errors in informative way 2019-06-28 15:19:53 +02:00
Mariusz Nowak
223a7d845e
Whitespace 2019-06-28 14:51:06 +02:00
Mariusz Nowak
041e657273
Cleanup region and stage option resolution 2019-06-28 13:32:53 +02:00
Mariusz Nowak
e6ae8983de
Fix lint issues after prettification 2019-06-26 12:43:01 +02:00
Mariusz Nowak
4944f471b1
Prettify 2019-06-26 12:43:01 +02:00
Philipp Muens
6d05d83edb
Merge pull request #6200 from mydiemho/myho/removeRegionDefaultFromBase
Remove default stage value in provider object
2019-06-21 12:54:57 +02:00
Matthieu Napoli
1019939969 #6017 Plugin relative paths should start with ./
Following the discussion in #6261 it should be possible to load plugin via relative paths, as long as the path starts with `./`.

For example:

```yaml
plugins:
    # will load myfirstplugin/plugin.js or myfirstplugin/plugin/index.js
    - './myfirstplugin/plugin'
    # will load mysecondplugin/plugin.js or mysecondplugin/plugin/index.js
    - './mysecondplugin/plugin'
```
2019-06-20 11:55:55 +02:00
Matthieu Napoli
152b4c460a Fix #6017 Allow to load plugin from path
The list of plugins can now contain relative paths.

For example:

```yaml
plugins:
    # will load myfirstplugin/plugin.js or myfirstplugin/plugin/index.js
    - 'myfirstplugin/plugin'
    # will load mysecondplugin/plugin.js or mysecondplugin/plugin/index.js
    - 'mysecondplugin/plugin'
```
2019-06-18 16:12:49 +02:00
Daniel Schep
2db59d6cab use path.basename 2019-06-11 08:52:00 -04:00
Daniel Schep
d7a9d2f877 Don't change signature of loadServiceFileParam 2019-06-11 08:48:58 -04:00
Daniel Schep
970a1cc3f8 refactor getServerlessConfigFile to simply accept a serverless object 2019-06-10 11:19:14 -04:00