electricui / yarn-redirect-app-builder

A Yarn v2 plugin to redirect app-builder-bin to a copy that doesn't include the full build matrix, saving over 100MB per download.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@electricui/yarn-redirect-app-builder

For Yarn v2.

To install, import from the repository.

yarn plugin import https://raw.githubusercontent.com/electricui/yarn-redirect-app-builder/master/bundles/%40yarnpkg/plugin-redirect-app-builder.js

The app-builder package publishes the matrix of build platforms and architectures in every download. This plugin works in conjunction with a fork of app-builder that publishes each OS and Arch separately. This saves about 100MB per installation.

This plugin redirects dependencies on app-builder-bin to @electricui/app-builder-bin-darwin-x64 for example on a 64bit MacOS machine.

Configuration

Configuration can be set in your .yarncr.yml file.

The package redirected to can be changed if you want to use your own version of the packages.

redirectAppBuilderTemplate: '@electricui/app-builder-bin-{platform}-{arch}'

About

A Yarn v2 plugin to redirect app-builder-bin to a copy that doesn't include the full build matrix, saving over 100MB per download.

License:MIT License


Languages

Language:TypeScript 100.0%