stackpatch 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -58,7 +58,7 @@ StackPatch solves this by:
58
58
  Navigate to your Next.js project directory and run:
59
59
 
60
60
  ```bash
61
- npx stackpatch add auth
61
+ npx stackpatch@latest add auth
62
62
  ```
63
63
 
64
64
  The CLI will guide you through an interactive setup:
@@ -72,18 +72,23 @@ The CLI will guide you through an interactive setup:
72
72
  ### Create New Project
73
73
 
74
74
  ```bash
75
- # Using npx (recommended - works immediately)
75
+ # Using npx (recommended - always gets latest version)
76
+ npx stackpatch@latest create my-app
77
+ # or
78
+ npx create-stackpatch@latest my-app
79
+ # or (shorter, but may use cached version)
76
80
  npx stackpatch create my-app
77
81
 
78
82
  # Or without project name (will prompt)
79
- npx stackpatch create
83
+ npx stackpatch@latest create
80
84
 
81
85
  # Using bunx (Bun's npx equivalent - if you have Bun installed)
82
86
  bunx create-stackpatch@latest my-app
83
87
  ```
84
88
 
85
89
  > **Note:**
86
- > - `npx stackpatch create` works immediately and doesn't require the package to be published
90
+ > - `npx stackpatch@latest create` or `npx create-stackpatch@latest` always gets the latest version from npm
91
+ > - `npx stackpatch create` may use a cached version - use `@latest` to force the latest version
87
92
  > - `npm create stackpatch@latest` will work after the package is published to npm
88
93
  > - All commands will prompt you for a project name if not provided
89
94
  > - The CLI automatically detects and uses Bun if available, otherwise falls back to Node.js with tsx
@@ -93,7 +98,7 @@ bunx create-stackpatch@latest my-app
93
98
  If you want to undo a StackPatch installation:
94
99
 
95
100
  ```bash
96
- npx stackpatch revert
101
+ npx stackpatch@latest revert
97
102
  ```
98
103
 
99
104
  This will:
@@ -107,7 +112,7 @@ This will:
107
112
 
108
113
  ### Authentication Setup
109
114
 
110
- When you run `npx stackpatch add auth`, StackPatch automatically generates:
115
+ When you run `npx stackpatch@latest add auth`, StackPatch automatically generates:
111
116
 
112
117
  - ✅ **Better Auth configuration** (`lib/auth.ts` or `src/lib/auth.ts`)
113
118
  - ✅ **Auth client utilities** (`lib/auth-client.ts` or `src/lib/auth-client.ts`)
@@ -131,7 +136,7 @@ StackPatch automatically:
131
136
 
132
137
  ## 🔐 OAuth Setup
133
138
 
134
- When you run `npx stackpatch add auth`, you'll be prompted to select which OAuth providers you want to configure. StackPatch will only set up the providers you select.
139
+ When you run `npx stackpatch@latest add auth`, you'll be prompted to select which OAuth providers you want to configure. StackPatch will only set up the providers you select.
135
140
 
136
141
  ### Google OAuth
137
142
 
@@ -251,7 +256,7 @@ See Better Auth documentation for advanced configuration: https://better-auth.de
251
256
 
252
257
  ## 📁 File Locations
253
258
 
254
- After running `npx stackpatch add auth`, you'll find files in locations that match your project structure:
259
+ After running `npx stackpatch@latest add auth`, you'll find files in locations that match your project structure:
255
260
 
256
261
  ### If your app is in `app/`:
257
262
  - **Auth pages**: `app/auth/login/page.tsx`, `app/auth/signup/page.tsx`
@@ -402,7 +407,7 @@ StackPatch automatically detects and uses the correct structure!
402
407
  If you want to undo a StackPatch installation:
403
408
 
404
409
  ```bash
405
- npx stackpatch revert
410
+ npx stackpatch@latest revert
406
411
  ```
407
412
 
408
413
  This command will:
@@ -437,7 +442,7 @@ Every installation is tracked:
437
442
  - ✅ All added files are recorded
438
443
  - ✅ All modified files are backed up before changes
439
444
  - ✅ Manifest file stores installation metadata
440
- - ✅ Safe reversion with `npx stackpatch revert`
445
+ - ✅ Safe reversion with `npx stackpatch@latest revert`
441
446
 
442
447
  ## 🤝 Contributing
443
448