Skip to content

Commit

Permalink
fix 'api' module resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeBu committed Jul 26, 2024
1 parent f50f82b commit a5e3189
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit a5e3189

Please sign in to comment.