diff --git a/scraper/package.json b/scraper/package.json index d2e88ac23..275e852fe 100644 --- a/scraper/package.json +++ b/scraper/package.json @@ -1,6 +1,6 @@ { "name": "@riffyh/scraper", - "version": "1.0.2", + "version": "1.0.3", "bin": "dist/index.js", "publishConfig": { "access": "public", diff --git a/scraper/src/commands/fetch.ts b/scraper/src/commands/fetch.ts index 44cea05b9..9b45e7bbf 100644 --- a/scraper/src/commands/fetch.ts +++ b/scraper/src/commands/fetch.ts @@ -16,10 +16,14 @@ const fetchQueue = new PQueue({ }) export const fetch = async (entryPoint: string) => { - const { default: codes } = (await import(entryPoint)) as { + const { default: codes } = (await import( + path.join(process.cwd(), entryPoint) + )) as { default: DatabaseCode[] } + console.log('read ' + codes.length + ' items') + /** * Step 1: Generate chunks */