brignano 2.0.0 → 2.0.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.
package/dist/card.js CHANGED
@@ -3,7 +3,7 @@ import chalk from 'chalk';
3
3
  import { animateBanner, renderBanner } from './banner.js';
4
4
  import { renderCard } from './cardBox.js';
5
5
  import { funFacts, pick, profile, taglines } from './data.js';
6
- import { clearConsole, isInteractive, parseFlags, readVersion, shouldAnimate, shouldFetchLive, unknownFlags, } from './env.js';
6
+ import { isInteractive, parseFlags, readVersion, shouldAnimate, shouldFetchLive, unknownFlags, } from './env.js';
7
7
  import { fetchLive } from './live.js';
8
8
  import { promptForAction, sendEmail, viewResume } from './menu.js';
9
9
  import { renderQr } from './qrcode.js';
@@ -60,7 +60,6 @@ async function main() {
60
60
  // Kick off the live fetch early (don't await yet) so its timeout budget
61
61
  // overlaps the banner render. Skipped entirely when non-interactive/CI.
62
62
  const livePromise = shouldFetchLive(flags) ? fetchLive() : Promise.resolve(null);
63
- clearConsole();
64
63
  // Banner first: an animated violet shimmer when we can animate, otherwise the
65
64
  // static gradient.
66
65
  if (animate) {
package/dist/env.js CHANGED
@@ -69,17 +69,3 @@ export function shouldAnimate(flags) {
69
69
  export function shouldFetchLive(flags) {
70
70
  return isInteractive(flags);
71
71
  }
72
- export function clearConsole() {
73
- const out = process.stdout;
74
- if (typeof out.clear === 'function') {
75
- try {
76
- out.clear();
77
- }
78
- catch {
79
- /* ignore */
80
- }
81
- }
82
- if (process.stdout.isTTY) {
83
- process.stdout.write('\u001b[2J\u001b[0f');
84
- }
85
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brignano",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=20"
package/readme.md CHANGED
@@ -75,6 +75,12 @@ npm run build
75
75
  node dist/card.js
76
76
  ```
77
77
 
78
+ > **Running it inside this repo:** `npx brignano` resolves to *this* package's
79
+ > `bin` (`dist/`), not the published one — and `dist/` is gitignored. On a fresh
80
+ > clone it will exit silently until you build. Use `npm run dev` (runs the
81
+ > TypeScript directly, no build step), or `npm run build` first. To exercise the
82
+ > published package instead, run `npx brignano` from any other directory.
83
+
78
84
  Source lives in `src/` (split into small modules — `card.ts` is the entry/`bin`
79
85
  target) and compiles to `dist/` via `tsc`. `npm run dev` runs the TypeScript
80
86
  directly through `tsx`; `npm run lint` and `npm run format` use