From 5f9c4d7f73a7200e060fc723099662fc1377452e Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Wed, 27 Nov 2024 15:35:57 -0500 Subject: [PATCH] feat: add parquet files to index --- package.json | 3 ++- scripts/make-url-index.sh | 2 +- src/urls.ts | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a57fea06..16abde8f 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "files": [ "src", "build", - "data" + "data", + "datapackage.json" ], "devDependencies": { "@babel/core": "^7.26.0", diff --git a/scripts/make-url-index.sh b/scripts/make-url-index.sh index 39821c38..c6157fb8 100755 --- a/scripts/make-url-index.sh +++ b/scripts/make-url-index.sh @@ -4,7 +4,7 @@ echo "import {version} from '../package.json';" echo 'export default {' echo '' -for file in data/*.json data/*.csv data/*.tsv data/*.arrow; do +for file in data/*.json data/*.csv data/*.tsv data/*.arrow data/*.parquet; do name=${file##*/} echo " '$name': \`https://cdn.jsdelivr.net/npm/vega-datasets@\${version}/data/$name\`," done diff --git a/src/urls.ts b/src/urls.ts index ea2af2e0..f04e2415 100644 --- a/src/urls.ts +++ b/src/urls.ts @@ -70,4 +70,5 @@ export default { 'zipcodes.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/zipcodes.csv`, 'unemployment.tsv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/unemployment.tsv`, 'flights-200k.arrow': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/flights-200k.arrow`, + 'flights-3m.parquet': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/flights-3m.parquet`, }