[NPMCLI-96] Set up tab autocompletion on installation Created: 07/Feb/17  Updated: 24/Mar/22

Status: Open
Project: Magnolia CLI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Cedric Reichenbach Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: blocked, quickwin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
caused by NPMCLI-69 Command to append bash completion to ... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:

 Description   

Due to a bug in npm, preuninstall scripts suffer from a racing condition sometimes causing uninstallation to fail if requiring third-party modules.

As soon as above bug is resolved, it should be enough to add

"postinstall": "mgnl install-tab-completion",
"preuninstall": "mgnl install-tab-completion uninstall"

(or direct calls to the installation script) to the scripts section of package.json.


Generated at Mon Feb 12 04:46:29 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.