From a609e9e083f328a0191e973bde1110b199bdbd9a Mon Sep 17 00:00:00 2001 From: Stephan Kulla Date: Wed, 29 Nov 2023 19:59:56 +0100 Subject: [PATCH 1/2] fix: Add missing `type: module` --- packages/server/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/server/package.json b/packages/server/package.json index 73d79c434..6f3876083 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -8,6 +8,7 @@ "main": "dist/index.js", "module": "dist/authorization.esm.js", "typings": "dist/index.d.ts", + "type": "module", "scripts": { "_build": "tsdx build --transpileOnly --tsconfig tsconfig.prod.json", "build:server": "yarn _build --format cjs --target node --entry src/server.ts", From 120a7903205d76e01b989aefe2365d5fe2a28ace Mon Sep 17 00:00:00 2001 From: Stephan Kulla Date: Wed, 29 Nov 2023 20:01:06 +0100 Subject: [PATCH 2/2] chore(server): Rewrite `deploy:image` --- packages/server/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/package.json b/packages/server/package.json index 6f3876083..2f28bfa31 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -14,7 +14,7 @@ "build:server": "yarn _build --format cjs --target node --entry src/server.ts", "build:swr-queue-worker": "yarn _build --format cjs --target node --entry src/swr-queue-worker.ts", "codegen": "graphql-codegen --config codegen.yml", - "deploy:image": "NODE_OPTIONS='--experimental-specifier-resolution=node' ts-node-esm scripts/deploy.ts", + "deploy:image": "ts-node --experimental-specifier-resolution=node scripts/deploy", "prestart": "lerna run build", "start": "tsdx watch --transpileOnly --format cjs --target node --entry src/server.ts --tsconfig tsconfig.prod.json --onSuccess \"node dist\"", "start:swr-queue-worker": "tsdx watch --transpileOnly --format cjs --target node --entry src/swr-queue-worker.ts --tsconfig tsconfig.prod.json --onSuccess \"node dist\""