mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-24 10:01:48 -04:00
feat: deprecate store-path config
BREAKING CHANGE: --store-path is not an alias of --store anymore ref #840
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user