mon-entreprise/api/package.json

65 lines
2.0 KiB
JSON

{
"name": "api",
"version": "0.0.0",
"description": "API du site mon-entreprise",
"repository": {
"type": "git",
"url": "https://github.com/betagouv/mon-entreprise.git",
"directory": "api"
},
"license": "MIT",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"test": "vitest",
"test:type": "tsc --noEmit",
"postinstall": "yarn build:openapi",
"start": "yarn clean && yarn build:watch & wait-on ./dist && nodemon -d 1s ./dist/",
"start:prod": "NODE_ENV=production nodemon -d 500ms -w ./dist/index.js -x 'node ./dist/index.js || touch ./dist/index.js'",
"build": "yarn build:openapi && yarn build:ts",
"build:watch": "yarn build:openapi:watch & yarn wait:openapi && yarn build:ts:watch",
"build:ts": "tsc",
"build:ts:watch": "yarn build:ts -w --preserveWatchOutput",
"wait:openapi": "wait-on ./source/openapi.json",
"build:openapi": "yarn run swagger-cli bundle ./source/openapi.yaml -o ./source/openapi.json",
"build:openapi:watch": "nodemon -d 500ms -w ./source/openapi.yaml -x \"yarn build:openapi\"",
"clean": "rimraf dist ./source/openapi.json"
},
"dependencies": {
"@apidevtools/swagger-cli": "^4.0.4",
"@koa/cors": "^4.0.0",
"@koa/router": "^12.0.0",
"@publicodes/rest-api": "^1.2.0",
"@sentry/node": "^7.70.0",
"@sentry/utils": "^7.70.0",
"got": "^13.0.0",
"ioredis": "^5.3.2",
"ioredis-mock": "^8.8.3",
"koa": "^2.14.2",
"koa-body": "^6.0.1",
"koa-static": "^5.0.0",
"modele-social": "workspace:^",
"nodemon": "^3.0.1",
"piano-analytics-js": "^6.13.0",
"publicodes": "^1.2.0",
"rate-limiter-flexible": "^2.4.2",
"swagger-ui-dist": "^5.7.2"
},
"devDependencies": {
"@types/ioredis-mock": "^8.2.2",
"@types/koa": "^2.13.9",
"@types/koa-static": "^4.0.2",
"@types/koa__cors": "^4.0.1",
"@types/koa__router": "^12.0.1",
"@types/node": "^20.6.3",
"@types/swagger-ui-dist": "^3.30.1",
"chai-http": "^4.4.0",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"vitest": "^0.34.4",
"wait-on": "^7.0.1"
}
}