From 8da6e6ee71f1b4e3fc2a632bc216e21471ae1cdf Mon Sep 17 00:00:00 2001 From: KatoakDR <68095633+KatoakDR@users.noreply.github.com> Date: Sat, 14 Sep 2024 00:14:03 -0500 Subject: [PATCH] chore: esm fix for ts-node https://github.com/TypeStrong/ts-node/issues/2122#issuecomment-2350839871 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 89f5ec95..626a28c1 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "build:mac": "yarn build && electron-builder --mac --config", "build:linux": "yarn build && electron-builder --linux --config", "test": "yarn clean && vitest", + "ts-node": "node --loader ts-node/esm --no-warnings=ExperimentalWarning -e \"import('${0}')\"", "prepare": "npx husky && electron-builder install-app-deps", "semantic-release": "npx semantic-release", "sentry:sourcemaps": "./scripts/sentry-sourcemaps.sh"