Skip to content

Commit

Permalink
feat(CLI): Deprecate "slss" alias (#8156)
Browse files Browse the repository at this point in the history
  • Loading branch information
crash7 committed Sep 1, 2020
1 parent 06ed01b commit a2d1031
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
12 changes: 12 additions & 0 deletions bin/slss.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env node

// TODO (BREAKING): Remove this file with next major release

'use strict';

require('../lib/utils/logDeprecation')(
'SLSS_CLI_ALIAS',
'Support for "slss" command will be removed with v2.0.0. Use "sls" or "serverless" instead'
);

require('./serverless.js');
6 changes: 6 additions & 0 deletions docs/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ layout: Doc

# Serverless Framework Deprecations

<a name="SLSS_CLI_ALIAS"><div>&nbsp;</div></a>

## `slss` alias

Support for `slss` command will be removed with v2.0.0. Use `sls` or `serverless` instead.

<a name="AWS_FUNCTION_DESTINATIONS_ASYNC_CONFIG"><div>&nbsp;</div></a>

## AWS Lambda Function Destinations `maximumEventAge` & `maximumRetryAttempts`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"main": "lib/Serverless.js",
"bin": {
"serverless": "./bin/serverless.js",
"slss": "./bin/serverless.js",
"slss": "./bin/slss.js",
"sls": "./bin/serverless.js"
},
"dependencies": {
Expand Down

0 comments on commit a2d1031

Please sign in to comment.