8000 fix: full esm build support by sweatybridge · Pull Request #444 · supabase/postgres-meta · GitHub
[go: up one dir, main page]

Skip to content

fix: full esm build support #444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Dec 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*
!src
!package*.json
!tsconfig.server.json
!tsconfig*.json
5 changes: 3 additions & 2 deletions .pkg.config.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "@supabase/postgres-meta",
"bin": {
"postgres-meta": "bin/src/server/app.js"
"postgres-meta": "dist/server/app.js"
},
"pkg": {
"assets": ["bin/**/*.sql"],
"outputPath": "bin",
"assets": ["dist/**/*.sql"],
"scripts": ["node_modules/pg-format/lib/reserved.js"]
}
}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN npm clean-install
COPY . .
RUN npm run build:server
RUN npm run build

FROM node:16-slim
WORKDIR /usr/src/app
COPY --from=build /usr/src/app/node_modules node_modules
COPY --from=build /usr/src/app/bin bin
COPY --from=build /usr/src/app/dist dist
COPY package.json ./
ENV PG_META_PORT=8080
CMD ["npm", "run", "start"]
Expand Down
Loading
0