feat!: breaking config changes in v8 (#6035)

* auto-install-peers=true
* save-workspace-protocol=rolling
* publishConfig.linkDirectory true by default
* resolve-peers-from-workspace-root is true by default
* set dedupeDirectDeps to true by default in @pnpm/core.
This commit is contained in:
Zoltan Kochan authored and GitHub committed 2023-02-05 11:43:22 +02:00
1 parent 11886f4c26
commit 47e45d717d
128 files changed
+3237 -2770

No files matched your search

+4
View File
@@ -105,6 +105,10 @@ export function parse (dependencyPath: string) {
const parts = dependencyPath.split('/')
if (!_isAbsolute) parts.shift()
const host = _isAbsolute ? parts.shift() : undefined
if (parts.length === 0) return {
host,
isAbsolute: _isAbsolute,
}
const name = parts[0].startsWith('@')
? `${parts.shift()}/${parts.shift()}` // eslint-disable-line @typescript-eslint/restrict-template-expressions
: parts.shift()