8000 chore: switch build to esnext module type · supabase/postgres-meta@c641483 · GitHub
[go: up one dir, main page]

Skip to content

Commit c641483

Browse files
committed
chore: switch build to esnext module type
1 parent bf2a72b commit c641483

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM node:16 as build
22
WORKDIR /usr/src/app
33
# Do `npm ci` separately so we can cache `node_modules`
44
# https://nodejs.org/en/docs/guides/nodejs-docker-webapp/
5-
COPY package.json package-lock.json .
5+
COPY package.json package-lock.json ./
66
RUN npm clean-install
77
COPY . .
88
RUN npm run build:server

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"files": [
1010
"dist"
1111
],
12+
"type": "module",
1213
"main": "dist/main/index.js",
1314
"module": "dist/module/index.js",
1415
"repository": "supabase/postgres-meta",

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"compilerOptions": {
44
"declaration": true,
55
"declarationMap": true,
6-
"module": "CommonJS",
6+
"module": "esnext",
77
"outDir": "dist/main",
88
"rootDir": "src/lib",
99
"sourceMap": true,
10-
"target": "ES2015",
10+
"target": "esnext",
1111

1212
"strict": true,
1313

tsconfig.module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig",
33
"compilerOptions": {
4-
"module": "ES2015",
4+
"module": "esnext",
55
"outDir": "dist/module"
66
}
77
}

tsconfig.server.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"compilerOptions": {
44
"declaration": true,
55
"declarationMap": true,
6-
"module": "CommonJS",
6+
"module": "esnext",
77
"outDir": "bin",
88
"sourceMap": true,
9-
"target": "ES2015",
9+
"target": "esnext",
1010

1111
"strict": true,
1212

0 commit comments

Comments
 (0)
0