yarn-workspaces-prod

1.0.1 • Public • Published

ywp

A CLI tool to manage workspace dependecies for production.

⤴️ Motivation

Yarn workspaces is great for linking local dependencies but sometines it becomes a pain for releasing to production. This is especially true if you dont use a bundler or if your target is a node environment. This is part of some scripts that I used in multiple projects and maybe is usefull for other people

💿 Installation

$ yarn add yarn-workspaces-prod --dev

📖 Usage

CLI Commands

This ywp package provides 1 CLI command for now.

  • [ywp]

ywp

To build all the yarn workspaces local dependecies from a package run ywp build on the package folder This would read the package.json information to detect the dependencies and run yarn build on each one of them (it assumes 'dist' is the out folder) Run ywp move to move the 'dist' folder to the local node_modules allowing the transpiled code to resolve properly

🍻 Contributing

Welcome♡

Bug Reports or Feature Requests

Please use GitLab Issues.

Implementing

Please use GitLab Merge Requests.

Package Sidebar

Install

npm i yarn-workspaces-prod

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

11.6 kB

Total Files

7

Last publish

Collaborators

  • josh.vazq