From 9223e384941b4a8c02ece8d673972cade5bfe5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Mon, 19 Jun 2023 11:36:45 +0200 Subject: [PATCH] Switching package to ESM Also, upgrading module resolution to Node16. This will help importing a number of recent packages (like https://www.npmjs.com/package/cron-schedule) --- package.json | 3 ++- tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index beace56b7..2e7d947e5 100644 --- a/package.json +++ b/package.json @@ -17,5 +17,6 @@ }, "dependencies": { "@workadventure/scripting-api-extra": "^1.4.6" - } + }, + "type": "module" } diff --git a/tsconfig.json b/tsconfig.json index ac13dfbb6..a5de38d7a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,7 @@ "DOM" ], "allowJs": true, - "moduleResolution": "Node", + "moduleResolution": "Node16", "strict": true, "noImplicitAny": true, "strictNullChecks": true,