feat: deprecate store-path config

BREAKING CHANGE:

--store-path is not an alias of --store anymore

ref #840
This commit is contained in:
Zoltan Kochan
2018-05-14 23:21:48 +03:00
parent 2ab71dcf68
commit f6fd0c323b
2 changed files with 0 additions and 6 deletions

View File

@@ -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)

View File

@@ -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 {