diff options
author | Luke Karrys <luke@lukekarrys.com> | 2022-04-13 09:29:30 +0300 |
---|---|---|
committer | Nathan Fritz <fritzy@github.com> | 2022-04-14 00:35:52 +0300 |
commit | c057b90d0954ff5b6f2973748ae5d41885b99213 (patch) | |
tree | 2736a47b5d9e50c0362eeaec7a4146f5bfa65b28 /lib | |
parent | aa4a4da336a6ec1963394fdbd06acb173c842d26 (diff) |
feat(config): warn on deprecated configs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/auth/sso.js | 2 | ||||
-rw-r--r-- | lib/commands/install.js | 11 |
2 files changed, 1 insertions, 12 deletions
diff --git a/lib/auth/sso.js b/lib/auth/sso.js index 795eb8972..9812a18cb 100644 --- a/lib/auth/sso.js +++ b/lib/auth/sso.js @@ -36,8 +36,6 @@ function sleep (time) { } const login = async (npm, { creds, registry, scope }) => { - log.warn('deprecated', 'SSO --auth-type is deprecated') - const opts = { ...npm.flatOptions, creds, registry, scope } const { ssoType } = opts diff --git a/lib/commands/install.js b/lib/commands/install.js index ebba02a1b..0a5c827bc 100644 --- a/lib/commands/install.js +++ b/lib/commands/install.js @@ -109,7 +109,6 @@ class Install extends ArboristWorkspaceCmd { const isGlobalInstall = this.npm.config.get('global') const where = isGlobalInstall ? globalTop : this.npm.prefix const forced = this.npm.config.get('force') - const isDev = this.npm.config.get('dev') const scriptShell = this.npm.config.get('script-shell') || undefined // be very strict about engines when trying to update npm itself @@ -140,14 +139,6 @@ class Install extends ArboristWorkspaceCmd { args = ['.'] } - // TODO: Add warnings for other deprecated flags? or remove this one? - if (isDev) { - log.warn( - 'install', - 'Usage of the `--dev` option is deprecated. Use `--include=dev` instead.' - ) - } - const opts = { ...this.npm.flatOptions, auditLevel: null, @@ -163,7 +154,7 @@ class Install extends ArboristWorkspaceCmd { 'preinstall', 'install', 'postinstall', - 'prepublish', // XXX should we remove this finally?? + 'prepublish', // XXX(npm9) should we remove this finally?? 'preprepare', 'prepare', 'postprepare', |