mirror of
https://github.com/unraid/api.git
synced 2026-01-02 22:50:02 -06:00
234 lines
8.4 KiB
JSON
234 lines
8.4 KiB
JSON
{
|
|
"name": "@unraid/api",
|
|
"version": "4.9.5",
|
|
"main": "src/cli/index.ts",
|
|
"type": "module",
|
|
"corepack": {
|
|
"enabled": true
|
|
},
|
|
"repository": "git@github.com:unraid/api.git",
|
|
"author": "Lime Technology, Inc. <unraid.net>",
|
|
"license": "GPL-2.0-or-later",
|
|
"engines": {
|
|
"pnpm": "10.13.1"
|
|
},
|
|
"scripts": {
|
|
"// Development": "",
|
|
"start": "node dist/main.js",
|
|
"dev": "vite",
|
|
"dev:debug": "NODE_OPTIONS='--inspect-brk=9229 --enable-source-maps' vite",
|
|
"command": "pnpm run build && clear && ./dist/cli.js",
|
|
"command:raw": "./dist/cli.js",
|
|
"// Build and Deploy": "",
|
|
"build": "vite build --mode=production",
|
|
"postbuild": "chmod +x dist/main.js && chmod +x dist/cli.js",
|
|
"build:watch": "WATCH_MODE=true nodemon --watch src --ext ts,js,json --exec 'tsx ./scripts/build.ts'",
|
|
"build:docker": "./scripts/dc.sh run --rm builder",
|
|
"build:release": "tsx ./scripts/build.ts",
|
|
"preunraid:deploy": "pnpm build",
|
|
"unraid:deploy": "./scripts/deploy-dev.sh",
|
|
"// GraphQL Codegen": "",
|
|
"codegen": "MOTHERSHIP_GRAPHQL_LINK='https://staging.mothership.unraid.net/ws' graphql-codegen --config codegen.ts -r dotenv/config './.env.staging'",
|
|
"codegen:watch": "DOTENV_CONFIG_PATH='./.env.staging' graphql-codegen --config codegen.ts --watch -r dotenv/config",
|
|
"codegen:local": "NODE_TLS_REJECT_UNAUTHORIZED=0 MOTHERSHIP_GRAPHQL_LINK='https://mothership.localhost/ws' graphql-codegen --config codegen.ts --watch",
|
|
"// Code Quality": "",
|
|
"lint": "eslint --config .eslintrc.ts src/",
|
|
"lint:fix": "eslint --fix --config .eslintrc.ts src/",
|
|
"type-check": "tsc --noEmit",
|
|
"// Testing": "",
|
|
"test": "NODE_ENV=test vitest run",
|
|
"test:watch": "NODE_ENV=test vitest --ui",
|
|
"coverage": "NODE_ENV=test vitest run --coverage",
|
|
"// Docker": "",
|
|
"container:build": "./scripts/dc.sh build dev",
|
|
"container:start": "pnpm run container:stop && ./scripts/dc.sh run --rm --service-ports dev",
|
|
"container:stop": "./scripts/dc.sh stop dev",
|
|
"container:test": "./scripts/dc.sh run --rm builder pnpm run test",
|
|
"container:enter": "./scripts/dc.sh exec dev /bin/bash",
|
|
"// Migration Scripts": "",
|
|
"migration:codefirst": "tsx ./src/unraid-api/graph/migration-script.ts"
|
|
},
|
|
"bin": {
|
|
"unraid-api": "dist/cli.js"
|
|
},
|
|
"dependencies": {
|
|
"@apollo/client": "3.13.8",
|
|
"@apollo/server": "4.12.2",
|
|
"@as-integrations/fastify": "2.1.1",
|
|
"@fastify/cookie": "11.0.2",
|
|
"@fastify/helmet": "13.0.1",
|
|
"@graphql-codegen/client-preset": "4.8.3",
|
|
"@graphql-tools/load-files": "7.0.1",
|
|
"@graphql-tools/merge": "9.0.24",
|
|
"@graphql-tools/schema": "10.0.23",
|
|
"@graphql-tools/utils": "10.8.6",
|
|
"@jsonforms/core": "3.6.0",
|
|
"@nestjs/apollo": "13.1.0",
|
|
"@nestjs/cache-manager": "3.0.1",
|
|
"@nestjs/common": "11.1.3",
|
|
"@nestjs/config": "4.0.2",
|
|
"@nestjs/core": "11.1.3",
|
|
"@nestjs/event-emitter": "3.0.1",
|
|
"@nestjs/graphql": "13.1.0",
|
|
"@nestjs/passport": "11.0.5",
|
|
"@nestjs/platform-fastify": "11.1.3",
|
|
"@nestjs/schedule": "6.0.0",
|
|
"@nestjs/throttler": "6.4.0",
|
|
"@reduxjs/toolkit": "2.8.2",
|
|
"@runonflux/nat-upnp": "1.0.2",
|
|
"@types/diff": "8.0.0",
|
|
"@unraid/libvirt": "2.1.0",
|
|
"@unraid/shared": "workspace:*",
|
|
"accesscontrol": "2.2.1",
|
|
"bycontract": "2.0.11",
|
|
"bytes": "3.1.2",
|
|
"cache-manager": "7.0.1",
|
|
"cacheable-lookup": "7.0.0",
|
|
"camelcase-keys": "9.1.3",
|
|
"casbin": "5.38.0",
|
|
"change-case": "5.4.4",
|
|
"chokidar": "4.0.3",
|
|
"class-transformer": "0.5.1",
|
|
"class-validator": "0.14.2",
|
|
"cli-table": "0.3.11",
|
|
"command-exists": "1.2.9",
|
|
"convert": "5.12.0",
|
|
"cookie": "1.0.2",
|
|
"cron": "4.3.0",
|
|
"cross-fetch": "4.1.0",
|
|
"diff": "8.0.2",
|
|
"dockerode": "4.0.7",
|
|
"dotenv": "17.2.0",
|
|
"execa": "9.6.0",
|
|
"exit-hook": "4.0.0",
|
|
"fastify": "5.4.0",
|
|
"filenamify": "6.0.0",
|
|
"fs-extra": "11.3.0",
|
|
"glob": "11.0.3",
|
|
"global-agent": "3.0.0",
|
|
"got": "14.4.7",
|
|
"graphql": "16.11.0",
|
|
"graphql-fields": "2.0.3",
|
|
"graphql-scalars": "1.24.2",
|
|
"graphql-subscriptions": "3.0.0",
|
|
"graphql-tag": "2.12.6",
|
|
"graphql-ws": "6.0.5",
|
|
"ini": "5.0.0",
|
|
"ip": "2.0.1",
|
|
"jose": "6.0.11",
|
|
"json-bigint-patch": "0.0.8",
|
|
"lodash-es": "4.17.21",
|
|
"multi-ini": "2.3.2",
|
|
"mustache": "4.2.0",
|
|
"nest-authz": "2.17.0",
|
|
"nest-commander": "3.17.0",
|
|
"nestjs-pino": "4.4.0",
|
|
"node-cache": "5.1.2",
|
|
"node-window-polyfill": "1.0.4",
|
|
"p-retry": "6.2.1",
|
|
"passport-custom": "1.1.1",
|
|
"passport-http-header-strategy": "1.1.0",
|
|
"path-type": "6.0.0",
|
|
"pino": "9.7.0",
|
|
"pino-http": "10.5.0",
|
|
"pino-pretty": "13.0.0",
|
|
"pm2": "6.0.8",
|
|
"reflect-metadata": "^0.1.14",
|
|
"request": "2.88.2",
|
|
"rxjs": "7.8.2",
|
|
"semver": "7.7.2",
|
|
"strftime": "0.10.3",
|
|
"systeminformation": "5.27.7",
|
|
"uuid": "11.1.0",
|
|
"ws": "8.18.3",
|
|
"zen-observable-ts": "1.1.0",
|
|
"zod": "3.25.76"
|
|
},
|
|
"peerDependencies": {
|
|
"unraid-api-plugin-connect": "workspace:*"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"unraid-api-plugin-connect": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "9.30.1",
|
|
"@graphql-codegen/add": "5.0.3",
|
|
"@graphql-codegen/cli": "5.0.7",
|
|
"@graphql-codegen/fragment-matcher": "5.1.0",
|
|
"@graphql-codegen/import-types-preset": "3.0.1",
|
|
"@graphql-codegen/typed-document-node": "5.1.2",
|
|
"@graphql-codegen/typescript": "4.1.6",
|
|
"@graphql-codegen/typescript-operations": "4.6.1",
|
|
"@graphql-codegen/typescript-resolvers": "4.5.1",
|
|
"@graphql-typed-document-node/core": "3.2.0",
|
|
"@ianvs/prettier-plugin-sort-imports": "4.5.1",
|
|
"@nestjs/testing": "11.1.3",
|
|
"@originjs/vite-plugin-commonjs": "1.0.3",
|
|
"@rollup/plugin-node-resolve": "16.0.1",
|
|
"@swc/core": "1.12.11",
|
|
"@types/async-exit-hook": "2.0.2",
|
|
"@types/bytes": "3.1.5",
|
|
"@types/cli-table": "0.3.4",
|
|
"@types/command-exists": "1.2.3",
|
|
"@types/cors": "2.8.19",
|
|
"@types/dockerode": "3.3.42",
|
|
"@types/graphql-fields": "1.3.9",
|
|
"@types/graphql-type-uuid": "0.2.6",
|
|
"@types/ini": "4.1.1",
|
|
"@types/ip": "1.1.3",
|
|
"@types/lodash": "4.17.20",
|
|
"@types/lodash-es": "4.17.12",
|
|
"@types/mustache": "4.2.6",
|
|
"@types/node": "22.16.3",
|
|
"@types/pify": "6.1.0",
|
|
"@types/semver": "7.7.0",
|
|
"@types/sendmail": "1.4.7",
|
|
"@types/stoppable": "1.1.3",
|
|
"@types/strftime": "0.9.8",
|
|
"@types/uuid": "10.0.0",
|
|
"@types/ws": "8.18.1",
|
|
"@types/wtfnode": "0.7.3",
|
|
"@vitest/coverage-v8": "3.2.4",
|
|
"@vitest/ui": "3.2.4",
|
|
"commit-and-tag-version": "9.6.0",
|
|
"cz-conventional-changelog": "3.3.0",
|
|
"eslint": "9.30.1",
|
|
"eslint-plugin-import": "2.32.0",
|
|
"eslint-plugin-n": "17.21.0",
|
|
"eslint-plugin-no-relative-import-paths": "1.6.1",
|
|
"eslint-plugin-prettier": "5.5.1",
|
|
"graphql-codegen-typescript-validation-schema": "0.17.1",
|
|
"jiti": "2.4.2",
|
|
"nodemon": "3.1.10",
|
|
"prettier": "3.6.2",
|
|
"rollup-plugin-node-externals": "8.0.1",
|
|
"tsx": "4.20.3",
|
|
"type-fest": "4.41.0",
|
|
"typescript": "5.8.3",
|
|
"typescript-eslint": "8.36.0",
|
|
"unplugin-swc": "1.5.5",
|
|
"vite": "7.0.4",
|
|
"vite-plugin-node": "7.0.0",
|
|
"vite-tsconfig-paths": "5.1.4",
|
|
"vitest": "3.2.4",
|
|
"zx": "8.6.2"
|
|
},
|
|
"overrides": {
|
|
"eslint": {
|
|
"jiti": "2.4.2"
|
|
},
|
|
"@as-integrations/fastify": {
|
|
"fastify": "$fastify"
|
|
},
|
|
"nest-authz": {
|
|
"@nestjs/common": "$@nestjs/common",
|
|
"@nestjs/core": "$@nestjs/core"
|
|
},
|
|
"cron": "4.3.1"
|
|
},
|
|
"private": true,
|
|
"packageManager": "pnpm@10.13.1"
|
|
}
|