node dist/cli/print-commands-sync-key.js (npm run print:commands-key) outputs FABRIC_BACKEND_GUILD_COMMANDS_SYNC_KEY as the process sees it, so an operator can docker-exec it on the deployed guild and copy the value into the plugin's FABRIC_COMMANDS_SYNC_KEY. --export prints a ready-to-paste assignment; exits 1 when unset (fallback mode). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
55 lines
2.0 KiB
JSON
55 lines
2.0 KiB
JSON
{
|
|
"name": "fabric-backend-guild",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "Fabric Guild Node service",
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"start": "node dist/main.js",
|
|
"print:commands-key": "node dist/cli/print-commands-sync-key.js",
|
|
"start:dev": "ts-node src/main.ts",
|
|
"lint": "eslint 'src/**/*.ts'",
|
|
"lint:fix": "eslint 'src/**/*.ts' --fix",
|
|
"format": "prettier --write 'src/**/*.ts'",
|
|
"test:unit": "vitest run src/**/*.spec.ts --exclude src/*.integration.spec.ts --exclude dist/**",
|
|
"test:integration": "vitest run src/*.integration.spec.ts --exclude dist/**",
|
|
"migration:generate": "node --require ts-node/register ./node_modules/typeorm/cli.js migration:generate src/migrations/AutoMigration -d src/data-source.ts",
|
|
"migration:run": "node --require ts-node/register ./node_modules/typeorm/cli.js migration:run -d src/data-source.ts",
|
|
"migration:revert": "node --require ts-node/register ./node_modules/typeorm/cli.js migration:revert -d src/data-source.ts"
|
|
},
|
|
"dependencies": {
|
|
"@nestjs/common": "^10.4.8",
|
|
"@nestjs/core": "^10.4.8",
|
|
"@nestjs/platform-express": "^10.4.8",
|
|
"@nestjs/platform-socket.io": "^10.4.22",
|
|
"@nestjs/swagger": "^7.4.2",
|
|
"@nestjs/typeorm": "^11.0.1",
|
|
"@nestjs/websockets": "^10.4.22",
|
|
"class-transformer": "^0.5.1",
|
|
"class-validator": "^0.15.1",
|
|
"mysql2": "^3.22.3",
|
|
"reflect-metadata": "^0.2.2",
|
|
"rxjs": "^7.8.1",
|
|
"socket.io": "^4.8.3",
|
|
"swagger-ui-express": "^5.0.1",
|
|
"typeorm": "^0.3.29"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@nestjs/testing": "^10.4.22",
|
|
"@types/express": "^5.0.6",
|
|
"@types/node": "^22.10.1",
|
|
"@types/supertest": "^7.2.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.59.3",
|
|
"@typescript-eslint/parser": "^8.59.3",
|
|
"eslint": "^10.3.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"prettier": "^3.8.3",
|
|
"supertest": "^7.2.2",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.7.2",
|
|
"vitest": "^4.1.6"
|
|
}
|
|
}
|