@flesh-and-blood/cards 6.0.3 → 6.0.4

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
@@ -29,7 +29,7 @@ Card data is sourced from the amazing
29
29
 
30
30
  ## The data pipeline
31
31
 
32
- `src/index.ts` is a **~12 MB generated file that is committed, never hand-edit it.** Regenerate
32
+ `src/cards.ts`, the card array, is a **generated file that is committed, never hand-edit it.** Regenerate
33
33
  everything with `npm run full`, which runs end to end.
34
34
 
35
35
  ### transform: `scripts/index.ts`
@@ -39,7 +39,9 @@ Reads the source data, computes derived fields, and writes the output:
39
39
  1. **Spoiled** cards from `scripts/Spoiled/*.csv` (Google Sheets exports, one per set), parsed/mapped by `scripts/Spoiled/{parser,mapper}.ts`.
40
40
  2. **Released** cards from `scripts/Released/card.json` + `set.json` (sourced from the-fab-cube/flesh-and-blood-cards), parsed/mapped by `scripts/Released/{parser,mapper}.ts`.
41
41
  3. **Combine & dedupe**: a card re-released in a new set merges its printings, sets, rarities, and legality, then compute derived fields (legality, meta, nicknames, shorthands, short name, TCGplayer info) via `scripts/Shared/*`.
42
- 4. `scripts/writer.ts` writes `src/index.ts` and `latest-set/index.ts`.
42
+ 4. `scripts/writer.ts` writes `src/cards.ts` and `latest-set/index.ts`.
43
+
44
+ The release records are hand-kept in `src/releases.ts`, which the transform reads.
43
45
 
44
46
  Fix data in the **source**, not the generated output. Overrides and edge cases live in
45
47
  `scripts/Spoiled/overrides.csv` and `scripts/Shared/` (artist overrides, excludes, legality, shorthands,
@@ -0,0 +1,2 @@
1
+ import { type Card } from '@flesh-and-blood/types';
2
+ export declare const cards: Card[];