mon-entreprise/api/package.json

63 lines
2.0 KiB
JSON
Raw Normal View History

2022-05-16 12:29:59 +00:00
{
"name": "api",
"version": "0.0.0",
"description": "API du site mon-entreprise",
2022-06-02 13:28:08 +00:00
"repository": {
"type": "git",
"url": "https://github.com/betagouv/mon-entreprise.git",
"directory": "api"
},
"license": "MIT",
2022-05-16 12:29:59 +00:00
"type": "module",
2022-05-25 15:48:28 +00:00
"main": "./dist/index.js",
2022-11-22 11:12:17 +00:00
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
2022-05-16 12:29:59 +00:00
"scripts": {
2022-06-09 17:15:24 +00:00
"test": "vitest",
2022-05-25 15:48:28 +00:00
"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'",
2022-05-25 15:48:28 +00:00
"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",
2022-05-16 12:29:59 +00:00
"wait:openapi": "wait-on ./source/openapi.json",
2022-05-25 15:48:28 +00:00
"build:openapi": "yarn run swagger-cli bundle ./source/openapi.yaml -o ./source/openapi.json",
2022-05-17 12:18:32 +00:00
"build:openapi:watch": "nodemon -d 500ms -w ./source/openapi.yaml -x \"yarn build:openapi\"",
2022-06-02 13:28:08 +00:00
"clean": "rimraf dist ./source/openapi.json"
2022-05-16 12:29:59 +00:00
},
"dependencies": {
2022-06-02 19:44:44 +00:00
"@apidevtools/swagger-cli": "^4.0.4",
2022-11-23 17:06:12 +00:00
"@koa/cors": "^4.0.0",
"@koa/router": "^12.0.0",
2022-12-01 11:12:44 +00:00
"@publicodes/api": "^1.0.0-beta.62",
"@sentry/node": "^7.22.0",
"@sentry/tracing": "^7.22.0",
2022-11-23 17:06:12 +00:00
"got": "^12.5.3",
"ioredis": "^5.2.4",
2022-05-16 12:29:59 +00:00
"koa": "^2.13.4",
2022-11-23 17:06:12 +00:00
"koa-body": "^6.0.1",
2022-05-16 12:29:59 +00:00
"koa-static": "^5.0.0",
2022-06-02 15:54:48 +00:00
"modele-social": "workspace:^",
2022-11-23 17:06:12 +00:00
"nodemon": "^2.0.20",
2022-12-01 11:12:44 +00:00
"publicodes": "^1.0.0-beta.62",
2022-11-23 17:06:12 +00:00
"rate-limiter-flexible": "^2.4.1",
"swagger-ui-dist": "^4.15.5"
2022-05-16 12:29:59 +00:00
},
"devDependencies": {
2022-11-23 17:06:12 +00:00
"@types/koa": "^2.13.5",
2022-05-16 12:29:59 +00:00
"@types/koa-static": "^4.0.2",
"@types/koa__cors": "^3.3.0",
2022-11-23 17:06:12 +00:00
"@types/koa__router": "^12.0.0",
"@types/node": "^18.11.10",
2022-05-16 12:29:59 +00:00
"@types/swagger-ui-dist": "^3.30.1",
2022-06-02 13:28:08 +00:00
"chai-http": "^4.3.0",
"rimraf": "^3.0.2",
2022-09-14 19:08:22 +00:00
"ts-node": "^10.9.1",
2022-11-23 17:06:12 +00:00
"typescript": "^4.9.3",
2022-11-22 11:14:11 +00:00
"vitest": "^0.25.3",
2022-05-16 12:29:59 +00:00
"wait-on": "^6.0.1"
}
}