fix(setup): add newline to the end of shell configs (#7232)

close #7227
This commit is contained in:
Zoltan Kochan
2023-10-21 14:03:06 +03:00
committed by GitHub
parent e34f6fba90
commit 34654835d7
3 changed files with 66 additions and 44 deletions

View File

@@ -0,0 +1,6 @@
---
"@pnpm/plugin-commands-setup": patch
"pnpm": patch
---
`pnpm setup` should add a newline at the end of the updated shell config file [#7227](https://github.com/pnpm/pnpm/issues/7227).

View File

@@ -31,7 +31,7 @@
"homepage": "https://github.com/pnpm/pnpm/blob/main/packages/plugin-commands-setup#readme",
"dependencies": {
"@pnpm/cli-utils": "workspace:*",
"@pnpm/os.env.path-extender": "^0.2.11",
"@pnpm/os.env.path-extender": "^0.2.12",
"render-help": "^1.0.3"
},
"funding": "https://opencollective.com/pnpm",

102
pnpm-lock.yaml generated
View File

@@ -2650,8 +2650,8 @@ importers:
specifier: ^5.0.0
version: 5.0.0
'@pnpm/os.env.path-extender':
specifier: ^0.2.11
version: 0.2.11
specifier: ^0.2.12
version: 0.2.12
render-help:
specifier: ^1.0.3
version: 1.0.3
@@ -8396,15 +8396,15 @@ packages:
validate-npm-package-name: 4.0.0
dev: false
/@pnpm/os.env.path-extender-posix@0.2.9:
resolution: {integrity: sha512-/xw5RdCKMHNf/8B8Z7c0hZnSOxW2X5DMw786rCknaFzNGGSQPQ4ZrVcrWCEWTEezWlhrdWNdBtEWyWjFjvOLOg==}
/@pnpm/os.env.path-extender-posix@0.2.10:
resolution: {integrity: sha512-d/iKc42MXRunpgzGVhUl9bKfriydfAP+AmA/HmYZq13xI/ljx2NYlFnZdDeXHa8yzjzSyu1v5hMfUjgYlA3U4g==}
engines: {node: '>=12.22.0'}
dependencies:
'@pnpm/error': 4.0.1
dev: false
/@pnpm/os.env.path-extender-windows@0.2.4:
resolution: {integrity: sha512-7mm3kiOt4NUhX2ki1x0UDpSTrDk6MTrFF/z+HXRExhpSeGwgfUGqWVyWhHlrw9AZu5Cb8oLkXKgnXbMSJakRZw==}
/@pnpm/os.env.path-extender-windows@0.2.5:
resolution: {integrity: sha512-LHrJuqruILEA4bgzGNIaTqU7w/WTnrspGHJ9YVo+1iBa97pP7jKQhwhjpztsGuOWGB8X/l1ifEVVBPiVkPv62w==}
engines: {node: '>=12.22.0'}
dependencies:
'@pnpm/error': 4.0.1
@@ -8412,12 +8412,12 @@ packages:
string.prototype.matchall: 4.0.7
dev: false
/@pnpm/os.env.path-extender@0.2.11:
resolution: {integrity: sha512-oa1IPfnKMpzi0C88fSmUcGpif91kx6pjxX3OULQo7tDEnyY/Qn+CKcqrjBn4Ne+irPaSreATdEb6OC72z7bUzQ==}
/@pnpm/os.env.path-extender@0.2.12:
resolution: {integrity: sha512-n3i33LKSo8r3HKjNqmM5oj3C+4PSA0vwPEuvsFYDWrzJl72PFqM4qDvAYhtIksWjoZsXSWBMb3vo9jVKJbJfhg==}
engines: {node: '>=12.22.0'}
dependencies:
'@pnpm/os.env.path-extender-posix': 0.2.9
'@pnpm/os.env.path-extender-windows': 0.2.4
'@pnpm/os.env.path-extender-posix': 0.2.10
'@pnpm/os.env.path-extender-windows': 0.2.5
dev: false
/@pnpm/package-is-installable@8.0.2(@pnpm/logger@5.0.0):
@@ -9798,7 +9798,7 @@ packages:
/array-buffer-byte-length@1.0.0:
resolution: {integrity: sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
is-array-buffer: 3.0.2
/array-find-index@1.0.2:
@@ -9867,7 +9867,7 @@ packages:
engines: {node: '>= 0.4'}
dependencies:
array-buffer-byte-length: 1.0.0
call-bind: 1.0.2
call-bind: 1.0.5
define-properties: 1.2.1
es-abstract: 1.22.2
get-intrinsic: 1.2.1
@@ -10247,6 +10247,13 @@ packages:
function-bind: 1.1.2
get-intrinsic: 1.2.1
/call-bind@1.0.5:
resolution: {integrity: sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==}
dependencies:
function-bind: 1.1.2
get-intrinsic: 1.2.1
set-function-length: 1.1.1
/callsites@3.1.0:
resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
engines: {node: '>=6'}
@@ -11343,7 +11350,7 @@ packages:
array-buffer-byte-length: 1.0.0
arraybuffer.prototype.slice: 1.0.2
available-typed-arrays: 1.0.5
call-bind: 1.0.2
call-bind: 1.0.5
es-set-tostringtag: 2.0.1
es-to-primitive: 1.2.1
function.prototype.name: 1.1.6
@@ -11364,7 +11371,7 @@ packages:
is-string: 1.0.7
is-typed-array: 1.1.12
is-weakref: 1.0.2
object-inspect: 1.13.0
object-inspect: 1.13.1
object-keys: 1.1.1
object.assign: 4.1.4
regexp.prototype.flags: 1.5.1
@@ -11378,7 +11385,7 @@ packages:
typed-array-byte-offset: 1.0.0
typed-array-length: 1.0.4
unbox-primitive: 1.0.2
which-typed-array: 1.1.11
which-typed-array: 1.1.13
/es-set-tostringtag@2.0.1:
resolution: {integrity: sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==}
@@ -12200,7 +12207,7 @@ packages:
resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==}
engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
define-properties: 1.2.1
es-abstract: 1.22.2
functions-have-names: 1.2.3
@@ -12339,7 +12346,7 @@ packages:
resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==}
engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
get-intrinsic: 1.2.1
/get-tsconfig@4.7.2:
@@ -12908,7 +12915,7 @@ packages:
/is-array-buffer@3.0.2:
resolution: {integrity: sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
get-intrinsic: 1.2.1
is-typed-array: 1.1.12
@@ -12924,7 +12931,7 @@ packages:
resolution: {integrity: sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==}
engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
has-tostringtag: 1.0.0
/is-buffer@1.1.6:
@@ -13089,7 +13096,7 @@ packages:
resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==}
engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
has-tostringtag: 1.0.0
/is-relative@1.0.0:
@@ -13102,7 +13109,7 @@ packages:
/is-shared-array-buffer@1.0.2:
resolution: {integrity: sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
/is-stream@2.0.1:
resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}
@@ -13137,7 +13144,7 @@ packages:
resolution: {integrity: sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==}
engines: {node: '>= 0.4'}
dependencies:
which-typed-array: 1.1.11
which-typed-array: 1.1.13
/is-typedarray@1.0.0:
resolution: {integrity: sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==}
@@ -13161,7 +13168,7 @@ packages:
/is-weakref@1.0.2:
resolution: {integrity: sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
/is-windows@1.0.2:
resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==}
@@ -14863,8 +14870,8 @@ packages:
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
engines: {node: '>=0.10.0'}
/object-inspect@1.13.0:
resolution: {integrity: sha512-HQ4J+ic8hKrgIt3mqk6cVOVrW2ozL4KdvHlqpBv9vDYWx9ysAgENAdvy4FoGF+KFdhR7nQTNm5J0ctAeOwn+3g==}
/object-inspect@1.13.1:
resolution: {integrity: sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==}
/object-keys@1.1.1:
resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}
@@ -14874,7 +14881,7 @@ packages:
resolution: {integrity: sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==}
engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
define-properties: 1.2.1
has-symbols: 1.0.3
object-keys: 1.1.1
@@ -15751,7 +15758,7 @@ packages:
resolution: {integrity: sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==}
engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
define-properties: 1.2.1
set-function-name: 2.0.1
@@ -16051,7 +16058,7 @@ packages:
resolution: {integrity: sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==}
engines: {node: '>=0.4'}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
get-intrinsic: 1.2.1
has-symbols: 1.0.3
isarray: 2.0.5
@@ -16098,7 +16105,7 @@ packages:
/safe-regex-test@1.0.0:
resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
get-intrinsic: 1.2.1
is-regex: 1.1.4
@@ -16165,6 +16172,15 @@ packages:
resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}
requiresBuild: true
/set-function-length@1.1.1:
resolution: {integrity: sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==}
engines: {node: '>= 0.4'}
dependencies:
define-data-property: 1.1.1
get-intrinsic: 1.2.1
gopd: 1.0.1
has-property-descriptors: 1.0.0
/set-function-name@2.0.1:
resolution: {integrity: sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==}
engines: {node: '>= 0.4'}
@@ -16224,9 +16240,9 @@ packages:
/side-channel@1.0.4:
resolution: {integrity: sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
get-intrinsic: 1.2.1
object-inspect: 1.13.0
object-inspect: 1.13.1
/signal-exit@3.0.7:
resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
@@ -16569,7 +16585,7 @@ packages:
/string.prototype.matchall@4.0.7:
resolution: {integrity: sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg==}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
define-properties: 1.2.1
es-abstract: 1.22.2
get-intrinsic: 1.2.1
@@ -16583,21 +16599,21 @@ packages:
resolution: {integrity: sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==}
engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
define-properties: 1.2.1
es-abstract: 1.22.2
/string.prototype.trimend@1.0.7:
resolution: {integrity: sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
define-properties: 1.2.1
es-abstract: 1.22.2
/string.prototype.trimstart@1.0.7:
resolution: {integrity: sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
define-properties: 1.2.1
es-abstract: 1.22.2
@@ -17157,7 +17173,7 @@ packages:
resolution: {integrity: sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==}
engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
get-intrinsic: 1.2.1
is-typed-array: 1.1.12
@@ -17165,7 +17181,7 @@ packages:
resolution: {integrity: sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==}
engines: {node: '>= 0.4'}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
for-each: 0.3.3
has-proto: 1.0.1
is-typed-array: 1.1.12
@@ -17175,7 +17191,7 @@ packages:
engines: {node: '>= 0.4'}
dependencies:
available-typed-arrays: 1.0.5
call-bind: 1.0.2
call-bind: 1.0.5
for-each: 0.3.3
has-proto: 1.0.1
is-typed-array: 1.1.12
@@ -17183,7 +17199,7 @@ packages:
/typed-array-length@1.0.4:
resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
for-each: 0.3.3
is-typed-array: 1.1.12
@@ -17218,7 +17234,7 @@ packages:
/unbox-primitive@1.0.2:
resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==}
dependencies:
call-bind: 1.0.2
call-bind: 1.0.5
has-bigints: 1.0.2
has-symbols: 1.0.3
which-boxed-primitive: 1.0.2
@@ -17637,12 +17653,12 @@ packages:
load-yaml-file: 0.2.0
path-exists: 4.0.0
/which-typed-array@1.1.11:
resolution: {integrity: sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew==}
/which-typed-array@1.1.13:
resolution: {integrity: sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==}
engines: {node: '>= 0.4'}
dependencies:
available-typed-arrays: 1.0.5
call-bind: 1.0.2
call-bind: 1.0.5
for-each: 0.3.3
gopd: 1.0.1
has-tostringtag: 1.0.0