Skip to content

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

Notifications You must be signed in to change notification settings

electricui/yarn-redirect-app-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published