HomePhabricator

[Cashtab] Ensure browserify is installed before extension build

Description

[Cashtab] Ensure browserify is installed before extension build

Summary:
T2322

For npm run extension to work properly, browserify must be installed globally. Currently, if the user runs npm run extension without browserify installed globally, some files will be corrupted.

This diff adds a preextension script, so that npm i -g browserify will always be run before npm run extension. This prevents a user from unintentionally building the extension without browserify installed.

Test Plan:

npm uninstall -g browserify
npm run extension

Observe that browserify is installed before the extension script is run. Confirm by checking git status and noting that no files are changed.

Reviewers: #bitcoin_abc, kieran709

Reviewed By: #bitcoin_abc, kieran709

Differential Revision: https://reviews.bitcoinabc.org/D11232

Details

Provenance
bytesofmanAuthored on Mar 18 2022, 19:53
bytesofmanPushed on Mar 18 2022, 22:38
Reviewer
Restricted Project
Differential Revision
D11232: [Cashtab] Ensure browserify is installed before extension build
Parents
rABC08c29ad8d949: [Cashtab] Webpack upgrade, part 5
Branches
Unknown
Tags
Unknown