{ "name": "api", "license": "MIT", "version": "0.0.0", "description": "API du site mon-entreprise", "main": "./dist/index.js", "types": "./dist/index.d.ts", "type": "module", "scripts": { "validate": "yarn swagger-cli validate ./source/openapi.yaml", "start": "yarn clean && yarn build:watch & wait-on ./dist && NODE_OPTIONS=--experimental-json-modules nodemon -d 1s ./source/index.ts", "build": "yarn build:openapi && yarn build:ts", "build:watch": "yarn build:openapi:watch & yarn wait:openapi && yarn build:ts:watch --preserveWatchOutput", "build:ts": "NODE_OPTIONS=--experimental-json-modules tsc", "build:ts:watch": "yarn build:ts -w", "wait:openapi": "wait-on ./source/openapi.json", "build:openapi": "yarn run swagger-cli bundle ./source/openapi.yaml > ./source/openapi.json", "build:openapi:watch": "nodemon -d 500ms -w ./source/openapi.yaml -x \"yarn build:openapi\"", "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", "koa": "^2.13.4", "koa-static": "^5.0.0", "modele-social": "portal:/home/wiinxt/mon-entreprise/modele-social", "publicodes": "^1.0.0-beta.35", "publicodes-api": "portal:/home/wiinxt/publicodes/packages/api", "swagger-ui-dist": "^4.11.0" }, "devDependencies": { "@apidevtools/swagger-cli": "^4.0.4", "@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", "nodemon": "^2.0.15", "ts-node": "^10.7.0", "typescript": "4.7.1-rc", "wait-on": "^6.0.1" } }