Files
profilarr/deno.json
2026-04-18 15:35:31 +09:30

73 lines
3.5 KiB
JSON

{
"imports": {
"$lib/": "./src/lib/",
"$api/": "./src/lib/api/",
"$config": "./src/lib/server/utils/config/config.ts",
"$logger/": "./src/lib/server/utils/logger/",
"$shared/": "./src/lib/shared/",
"$stores/": "./src/lib/client/stores/",
"$ui/": "./src/lib/client/ui/",
"$assets/": "./src/lib/client/assets/",
"$alerts/": "./src/lib/client/alerts/",
"$server/": "./src/server/",
"$db/": "./src/lib/server/db/",
"$jobs/": "./src/lib/server/jobs/",
"$pcd/": "./src/lib/server/pcd/",
"$arr/": "./src/lib/server/utils/arr/",
"$http/": "./src/lib/server/utils/http/",
"$utils/": "./src/lib/server/utils/",
"$notifications/": "./src/lib/server/notifications/",
"$sync/": "./src/lib/server/sync/",
"$cache/": "./src/lib/server/utils/cache/",
"$auth/": "./src/lib/server/utils/auth/",
"$test-harness/": "./tests/integration/harness/",
"@soapbox/kysely-deno-sqlite": "jsr:@soapbox/kysely-deno-sqlite@^2.2.0",
"@std/assert": "jsr:@std/assert@^1.0.0",
"marked": "npm:marked@^15.0.6",
"simple-icons": "npm:simple-icons@^15.17.0",
"croner": "npm:croner@^9.1.0",
"@felix/bcrypt": "jsr:@felix/bcrypt@^1.0.8",
"@db/sqlite": "jsr:@db/sqlite@0.12",
"svelte": "npm:svelte@^5.55.2"
},
"tasks": {
"dev": "deno run -A scripts/dev.ts",
"dev:no-auth": "AUTH=off deno run -A scripts/dev.ts",
"dev:server": "DENO_ENV=development PORT=6969 HOST=0.0.0.0 APP_BASE_PATH=./dist/dev PARSER_HOST=localhost PARSER_PORT=5000 VITE_PLATFORM=linux-amd64 VITE_CHANNEL=dev deno run -A npm:vite dev",
"dev:server:no-auth": "AUTH=off DENO_ENV=development PORT=6969 HOST=0.0.0.0 APP_BASE_PATH=./dist/dev PARSER_HOST=localhost PARSER_PORT=5000 VITE_PLATFORM=linux-amd64 VITE_CHANNEL=dev deno run -A npm:vite dev",
"dev:parser": "cd src/services/parser && dotnet watch run --urls http://localhost:5000",
"build": "APP_BASE_PATH=./dist/build deno run -A npm:vite build && deno compile --no-check --allow-net --allow-read --allow-write --allow-env --allow-ffi --allow-run --allow-sys --target x86_64-unknown-linux-gnu --output dist/build/profilarr dist/build/mod.ts",
"preview": "PORT=6869 HOST=0.0.0.0 APP_BASE_PATH=./dist/dev PARSER_HOST=localhost PARSER_PORT=5000 ./dist/build/profilarr",
"reset:onboarding": "sqlite3 dist/dev/data/profilarr.db \"UPDATE general_settings SET onboarding_shown = 0\"",
"clean:dev": "rm -rf dist/dev",
"format": "prettier --write .",
"lint": "prettier --check . && deno lint && deno task lint:ui",
"lint:ui": "deno run --allow-read --allow-env scripts/lint/ui.ts",
"check": "deno task check:server && deno task check:client",
"check:server": "deno check --quiet src/lib/server/**/*.ts",
"check:client": "NODE_ENV=development npx svelte-check --tsconfig ./tsconfig.json",
"test": "deno run -A tests/runner.ts",
"generate:api-types": "npx openapi-typescript docs/api/v1/openapi.yaml -o src/lib/api/v1.d.ts && prettier --write src/lib/api/v1.d.ts",
"generate:pcd-types": "deno run -A scripts/generate-pcd-types.ts",
"stats": "deno run --allow-read --allow-env scripts/stats.ts",
"webhook": "deno run --allow-net scripts/webhook-listener.ts"
},
"compilerOptions": {
"lib": ["deno.window", "dom"],
"strict": true
},
"exclude": ["dist/", "node_modules/", "src/routes/"],
"fmt": {
"exclude": ["dist/", "node_modules/"],
"indentWidth": 2,
"useTabs": false
},
"lint": {
"exclude": ["dist/", "node_modules/", "tests/", ".svelte-kit/", "src/adapter/"],
"rules": {
"include": ["no-eval", "no-throw-literal"],
"exclude": ["no-window", "no-window-prefix", "require-await"]
}
}
}