@@ -64,13 +64,12 @@ packdev list
6464
6565### 2. Start Development
6666``` bash
67- packdev init
68- npm install # Now uses local packages and git repositories
67+ packdev init # Automatically installs dependencies
6968```
7069
7170### 3. Finish Development
7271``` bash
73- packdev finish
72+ packdev finish # Automatically restores and reinstalls dependencies
7473git commit -m " implement new features"
7574```
7675
@@ -89,24 +88,45 @@ packdev setup-hooks
8988| ` create-config ` | Setup project | ` packdev create-config ` |
9089| ` add <pkg> <path> ` | Track package | ` packdev add axios ../my-axios ` |
9190| ` add <pkg> <git-url> ` | Track git repo | ` packdev add ui git@github.com:org/ui.git#dev ` |
92- | ` init ` | Start development | ` packdev init ` |
93- | ` finish ` | End development | ` packdev finish ` |
91+ | ` init ` | Start development (auto-installs) | ` packdev init ` |
92+ | ` finish ` | End development (auto-installs) | ` packdev finish ` |
9493| ` status ` | Check current state | ` packdev status ` |
9594
95+ ** Note** : ` init ` and ` finish ` automatically run ` npm install ` (or ` yarn ` /` pnpm ` ). Use ` --no-install ` flag to skip this.
96+
9697## 💡 Common Scenarios
9798
99+ ### Branch Switching Without Conflicts
100+ ``` bash
101+ # Working with local dependencies
102+ packdev init # Development mode active
103+
104+ # Need to switch branches?
105+ packdev finish # Clean package.json instantly
106+
107+ # Switch freely without conflicts
108+ git checkout main # ✅ No "uncommitted changes" warnings
109+ git checkout feature/other # ✅ Clean switching
110+
111+ # Resume work
112+ git checkout your-branch
113+ packdev init # Back to local development
114+ ```
115+
116+ ** Why this helps** : No package.json merge conflicts, clean git status, fast context switching between branches
117+
98118### Testing Local and Git Changes
99119``` bash
100120# Test local changes
101121packdev add @myorg/utils ../shared-utils
102- packdev init
122+ packdev init # Automatically installs dependencies
103123# Test your changes locally
104124
105125# Test git repository features
106126packdev add ui-components https://github.com/myorg/ui.git#experiment
107- packdev init
127+ packdev init # Automatically installs with git dependency
108128# Test experimental branch
109- packdev finish
129+ packdev finish # Automatically restores and reinstalls
110130```
111131
112132### Team Collaboration
@@ -117,14 +137,14 @@ git commit -m "add local dev config"
117137
118138# Team members use same setup
119139git pull
120- packdev init
140+ packdev init # Automatically installs for team member
121141```
122142
123143### Multiple Projects
124144``` bash
125145# Same local package in multiple projects
126- cd project-a && packdev add shared ../shared && packdev init
127- cd project-b && packdev add shared ../shared && packdev init
146+ cd project-a && packdev add shared ../shared && packdev init # Auto-installs
147+ cd project-b && packdev add shared ../shared && packdev init # Auto-installs
128148# Both projects now use local ../shared
129149```
130150
0 commit comments