diff --git a/Dockerfile b/Dockerfile index a965d9fa..4c443264 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,7 +39,7 @@ RUN apk add --no-cache \ git \ openssh-client \ ca-certificates -COPY --from=build /app/api/dist/index.js . +COPY --from=build /app/api/dist/src/index.js . # For reading the version number COPY --from=build /app/package.json . ENTRYPOINT sh -c "forever index.js" diff --git a/api/package.json b/api/package.json index 097fc4d9..738269e9 100644 --- a/api/package.json +++ b/api/package.json @@ -6,15 +6,15 @@ "type": "git", "url": "git://github.com/codegouvfr/sill.git" }, - "main": "dist/lib/index.js", - "types": "dist/lib/index.d.ts", + "main": "dist/src/lib/index.js", + "types": "dist/src/lib/index.d.ts", "scripts": { "migrate": "dotenv -e ../.env -- kysely migrate", "prepare": "[ ! -f .env.local.sh ] && cp .env.sh .env.local.sh || true", "test": "vitest --watch=false", "dev": "yarn build && yarn start", "build": "tsc", - "start": "dotenv -e ../.env -- forever dist/main.js", + "start": "dotenv -e ../.env -- forever dist/src/main.js", "_format": "prettier \"**/*.{ts,tsx,json,md}\"", "format": "yarn run _format --write", "format:check": "yarn run _format --list-different", @@ -32,7 +32,7 @@ "!dist/tsconfig.tsbuildinfo" ], "keywords": [], - "homepage": "https://github.com/codegouvfr/sill-api", + "homepage": "https://github.com/codegouvfr/sill", "devDependencies": { "@octokit/rest": "^18.12.0", "@types/compression": "^1.7.2", diff --git a/api/tsconfig.json b/api/tsconfig.json index 582496c0..a24cbb8d 100644 --- a/api/tsconfig.json +++ b/api/tsconfig.json @@ -17,5 +17,5 @@ "noFallthroughCasesInSwitch": true, "skipLibCheck": true }, - "include": ["src", "scripts"] + "include": ["src"] }