Mariusz Nowak
2967065bc7
fix(API): Ensure config.servicePath is config.serviceDir live alias
2021-04-21 17:14:27 +02:00
Mariusz Nowak
ff589baef4
fix(API): Ensure serverless.config.servicePath
...
Accidentally removed with #9307
2021-04-20 14:54:49 +02:00
Mariusz Nowak
c02cd06d90
feat: Refactor constructor to accept new service configuration options
...
`serviceDir` and `configurationFilename` options are favored over of `configurationPath`
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
9b830728df
refactor: Ensure to remove internal .env resolution with next major
2021-03-31 12:25:49 +02:00
Mariusz Nowak
80bddce667
fix(CLI): Fix commands pass to local installation
2021-03-31 12:25:49 +02:00
Mariusz Nowak
8142515bfc
refactor(CLI): Ensure to have up to date commands
...
When invoked by outdated global installation
2021-03-26 10:11:57 +01:00
Mariusz Nowak
2d4d05d425
refactor(CLI): Pass resolved commands options to local installation
2021-03-26 10:11:57 +01:00
Mariusz Nowak
841e847c20
fix(Variables): Ensure necessary resolution interface for plugins
2021-03-23 09:07:51 +01:00
Mariusz Nowak
a48117041c
refactor(CLI): Integrate isHelpRequest into resolveInput util
2021-03-18 14:36:18 +01:00
Mariusz Nowak
116fe85fbe
refactor(CLI): Schema for @serverless/enterprise-plugin commands
...
This plugin is scheduled to be integrated into this repository, therefore maintaining the schema here is justified at this point
2021-03-16 09:34:33 +01:00
Mariusz Nowak
d6c7d97dc6
fix(Variables): Ensure to apply intialization patch unconditionally
2021-03-03 15:23:36 +01:00
Mariusz Nowak
25dd575a4d
fix(Variables): Fix variables setup for external plugins usage
2021-03-03 13:09:18 +01:00
Mariusz Nowak
10e1dda23b
refactor: Ensure to pass "isConfigurationResolved" to local instance
2021-03-03 10:13:32 +01:00
Mariusz Nowak
7aac480fbb
refactor(Variables): Do not run old resolver when no vars to resolve
2021-03-02 13:54:16 +01:00
Mariusz Nowak
a9e3a66735
refactor(CLI): Resolve .env files before intializing Serverless instance
2021-02-25 16:57:11 +01:00
Mariusz Nowak
5ca4b639fb
refactor: Remove "async" mark from sync function
2021-02-25 16:57:11 +01:00
Mariusz Nowak
b5ad0e4a42
refactor(CLI): Rename load-dotenv util
2021-02-25 16:57:11 +01:00
Mariusz Nowak
1eaa6260aa
fix(CLI): Move deprecation report to init phase
...
As it's the only phase at which `_isInvokedByGlobalInstallation` is guaranteed to be resolved
2021-02-11 14:01:41 +01:00
Mariusz Nowak
16950d098b
refactor(CLI): Remove internal CLI arguments parsing
2021-02-11 14:01:41 +01:00
Mariusz Nowak
21c9f26ea6
refactor: Patch handling of isInvokedByGlobalInstallation flag
2021-02-11 14:01:41 +01:00
Mike Fogel
9e32dc40bc
chore: Improve deprecation warning related to .env files ( #8926 )
2021-02-11 11:44:27 +01:00
Mariusz Nowak
31f73cead3
refactor: Pass __isInvokedByGlobalInstallation with constructor config
...
Thanks to that we can prevent programmatic usage deprecations as invoked in constructor, when constructor is intialized by global CLI
2021-02-02 08:53:24 +01:00
Mariusz Nowak
77c7d55f62
refactor: Prefix private property with "_"
2021-02-02 08:53:24 +01:00
Mariusz Nowak
fa626a8e22
fix(CLI): Ensure to not diplay programmatic use deprecation
2021-02-02 08:53:24 +01:00
Mariusz Nowak
9b7315f080
fix(CLI): Fix resolution of service path with nested config involved
2021-01-26 16:25:19 +01:00
Mariusz Nowak
3c9b8189f2
refactor: Remove inaccurate comment
2021-01-26 16:25:19 +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
Mariusz Nowak
66f289836d
refactor: Ensure no side effects from config properties
2021-01-22 14:57:10 +01:00
Mariusz Nowak
20e2c00e1d
refactor: Move internal configuration resolution to init method
2021-01-22 14:57:10 +01:00
Mariusz Nowak
ee3dd0a6bc
refactor: Refactor to async/await
2021-01-22 14:57:10 +01:00
Mariusz Nowak
813f7d3dbe
fix: Ensure to report validation errors with ServerlessError
2021-01-22 14:57:10 +01:00
Mariusz Nowak
90a9ffed63
refactor: Reorder requires
2021-01-22 14:57:10 +01:00
Mariusz Nowak
b23bfdbf6a
refactor(CLI): Seclude service config path resolution out of internals
2021-01-18 16:19:12 +01:00
Piotr Grzesik
30015eafd2
refactor: Refactor Serverless.run to async
2021-01-12 14:09:13 +01:00
Mariusz Nowak
87790e50bd
refactor: Seclude ServerlessError into lib/serverless-error.js
2021-01-11 19:39:42 +01:00
Mariusz Nowak
0c5898bb01
refactor: Improve variable name
2021-01-08 15:06:14 +01:00
Mariusz Nowak
9d78348289
refactor: Seclude cli/resolve-local-serverless-path util
2021-01-08 15:06:14 +01:00
Piotr Grzesik
d1a22c85f2
feat(CLI): Conditional support for .env files ( #8413 )
2020-11-25 15:18:01 +01:00
Mariusz Nowak
c2712183a5
refactor(Config Schema): Run schema validation only in service context
2020-10-30 15:26:25 +01:00
Mariusz Nowak
e3f454680e
feat: Opt-in auto update global installation
2020-10-29 12:28:11 +01:00
Mariusz Nowak
861686bbea
refactor: Refactor to async/await
2020-09-10 13:26:17 +02:00
Mariusz Nowak
dfc78396c7
feat(CLI): Fallback to service local serverless installation by default
...
BREAKING CHANGE:
When globally installed `serverless` CLI is invoked in a context of a service, which has locally installed (in its `node_modules`) `serverless`. The locally installed CLI will be (by default) run instead of a global one.
2020-09-10 13:26:17 +02:00
Mariusz Nowak
f9e955c8f8
feat(Analytics): Recognize four different installation modes
2020-09-04 14:06:31 +02:00
Mariusz Nowak
7accad6eb9
refactor: Prevent is local detection on locally installed
2020-09-04 14:06:31 +02:00
Mariusz Nowak
11fb8889c8
refactor: Remove update-notifier notifications
...
They're replaced with backend notifications, through which we can notify about updates across different major releases
2020-09-03 17:19:20 +02:00
Mariusz Nowak
246e4a6756
feat(Analytics): Introduce "isLocallyInstalled" characteristics
2020-09-02 13:04:59 +02:00
Mariusz Nowak
9fb62f1138
feat(CLI): Optionally fallback to local installation of "serverless"
2020-09-02 13:04:59 +02:00