Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: "yalc add" flags #68

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

aleclarson
Copy link
Contributor

@aleclarson aleclarson commented Jan 2, 2019

This changes the default behavior of yalc add to link to .yalc/{name} from node_modules instead of copying the contents of .yalc/{name}. You can use --no-link to get the old behavior.

This is better because it means any breakpoints I set in .yalc/{name} will be used no matter what; whereas the current behavior ignores those breakpoints if I use yalc add instead of yalc link.

And once #66 is merged, this commit lets us avoid copying .yalc/{name}/node_modules to node_modules/{name}/node_modules.

The relevant commit: d7a4f56

(Probably wanta merge #59 first)

Changes affecting "yalc add":
- use --link by default
- remove the --file flag (use --no-link instead)
- remove the --save-dev flag (use --dev instead)
- add --no-save flag

Changes affecting the `addPackages` function:
- rename "link" option to "noSave"
- rename "linkDep" option to "link"
@aleclarson aleclarson changed the title fix(add): use symlinks in node_modules refactor: "yalc add" flags Jan 3, 2019
aleclarson added a commit to aleclarson/yalc that referenced this pull request Jan 18, 2019
@aleclarson
Copy link
Contributor Author

Note to self: Cherry-pick aleclarson@75c56cf before this is merged.

aleclarson added a commit to aleclarson/yalc that referenced this pull request Jan 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant