From a817069736d5cfddec92ae203cf3567a88c6085c Mon Sep 17 00:00:00 2001 From: cenfun Date: Sat, 21 Sep 2024 15:48:34 +0800 Subject: [PATCH] fix nodejs version for --import --- README.md | 2 +- README.zh-Hans.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f32d215..a64f893 100644 --- a/README.md +++ b/README.md @@ -1039,7 +1039,7 @@ mcr mocha ./test/**/*.js ```sh cross-env NODE_OPTIONS="--import tsx" npx mcr tsx ./src/example.ts cross-env NODE_OPTIONS="--import tsx" npx mcr mocha ./test/**/*.ts -# Node.js v20.6.0 + +# Node.js v18.19.0 + mcr --import tsx tsx ./src/example.ts mcr --import tsx mocha ./test/**/*.ts ``` diff --git a/README.zh-Hans.md b/README.zh-Hans.md index b3ea8ee..68a7d3a 100644 --- a/README.zh-Hans.md +++ b/README.zh-Hans.md @@ -1043,7 +1043,7 @@ mcr mocha ./test/**/*.js ```sh cross-env NODE_OPTIONS="--import tsx" npx mcr tsx ./src/example.ts cross-env NODE_OPTIONS="--import tsx" npx mcr mocha ./test/**/*.ts -# Node.js v20.6.0 + +# Node.js v18.19.0 + mcr --import tsx tsx ./src/example.ts mcr --import tsx mocha ./test/**/*.ts ```