create-better-t-stack 2.40.4 → 2.40.5

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/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { createBtsCli } from "./src-BTNbBm4L.js";
2
+ import { createBtsCli } from "./src-jRwaAdo-.js";
3
3
 
4
4
  //#region src/cli.ts
5
5
  createBtsCli().run();
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { builder, createBtsCli, docs, init, router, sponsors } from "./src-BTNbBm4L.js";
2
+ import { builder, createBtsCli, docs, init, router, sponsors } from "./src-jRwaAdo-.js";
3
3
 
4
4
  export { builder, createBtsCli, docs, init, router, sponsors };
@@ -6369,7 +6369,7 @@ async function openUrl(url) {
6369
6369
 
6370
6370
  //#endregion
6371
6371
  //#region src/utils/sponsors.ts
6372
- const SPONSORS_JSON_URL = "https://sponsors.amanv.dev/sponsors.json";
6372
+ const SPONSORS_JSON_URL = "https://sponsors.better-t-stack.dev/sponsors.json";
6373
6373
  async function fetchSponsors(url = SPONSORS_JSON_URL) {
6374
6374
  const s = spinner();
6375
6375
  s.start("Fetching sponsors…");
@@ -6383,23 +6383,30 @@ async function fetchSponsors(url = SPONSORS_JSON_URL) {
6383
6383
  return sponsors$1;
6384
6384
  }
6385
6385
  function displaySponsors(sponsors$1) {
6386
- if (sponsors$1.length === 0) {
6386
+ const { total_sponsors } = sponsors$1.summary;
6387
+ if (total_sponsors === 0) {
6387
6388
  log.info("No sponsors found. You can be the first one! ✨");
6388
6389
  outro(pc.cyan("Visit https://github.com/sponsors/AmanVarshney01 to become a sponsor."));
6389
6390
  return;
6390
6391
  }
6391
- sponsors$1.forEach((entry, idx) => {
6392
- const sponsor = entry.sponsor;
6393
- const displayName = sponsor.name ?? sponsor.login;
6394
- const tier = entry.tierName ? ` (${entry.tierName})` : "";
6395
- log.step(`${idx + 1}. ${pc.green(displayName)}${pc.yellow(tier)}`);
6396
- log.message(` ${pc.dim("GitHub:")} https://github.com/${sponsor.login}`);
6397
- const website = sponsor.websiteUrl ?? sponsor.linkUrl;
6398
- if (website) log.message(` ${pc.dim("Website:")} ${website}`);
6399
- });
6400
- log.message("");
6392
+ displaySponsorsBox(sponsors$1);
6393
+ if (total_sponsors - sponsors$1.specialSponsors.length > 0) log.message(pc.blue(`+${total_sponsors - sponsors$1.specialSponsors.length} more amazing sponsors.\n`));
6401
6394
  outro(pc.magenta("Visit https://github.com/sponsors/AmanVarshney01 to become a sponsor."));
6402
6395
  }
6396
+ function displaySponsorsBox(sponsors$1) {
6397
+ if (sponsors$1.specialSponsors.length === 0) return;
6398
+ let output = `${pc.bold(pc.cyan("-> Special Sponsors"))}\n\n`;
6399
+ sponsors$1.specialSponsors.forEach((sponsor, idx) => {
6400
+ const displayName = sponsor.name ?? sponsor.githubId;
6401
+ const tier = sponsor.tierName ? ` ${pc.yellow(`(${sponsor.tierName})`)}` : "";
6402
+ output += `${pc.green(`• ${displayName}`)}${tier}\n`;
6403
+ output += ` ${pc.dim("GitHub:")} https://github.com/${sponsor.githubId}\n`;
6404
+ const website = sponsor.websiteUrl ?? sponsor.githubUrl;
6405
+ if (website) output += ` ${pc.dim("Website:")} ${website}\n`;
6406
+ if (idx < sponsors$1.specialSponsors.length - 1) output += "\n";
6407
+ });
6408
+ consola$1.box(output);
6409
+ }
6403
6410
 
6404
6411
  //#endregion
6405
6412
  //#region src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-better-t-stack",
3
- "version": "2.40.4",
3
+ "version": "2.40.5",
4
4
  "description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
5
5
  "type": "module",
6
6
  "license": "MIT",