2022-05-16 12:29:59 +00:00
|
|
|
{
|
|
|
|
"name": "api",
|
|
|
|
"license": "MIT",
|
|
|
|
"version": "0.0.0",
|
|
|
|
"description": "API du site mon-entreprise",
|
|
|
|
"type": "module",
|
2022-05-23 08:02:19 +00:00
|
|
|
"main": "./dist/index.cjs",
|
|
|
|
"types": "./dist/index.d.ts",
|
2022-05-16 12:29:59 +00:00
|
|
|
"scripts": {
|
|
|
|
"validate": "yarn swagger-cli validate ./source/openapi.yaml",
|
2022-05-23 08:02:19 +00:00
|
|
|
"start": "yarn clean && yarn build:watch & wait-on ./dist && nodemon -d 1s ./serverless.ts",
|
|
|
|
"build": "yarn build:openapi && yarn build:tsup",
|
|
|
|
"build:watch": "yarn build:openapi:watch & yarn wait:openapi && yarn build:tsup:watch",
|
|
|
|
"build:ts": "tsc",
|
|
|
|
"build:ts:watch": "yarn build:ts -w --preserveWatchOutput",
|
|
|
|
"build:tsup": "tsup-node",
|
|
|
|
"build:tsup:watch": "run build:tsup --watch",
|
2022-05-23 08:28:21 +00:00
|
|
|
"postbuild": "run rename:cjs && run copy:openapi",
|
|
|
|
"rename:cjs": "mv ./dist/index.cjs ./dist/index.js",
|
2022-05-23 08:02:19 +00:00
|
|
|
"copy:openapi": "cp ./source/openapi.json ./dist",
|
2022-05-16 12:29:59 +00:00
|
|
|
"wait:openapi": "wait-on ./source/openapi.json",
|
|
|
|
"build:openapi": "yarn run swagger-cli bundle ./source/openapi.yaml > ./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-05-16 12:29:59 +00:00
|
|
|
"clean": "rm -rf dist ./source/openapi.json"
|
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/betagouv/mon-entreprise.git",
|
|
|
|
"directory": "api"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"@koa/cors": "^3.3.0",
|
|
|
|
"@koa/router": "^10.1.1",
|
2022-05-23 09:13:33 +00:00
|
|
|
"@publicodes/api": "^1.0.0-beta.37",
|
2022-05-16 12:29:59 +00:00
|
|
|
"koa": "^2.13.4",
|
2022-05-23 08:02:19 +00:00
|
|
|
"koa-body": "^5.0.0",
|
2022-05-16 12:29:59 +00:00
|
|
|
"koa-static": "^5.0.0",
|
2022-05-23 08:02:19 +00:00
|
|
|
"modele-social": "workspace:^",
|
2022-05-23 09:13:33 +00:00
|
|
|
"publicodes": "^1.0.0-beta.37",
|
2022-05-23 08:02:19 +00:00
|
|
|
"serverless-http": "^3.0.1",
|
2022-05-16 12:29:59 +00:00
|
|
|
"swagger-ui-dist": "^4.11.0"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@apidevtools/swagger-cli": "^4.0.4",
|
2022-05-23 08:02:19 +00:00
|
|
|
"@netlify/functions": "^1.0.0",
|
2022-05-16 12:29:59 +00:00
|
|
|
"@types/koa": "^2.13.4",
|
|
|
|
"@types/koa-static": "^4.0.2",
|
|
|
|
"@types/koa__cors": "^3.3.0",
|
|
|
|
"@types/koa__router": "^8.0.11",
|
|
|
|
"@types/node": "^17.0.32",
|
|
|
|
"@types/swagger-ui-dist": "^3.30.1",
|
2022-05-23 08:02:19 +00:00
|
|
|
"nodemon": "^2.0.16",
|
|
|
|
"serverless-http": "^3.0.1",
|
2022-05-16 12:29:59 +00:00
|
|
|
"ts-node": "^10.7.0",
|
2022-05-23 08:02:19 +00:00
|
|
|
"tsup": "^5.12.8",
|
2022-05-17 16:27:49 +00:00
|
|
|
"typescript": "4.7.1-rc",
|
2022-05-16 12:29:59 +00:00
|
|
|
"wait-on": "^6.0.1"
|
|
|
|
}
|
|
|
|
}
|