- Implemented supplier scoring logic in `supplier-scoring.ts` with functions to compute demand score, competition penalty, and overall supplier product score. - Created unit tests for supplier scoring in `supplier-scoring.test.ts` to validate scoring logic against various scenarios. - Developed UPC file analysis tool in `upc-file-analysis.ts` to process UPCs in batches, fetch product data from Keepa and SP-API, and generate supplier results. - Added UPC input reading functionality in `upc-file-reader.ts` to handle XLSX and XLS files, including validation for UPC formats. - Introduced a command-line tool in `upc-lookup.ts` for looking up UPCs and displaying detailed results or mappings to ASINs. - Enhanced error handling and logging throughout the new modules for better traceability and user feedback.
39 lines
1.2 KiB
JSON
39 lines
1.2 KiB
JSON
{
|
|
"name": "asin-check",
|
|
"module": "src/index.ts",
|
|
"type": "module",
|
|
"private": true,
|
|
"scripts": {
|
|
"bestsellers": "bun run src/categories/bestsellers-by-category.ts",
|
|
"monthly-sold": "bun run src/categories/top-monthly-sold-by-category.ts",
|
|
"mid-range": "bun run src/categories/mid-range-sellers-by-category.ts",
|
|
"stalker": "bun run src/stalker/stalker.ts",
|
|
"search-offers": "bun run src/asin-offer-search.ts",
|
|
"upc": "bun run src/supplier/upc-lookup.ts",
|
|
"upc-file": "bun run src/supplier/upc-file-analysis.ts",
|
|
"start": "bun run src/index.ts",
|
|
"start:web": "bun --hot src/server.ts",
|
|
"build:web": "bun build src/web/index.html --outdir dist",
|
|
"test": "bun test",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:migrate": "drizzle-kit migrate"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "latest",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"drizzle-kit": "^0.31.10",
|
|
"typescript": "^6.0.3"
|
|
},
|
|
"dependencies": {
|
|
"amazon-sp-api": "^1.2.1",
|
|
"drizzle-orm": "^0.45.2",
|
|
"exceljs": "^4.4.0",
|
|
"ioredis": "^5.10.1",
|
|
"postgres": "^3.4.9",
|
|
"react": "^19.2.0",
|
|
"react-dom": "^19.2.0",
|
|
"xlsx": "^0.18.5"
|
|
}
|
|
}
|