8000 chore: switch build to esnext module type by sweatybridge · Pull Request #442 · supabase/postgres-meta · GitHub
[go: up one dir, main page]

Skip to content

chore: switch build to esnext module type #442

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 2 commits into from
Dec 23, 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 Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM node:16 as build
WORKDIR /usr/src/app
# Do `npm ci` separately so we can cache `node_modules`
# https://nodejs.org/en/docs/guides/nodejs-docker-webapp/
COPY package.json package-lock.json .
COPY package.json package-lock.json ./
RUN npm clean-install
COPY . .
RUN npm run build:server
Expand Down
5 changes: 0 additions & 5 deletions jest.config.js

This file was deleted.

8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"files": [
"dist"
],
"type": "module",
"main": "dist/main/index.js",
"module": "dist/module/index.js",
"repository": "supabase/postgres-meta",
Expand All @@ -35,6 +36,13 @@
"node 10000 ": ">=16",
"npm": ">=8"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"testMatch": [
"**/*.test.ts"
]
},
"dependencies": {
"@sinclair/typebox": "^0.25.1",
"pg": "^8.7.1",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"module": "CommonJS",
"module": "esnext",
"outDir": "dist/main",
"rootDir": "src/lib",
"sourceMap": true,
"target": "ES2015",
"target": "esnext",

"strict": true,

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.module.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"module": "ES2015",
"module": "esnext",
"outDir": "dist/module"
}
}
4 changes: 2 additions & 2 deletions tsconfig.server.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"module": "CommonJS",
"module": "esnext",
"outDir": "bin",
"sourceMap": true,
"target": "ES2015",
"target": "esnext",

"strict": true,

Expand Down
0