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",
|
2022-05-23 08:02:19 +00:00
|
|
|
"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/",
|
2022-06-08 09:03:14 +00:00
|
|
|
"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",
|
2022-05-23 08:02:19 +00:00
|
|
|
"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",
|
2023-06-15 13:25:42 +00:00
|
|
|
"@koa/cors": "^4.0.0",
|
|
|
|
"@koa/router": "^12.0.0",
|
2024-04-04 22:47:13 +00:00
|
|
|
"@publicodes/rest-api": "^1.2.0",
|
2023-09-19 17:21:16 +00:00
|
|
|
"@sentry/node": "^7.70.0",
|
2023-09-25 14:01:42 +00:00
|
|
|
"@sentry/utils": "^7.70.0",
|
2023-06-15 13:25:42 +00:00
|
|
|
"got": "^13.0.0",
|
|
|
|
"ioredis": "^5.3.2",
|
2023-09-19 17:21:16 +00:00
|
|
|
"ioredis-mock": "^8.8.3",
|
2023-06-15 13:25:42 +00:00
|
|
|
"koa": "^2.14.2",
|
|
|
|
"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:^",
|
2023-09-19 17:21:16 +00:00
|
|
|
"nodemon": "^3.0.1",
|
2023-11-24 16:46:59 +00:00
|
|
|
"piano-analytics-js": "^6.13.0",
|
2024-04-04 21:54:34 +00:00
|
|
|
"publicodes": "^1.2.0",
|
2023-07-31 13:06:11 +00:00
|
|
|
"rate-limiter-flexible": "^2.4.2",
|
2023-09-19 17:21:16 +00:00
|
|
|
"swagger-ui-dist": "^5.7.2"
|
2022-05-16 12:29:59 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2023-06-15 13:09:48 +00:00
|
|
|
"@types/ioredis-mock": "^8.2.2",
|
2023-09-19 17:21:16 +00:00
|
|
|
"@types/koa": "^2.13.9",
|
2022-05-16 12:29:59 +00:00
|
|
|
"@types/koa-static": "^4.0.2",
|
2023-09-19 17:21:16 +00:00
|
|
|
"@types/koa__cors": "^4.0.1",
|
|
|
|
"@types/koa__router": "^12.0.1",
|
|
|
|
"@types/node": "^20.6.3",
|
2022-05-16 12:29:59 +00:00
|
|
|
"@types/swagger-ui-dist": "^3.30.1",
|
2023-06-15 13:25:42 +00:00
|
|
|
"chai-http": "^4.4.0",
|
2023-12-15 08:43:53 +00:00
|
|
|
"ts-node": "^10.9.1",
|
2023-09-06 10:59:43 +00:00
|
|
|
"typescript": "^5.2.2",
|
2023-09-19 17:21:16 +00:00
|
|
|
"vitest": "^0.34.4",
|
2023-06-15 13:25:42 +00:00
|
|
|
"wait-on": "^7.0.1"
|
2022-05-16 12:29:59 +00:00
|
|
|
}
|
|
|
|
}
|