fxa/packages/fxa-admin-server/package.json

110 строки
3.7 KiB
JSON

{
"name": "fxa-admin-server",
"version": "0.0.0",
"description": "FxA GraphQL Admin Server",
"scripts": {
"prebuild": "yarn clean",
"gql-copy": "mkdir -p src/config/gql/allowlist/ && cp ../../configs/gql/allowlist/*.json src/config/gql/allowlist/.",
"build": "nest build && yarn copy-config && yarn gql-copy",
"copy-config": "cp ./src/config/*.json ./dist/packages/fxa-admin-server/src/config",
"clean": "rimraf dist",
"compile": "tsc --noEmit",
"lint": "eslint .",
"audit": "npm audit --json | audit-filter --nsp-config=.nsprc --audit=-",
"start": "pm2 start pm2.config.js",
"stop": "pm2 stop pm2.config.js",
"start-prod": "node dist/packages/fxa-graphql-api/src/main",
"restart": "pm2 restart pm2.config.js",
"delete": "pm2 delete pm2.config.js",
"test": "yarn gen-keys && yarn test-default && yarn test-e2e ",
"gen-keys": "node -r esbuild-register ./src/scripts/gen_keys.ts;",
"test-unit": "JEST_JUNIT_OUTPUT_FILE=../../artifacts/tests/$npm_package_name/jest-unit.xml jest --runInBand --coverage --forceExit --logHeapUsage -t '^(?!.*?#integration).*' --ci --reporters=default --reporters=jest-junit",
"test-integration": "JEST_JUNIT_OUTPUT_FILE=../../artifacts/tests/$npm_package_name/jest-integration.xml jest --runInBand --coverage --forceExit --logHeapUsage -t '#integration' --ci --reporters=default --reporters=jest-junit",
"test-default": "jest --runInBand --forceExit -t=\"scripts/audit-tokens\"",
"test-watch": "jest --watch",
"test-cov": "jest --coverage",
"test-debug": "node --inspect-brk -r tsconfig-paths/register -r esbuild-register node_modules/.bin/jest --runInBand",
"test-e2e": "jest --runInBand --config ./test/jest-e2e.json --forceExit",
"email-bounce": "node -r esbuild-register ./src/scripts/email-bounce.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mozilla/fxa.git"
},
"author": "Mozilla (https://mozilla.org/)",
"license": "MPL-2.0",
"bugs": {
"url": "https://github.com/mozilla/fxa/issues"
},
"homepage": "https://github.com/mozilla/fxa#readme",
"readmeFilename": "README.md",
"dependencies": {
"@golevelup/ts-jest": "^0.4.0",
"convict": "^6.2.4",
"convict-format-with-moment": "^6.2.0",
"convict-format-with-validator": "^6.2.0",
"express": "^4.17.3",
"fxa-auth-client": "workspace:*",
"fxa-shared": "workspace:*",
"googleapis": "^131.0.0",
"helmet": "^7.1.0",
"hot-shots": "^10.0.0",
"knex": "^2.4.2",
"pem-jwk": "^2.0.0",
"rimraf": "^5.0.0",
"stripe": "^11.12.0",
"ts-morph": "^21.0.1",
"tslib": "^2.5.0"
},
"devDependencies": {
"@nestjs/cli": "^9.4.0",
"@types/chance": "^1.1.2",
"@types/convict": "^6.1.1",
"@types/node": "^18.18.2",
"@types/pem-jwk": "^2",
"@types/supertest": "^2.0.11",
"@types/yargs": "^17.0.0",
"audit-filter": "^0.5.0",
"chance": "^1.1.8",
"esbuild": "^0.17.15",
"esbuild-register": "^3.5.0",
"eslint": "^8.18.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-prettier": "^4.2.1",
"jest": "29.3.1",
"pm2": "^5.3.0",
"supertest": "^6.3.0",
"ts-jest": "^29.1.2",
"typescript": "^5.3.3",
"yargs": "^17.0.1"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": ".",
"modulePaths": [
"<rootDir>/src",
"<rootDir>/scripts"
],
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.(t|j)s$": [
"ts-jest",
{
"isolatedModules": true
}
]
},
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"nx": {
"tags": [
"scope:server"
]
}
}