{
  "name": "rti-user-preferences-service",
  "version": "1.4.1",
  "description": "where we store user preferences",
  "repository": "https://github.com/filtr/rti-user-preferences-service",
  "license": "ISC",
  "engines": {
    "npm": "8",
    "node": "16"
  },
  "scripts": {
    "build": "NODE_ENV=production tsc && npm run lint",
    "build:watch": "tsc --watch",
    "format": "prettier --write \"**/*.{json,md,ts,js}\"",
    "prestart": "node engines",
    "start": "NODE_ENV=production node dist/index.js",
    "start:watch": "nodemon dist/index.js",
    "prewatch": "node engines",
    "watch": "concurrently --kill-others-on-fail --prefix \"[{name}]\" --names \"TypeScript,Node,PostgreSQL,Migrate\" --prefix-colors \"cyan.bold,green.bold,yellow.bold\" \"npm run build:watch\" \"npm run start:watch\" \"npm run db:start\" \"npm run db:migrate\"",
    "postwatch": "$(npm run --silent container) container stop ama-db",
    "container": "command -v docker || command -v podman",
    "db:build": "$(npm run --silent container) build --tag ama-db postgres",
    "db:start": "npm run db:build; $(npm run --silent container) run --name ama-db --publish 5432:5432 --env-file .env --interactive ama-db",
    "db:migrate": "node migrate-db",
    "lint": "tsc --noEmit && prettier --check \"**/*.{json,md,ts,js}\" && eslint \"**/*.{js,ts}\" --max-warnings 0",
    "pretest": "node engines",
    "test": "./init-test-db.js && jest --forceExit --coverage --verbose --detectOpenHandles",
    "prepare": "test -d .git && git config core.hooksPath .githooks || echo '.git not found, or git config command failed, skipped prepare'",
    "version": "echo $npm_package_version > VERSION && git add VERSION",
    "postversion": "echo 'To push this tag, run `git push origin HEAD --follow-tags`'"
  },
  "prettier": {
    "trailingComma": "es5",
    "semi": false,
    "singleQuote": true
  },
  "dependencies": {
    "dotenv": "14.2.0",
    "dd-trace": "^1.6.0",
    "express": "4.17.2",
    "fp-ts": "2.11.8",
    "io-ts": "2.2.16",
    "io-ts-types": "^0.5.16",
    "node-pg-migrate": "^6.2.1",
    "pg-promise": "10.11.1"
  },
  "devDependencies": {
    "@types/express": "4.17.13",
    "@types/jest": "27.4.0",
    "@types/supertest": "^2.0.11",
    "@typescript-eslint/eslint-plugin": "^5.10.0",
    "@typescript-eslint/parser": "^5.10.0",
    "concurrently": "^7.0.0",
    "eslint": "8.7.0",
    "jest": "27.4.7",
    "nodemon": "^2.0.15",
    "pgwait": "^1.2.1",
    "prettier": "2.5.1",
    "pretty-quick": "3.1.3",
    "semver": "^7.3.5",
    "supertest": "^6.2.2",
    "ts-jest": "^27.1.3",
    "typescript": "^4.5.5"
  },
  "jest": {
    "transform": {
      "\\.(ts|tsx)$": "ts-jest"
    },
    "testMatch": [
      "<rootDir>/src/**/?(*.)(spec|test).(ts|js)"
    ],
    "moduleFileExtensions": [
      "ts",
      "js",
      "json"
    ],
    "collectCoverageFrom": [
      "src/**/*.{js,ts}"
    ]
  }
}
