@tyleretters/discography 3.0.10 → 4.0.0

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
@@ -6,6 +6,7 @@
6
6
 
7
7
  - This repo builds a canonical discography of the music of Tyler Etters.
8
8
  - This discography is incomplete.
9
+ - The source of truth is `src/discography.toml`.
9
10
  - Release dates are in a modified "Long Now" format, prefixed with `0`. This also solves for some date/object/string/parsing/conversion issues.
10
11
  - EPs are defined as being less than or equal to 29 minutes 59 seconds.
11
12
 
@@ -30,15 +31,18 @@ python3 src/scrape_bandcamp.py <bandcamp_url> \
30
31
  --add
31
32
  ```
32
33
 
33
- Review the prepended entry in `src/discography.yml`, then build and publish as normal.
34
+ Review the prepended entry in `src/discography.toml`, then build and publish as normal.
34
35
 
35
36
  ## Build
36
37
 
37
38
  ```zsh
39
+ source venv/bin/activate
38
40
  npm run build
39
41
  ```
40
42
 
41
- This runs the full pipeline: Python converter (YAML to TS), Vite bundler (ESM + UMD), TypeScript compiler (type declarations), and copies the source YAML to `dist/`.
43
+ This runs the full pipeline: Python converter (TOML to TS), Vite bundler (ESM + UMD), TypeScript compiler (type declarations), and copies the source TOML to `dist/`.
44
+
45
+ Activate the venv first. `npm run convert` calls `python3`, so the build fails without it.
42
46
 
43
47
  `dist/` is gitignored — built artifacts are not committed. The `"files"` field in `package.json` ensures `dist/` is always included in the npm tarball.
44
48
 
@@ -57,7 +61,7 @@ npm run lint
57
61
 
58
62
  ## Publishing
59
63
 
60
- After updating `src/discography.yml`:
64
+ After updating `src/discography.toml`:
61
65
 
62
66
  ```zsh
63
67
  git add . && git commit -m "++" && git push origin main
@@ -77,3 +81,9 @@ npm i @tyleretters/discography
77
81
  ```typescript
78
82
  import discography from "@tyleretters/discography";
79
83
  ```
84
+
85
+ The default export and its types did not change in 4.0.0.
86
+
87
+ The tarball also carries the raw data file. In 4.0.0 it changed from
88
+ `dist/discography.yml` to `dist/discography.toml`. Update any code that reads
89
+ that path.
@@ -426,7 +426,7 @@ export declare const discography: ({
426
426
  url: string;
427
427
  id: string;
428
428
  }[];
429
- notes: any;
429
+ notes: string;
430
430
  credits: string;
431
431
  project_slug: string;
432
432
  release_slug: string;