https://www.npmjs.com/package/@tyleretters/discography
- This repo builds a canonical discography of the music of Tyler Etters.
- This discography is incomplete.
- Release dates are in a modified "Long Now" format, prefixed with
0. This also solves for some date/object/string/parsing/conversion issues. - EPs are defined as being less than or equal to 29 minutes 59 seconds.
cd discography
npm i
python3 -m venv venv
source venv/bin/activate
pip install -r src/requirements.txtsource venv/bin/activate
python3 src/scrape_bandcamp.py <bandcamp_url> \
--my-artist "Your Artist Name" \
--project "Your Project Name" \
--role Artist \
--addReview the prepended entry in src/discography.yml, then build and publish as normal.
npm run buildThis runs the full pipeline: Python converter (YAML to TS), Vite bundler (ESM + UMD), TypeScript compiler (type declarations), and copies the source YAML to dist/.
dist/ is gitignored — built artifacts are not committed. The "files" field in package.json ensures dist/ is always included in the npm tarball.
source venv/bin/activate
pytest tests/npm run lintAfter updating src/discography.yml:
git add . && git commit -m "++" && git push origin main
npm login
npm version patch
npm publishnpm publish automatically runs npm run build via the prepublishOnly hook, so there's no need to build manually before publishing.
npm i @tyleretters/discographyimport discography from "@tyleretters/discography";