mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
refactor(CLI): Remove redundant arg
`path.resolve` by default resolves against working dir
This commit is contained in:
parent
533106515e
commit
8451b8908c
@ -24,7 +24,7 @@ module.exports = async () => {
|
||||
'INVALID_SERVICE_CONFIG_PATH'
|
||||
);
|
||||
}
|
||||
const customConfigPath = path.resolve(process.cwd(), customConfigName);
|
||||
const customConfigPath = path.resolve(customConfigName);
|
||||
if (process.cwd() !== path.dirname(customConfigPath)) {
|
||||
throw new ServerlessError(
|
||||
'Invalid "--config" value: config cannot be nested in sub-directory',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user