buildx-cli 1.8.23 → 1.8.24

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
@@ -258,6 +258,25 @@ npx buildx-cli project:init --project-id hello-world --name "Hello World" --app
258
258
  npx buildx-cli project:init --project-id hello-world --name "Hello World" --app expo
259
259
  ```
260
260
 
261
+ #### `project:add-pack`
262
+ Add Buildx pack dependencies into an existing project package.
263
+
264
+ Key options:
265
+ - `--pack <ui-packs|sdk>`: pack to install
266
+ - `--version <version>`: optional version override
267
+ - `--dir <path>`: target project directory (default current directory)
268
+ - `--manager <bun|pnpm|npm|yarn>`: force package manager
269
+ - `--json`: print machine-readable result
270
+
271
+ Examples:
272
+ ```bash
273
+ # add UI packs with default version
274
+ npx buildx-cli project:add-pack --pack ui-packs
275
+
276
+ # add sdk in specific directory with pnpm
277
+ npx buildx-cli project:add-pack --pack sdk --manager pnpm --dir ./my-project
278
+ ```
279
+
261
280
  Generated auth-aware structure:
262
281
  - Next.js scaffold source:
263
282
  - `project:init --app next` runs `npx create-next-app@latest` first (TypeScript + App Router)
@@ -265,6 +284,8 @@ Generated auth-aware structure:
265
284
  - Next.js template uses route groups for separation:
266
285
  - `app/(public)/...` (sign-in/sign-up/forgot-password)
267
286
  - `app/(private)/...` (protected dashboard)
287
+ - preserves create-next-app root `app/layout.tsx` (no hard overwrite)
288
+ - starter root `app/page.tsx` includes generic `Dashboard`, `Sign in`, and `Sign up` links with usage description
268
289
  - Expo template uses auth-state route split in `App.tsx`:
269
290
  - public screen tree for unauthenticated users
270
291
  - private screen tree for authenticated users
@@ -275,12 +296,15 @@ Generated auth-aware structure:
275
296
  UI package dependency resolution:
276
297
  - generated apps depend on package from env `BUILDX_UI_PACKS_PACKAGE`
277
298
  - default package name is `buildx-react-ui-packs`
299
+ - default package version is `^1.8.3` (override via `BUILDX_UI_PACKS_VERSION`)
278
300
  - set a scoped package before seeding when unscoped npm name is unavailable:
279
301
  - `BUILDX_UI_PACKS_PACKAGE=@your-scope/buildx-react-ui-packs npx buildx-cli project:init ...`
280
302
 
281
303
  Notes:
282
304
  - Next scaffold requires npm registry connectivity for `create-next-app`.
283
305
  - Use `--dry-run` to preview file plan without running scaffold commands.
306
+ - Generated projects are package-manager agnostic (no forced `packageManager` lock in generated `package.json`).
307
+ - Next `app/globals.css` is normalized with Tailwind `@source` to include UI pack classes from `node_modules` (prevents missing utilities like `grid-cols-2` from shared components).
284
308
 
285
309
  ### New Project Maintenance
286
310
 
package/dist/README.md CHANGED
@@ -258,6 +258,25 @@ npx buildx-cli project:init --project-id hello-world --name "Hello World" --app
258
258
  npx buildx-cli project:init --project-id hello-world --name "Hello World" --app expo
259
259
  ```
260
260
 
261
+ #### `project:add-pack`
262
+ Add Buildx pack dependencies into an existing project package.
263
+
264
+ Key options:
265
+ - `--pack <ui-packs|sdk>`: pack to install
266
+ - `--version <version>`: optional version override
267
+ - `--dir <path>`: target project directory (default current directory)
268
+ - `--manager <bun|pnpm|npm|yarn>`: force package manager
269
+ - `--json`: print machine-readable result
270
+
271
+ Examples:
272
+ ```bash
273
+ # add UI packs with default version
274
+ npx buildx-cli project:add-pack --pack ui-packs
275
+
276
+ # add sdk in specific directory with pnpm
277
+ npx buildx-cli project:add-pack --pack sdk --manager pnpm --dir ./my-project
278
+ ```
279
+
261
280
  Generated auth-aware structure:
262
281
  - Next.js scaffold source:
263
282
  - `project:init --app next` runs `npx create-next-app@latest` first (TypeScript + App Router)
@@ -265,6 +284,8 @@ Generated auth-aware structure:
265
284
  - Next.js template uses route groups for separation:
266
285
  - `app/(public)/...` (sign-in/sign-up/forgot-password)
267
286
  - `app/(private)/...` (protected dashboard)
287
+ - preserves create-next-app root `app/layout.tsx` (no hard overwrite)
288
+ - starter root `app/page.tsx` includes generic `Dashboard`, `Sign in`, and `Sign up` links with usage description
268
289
  - Expo template uses auth-state route split in `App.tsx`:
269
290
  - public screen tree for unauthenticated users
270
291
  - private screen tree for authenticated users
@@ -275,12 +296,15 @@ Generated auth-aware structure:
275
296
  UI package dependency resolution:
276
297
  - generated apps depend on package from env `BUILDX_UI_PACKS_PACKAGE`
277
298
  - default package name is `buildx-react-ui-packs`
299
+ - default package version is `^1.8.3` (override via `BUILDX_UI_PACKS_VERSION`)
278
300
  - set a scoped package before seeding when unscoped npm name is unavailable:
279
301
  - `BUILDX_UI_PACKS_PACKAGE=@your-scope/buildx-react-ui-packs npx buildx-cli project:init ...`
280
302
 
281
303
  Notes:
282
304
  - Next scaffold requires npm registry connectivity for `create-next-app`.
283
305
  - Use `--dry-run` to preview file plan without running scaffold commands.
306
+ - Generated projects are package-manager agnostic (no forced `packageManager` lock in generated `package.json`).
307
+ - Next `app/globals.css` is normalized with Tailwind `@source` to include UI pack classes from `node_modules` (prevents missing utilities like `grid-cols-2` from shared components).
284
308
 
285
309
  ### New Project Maintenance
286
310