From f6fd0c323ba67faec350b4876ff1aa03a34ad1d4 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Mon, 14 May 2018 23:21:48 +0300 Subject: [PATCH] feat: deprecate store-path config BREAKING CHANGE: --store-path is not an alias of --store anymore ref #840 --- packages/config/src/index.ts | 1 - packages/pnpm/src/main.ts | 5 ----- 2 files changed, 6 deletions(-) diff --git a/packages/config/src/index.ts b/packages/config/src/index.ts index c31d04b212..7a9cb24aad 100644 --- a/packages/config/src/index.ts +++ b/packages/config/src/index.ts @@ -38,7 +38,6 @@ export const types = Object.assign({ 'side-effects-cache': Boolean, 'side-effects-cache-readonly': Boolean, 'store': path, - 'store-path': path, // DEPRECATE! store should be used 'use-store-server': Boolean, 'verify-store-integrity': Boolean, }, npmTypes.types) diff --git a/packages/pnpm/src/main.ts b/packages/pnpm/src/main.ts index 9d5ef3f178..9cc64b2a0e 100644 --- a/packages/pnpm/src/main.ts +++ b/packages/pnpm/src/main.ts @@ -185,11 +185,6 @@ export default async function run (argv: string[]) { // NOTE: we defer the next stage, otherwise reporter might not catch all the logs await new Promise((resolve, reject) => { setTimeout(() => { - if (opts.storePath && !opts.store) { - logger.warn('the `store-path` config is deprecated. Use `store` instead.') - opts.store = opts.storePath - } - // `pnpm install ""` is going to be just `pnpm install` const cliArgs = cliConf.argv.remain.slice(1).filter(Boolean) try {