Skip to content

Update to 2018 data#41

Open
atomicpages wants to merge 1 commit into
topojson:masterfrom
atomicpages:master
Open

Update to 2018 data#41
atomicpages wants to merge 1 commit into
topojson:masterfrom
atomicpages:master

Conversation

@atomicpages

@atomicpages atomicpages commented Jan 2, 2024

Copy link
Copy Markdown

Addresses #34 by moving to 2018 data files. In addition to this fix, the year can now be controlled via .env file containing the YEAR environment variable. I tested using 2022 as well and everything appears to be in order. If there's interest I'd be happy to setup semantic-release and other github actions to help automate keeping this project up to date! Let me know 🚀

Comment thread prepublish
#!/bin/bash

rm -rvf *-10m.json
PATH=$PATH:./node_modules/.bin:

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Load $PATH variables from node bin. This ensures the scripts works on any machine after yarn install is run

Comment thread prepublish
rm -rvf *-10m.json
PATH=$PATH:./node_modules/.bin:

rm -rvf *-10m.json build

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean build folder as well ✌️

@atomicpages atomicpages changed the title feat: control year via env file Update to 2018 data Jan 2, 2024
@connortodd21

Copy link
Copy Markdown

Thank you for this change! Can we update the .env year to 2024? There were some US county changes that happened in the 2020 census so it'd be good to move things to post-2020. Just to keep stuff up-to-date.

I tested setting YEAR to 2024 on my fork and was able to generate the county/state/nation/albers files.

@mbostock is it possible to get a review here? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants