From 6c73d01b3372e2548c081759b1851e0491296d4d Mon Sep 17 00:00:00 2001 From: maxam2017 Date: Sat, 17 Feb 2024 04:50:44 +0800 Subject: [PATCH] fix: make ts-node work on node20 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4d756105f..400547af1 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "type": "module", "scripts": { "preinstall": "./preinstall.sh", - "dev": "ts-node-esm src/index.ts", + "dev": "node --loader ts-node/esm src/index.ts", "build": "tsc && ncc build dist/index.js --minify && find dist/ -type f -not -name 'index.js' -delete", "lint": "biome lint" },