refactor: update package.json and scripts for One Piece scraper
- Changed the scrape script to use tsx for TypeScript execution. - Added new TypeScript script for scraping One Piece data. - Refactored package.json to include dependencies for the new scraper. - Removed unused dependencies and organized devDependencies. feat: implement One Piece data scraping functionality - Added functionality to scrape arcs, characters, and devil fruits from One Piece fandom. - Implemented data extraction methods for character attributes and devil fruit details. - Added JSON and CSV export capabilities for scraped data. fix: update auth configuration to handle missing secret - Modified the auth configuration to use a default secret if BETTER_AUTH_SECRET is not set. fix: improve database client initialization - Updated database client creation to use a local database file if DATABASE_URL is not set. chore: switch Svelte adapter to node - Changed Svelte adapter from auto to node for better server-side rendering support.
This commit is contained in:
15
package.json
15
package.json
@@ -19,24 +19,19 @@
|
||||
"db:import": "npx tsx scripts/import-json.ts",
|
||||
"db:set-daily-mode": "npx tsx scripts/set-daily-mode.ts",
|
||||
"auth:schema": "npx @better-auth/cli generate --config src/lib/server/auth.ts --output src/lib/server/db/auth.schema.ts --yes",
|
||||
"scrape": "node scripts/scrape-onepiece.js"
|
||||
"scrape": "npx tsx scripts/scrape-onepiece.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/compat": "^2.0.2",
|
||||
"@eslint/js": "^9.39.2",
|
||||
"@libsql/client": "^0.17.0",
|
||||
"@sveltejs/adapter-auto": "^7.0.0",
|
||||
"@sveltejs/kit": "^2.50.2",
|
||||
"@sveltejs/vite-plugin-svelte": "^6.2.4",
|
||||
"@tailwindcss/forms": "^0.5.11",
|
||||
"@tailwindcss/typography": "^0.5.19",
|
||||
"@tailwindcss/vite": "^4.1.18",
|
||||
"@types/node": "^24",
|
||||
"better-auth": "^1.4.18",
|
||||
"cheerio": "^1.0.0-rc.12",
|
||||
"csv-writer": "^1.6.0",
|
||||
"drizzle-kit": "^0.31.8",
|
||||
"drizzle-orm": "^0.45.1",
|
||||
"eslint": "^9.39.2",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"eslint-plugin-svelte": "^3.14.0",
|
||||
@@ -50,5 +45,13 @@
|
||||
"typescript": "^5.9.3",
|
||||
"typescript-eslint": "^8.54.0",
|
||||
"vite": "^7.3.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"tsx": "^4.21.0",
|
||||
"drizzle-orm": "^0.45.1",
|
||||
"drizzle-kit": "^0.31.8",
|
||||
"better-auth": "^1.4.18",
|
||||
"@sveltejs/adapter-node": "^5.5.4",
|
||||
"@libsql/client": "^0.17.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user