- Replaced direct SQLite database calls with Drizzle ORM methods in `top-monthly-sold-by-category.ts`, `writer.ts`, and `upc-file-analysis.ts`. - Updated test cases in `top-monthly-sold-by-category.test.ts` to mock the new database interactions. - Removed unnecessary database initialization and cleanup code. - Improved code readability and maintainability by using ORM features for inserting and updating records.
39 lines
1.1 KiB
JSON
39 lines
1.1 KiB
JSON
{
|
|
"name": "asin-check",
|
|
"module": "src/index.ts",
|
|
"type": "module",
|
|
"private": true,
|
|
"scripts": {
|
|
"bestsellers": "bun run src/bestsellers-by-category.ts",
|
|
"monthly-sold": "bun run src/top-monthly-sold-by-category.ts",
|
|
"mid-range": "bun run src/mid-range-sellers-by-category.ts",
|
|
"stalker": "bun run src/stalker.ts",
|
|
"search-offers": "bun run src/asin-offer-search.ts",
|
|
"upc": "bun run src/upc-lookup.ts",
|
|
"upc-file": "bun run src/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"
|
|
}
|
|
}
|