Skip to content

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.

1 participant