boardui 0.4.0 → 0.4.1

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1233,7 +1233,7 @@ ${proItem.example}
1233
1233
  });
1234
1234
  }
1235
1235
  const lines = [
1236
- `Installed ${items.map((item) => item.name).join(", ")} into ${targetRoot}.`,
1236
+ `Resolved ${items.length} item${items.length === 1 ? "" : "s"} (${items.map((item) => item.name).join(", ")}) into ${targetRoot}: ${written} file${written === 1 ? "" : "s"} written, ${report.skipped.length} already present and untouched.`,
1237
1237
  "",
1238
1238
  ...report.created.map((relPath) => ` created ${relPath}`),
1239
1239
  ...report.overwritten.map((relPath) => ` overwrote ${relPath}`),
@@ -1303,6 +1303,9 @@ ${proPitch(lockedPro)}`;
1303
1303
  source: "mcp"
1304
1304
  });
1305
1305
  }
1306
+ const staleStylesheet = ["app/globals.css", "src/app/globals.css"].find(
1307
+ (rel) => existsSync6(path7.join(project.cwd, rel))
1308
+ );
1306
1309
  const lines = [
1307
1310
  `BoardUI initialized in ${project.cwd}.`,
1308
1311
  ...project.isNextJs ? [] : [
@@ -1320,7 +1323,11 @@ ${proPitch(lockedPro)}`;
1320
1323
  "Finish the wiring:",
1321
1324
  '1. Import the BoardUI stylesheet in the root layout (app/layout.tsx): import "@/styles/globals.css"; \u2014 replacing the default create-next-app "./globals.css" import.',
1322
1325
  '2. Make sure PostCSS uses Tailwind v4 (postcss.config.mjs): export default { plugins: { "@tailwindcss/postcss": {} } };',
1323
- '3. Install components with install_components, e.g. ["button", "select", "date-picker"].'
1326
+ '3. Install components with install_components, e.g. ["button", "select", "date-picker"].',
1327
+ ...staleStylesheet ? [
1328
+ "",
1329
+ `Note: ${staleStylesheet} is create-next-app's stylesheet, superseded by styles/globals.css \u2014 once step 1's import is swapped, that file is safe to delete.`
1330
+ ] : []
1324
1331
  ];
1325
1332
  return text(lines.join("\n") + aliasWarning(project));
1326
1333
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boardui",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Add BoardUI components to your project.",
5
5
  "license": "MIT",
6
6
  "type": "module",