@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 +13 -3
- package/dist/discography.d.ts +1 -1
- package/dist/discography.toml +5903 -0
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
- package/dist/discography.yml +0 -4176
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.
|
|
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 (
|
|
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.
|
|
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.
|