Skip to content

Commit

Permalink
refactor(CLI): Improve style for local fallback modern notice
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Oct 18, 2021
1 parent cc71fc9 commit 73c071b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Serverless.js
Expand Up @@ -8,7 +8,7 @@ const ensureArray = require('type/array/ensure');
const ensureIterable = require('type/iterable/ensure');
const ensurePlainObject = require('type/plain-object/ensure');
const clear = require('ext/object/clear');
const { legacy, log } = require('@serverless/utils/log');
const { legacy, log, style } = require('@serverless/utils/log');
const _ = require('lodash');
const CLI = require('./classes/CLI');
const Config = require('./classes/Config');
Expand Down Expand Up @@ -246,7 +246,7 @@ class Serverless {
logDeprecation.defaultMode = 'warn';
logDeprecation.flushBuffered();
legacy.log('Running "serverless" installed locally (in service node_modules)');
log.notice('Running "serverless" from node_modules');
log.notice(style.aside('Running "serverless" from node_modules'));
// TODO: Replace below fallback logic with more straightforward one at top of the CLI
// when we willl drop support for the "disableLocalInstallationFallback" setting
this.isOverridenByLocal = true;
Expand Down

0 comments on commit 73c071b

Please sign in to comment.