diff --git a/.changeset/rude-bugs-invite.md b/.changeset/rude-bugs-invite.md new file mode 100644 index 000000000..062b73ed1 --- /dev/null +++ b/.changeset/rude-bugs-invite.md @@ -0,0 +1,5 @@ +--- +"@fake-scope/fake-pkg": patch +--- + +doc: update readme diff --git a/README.md b/README.md index 8fc9793ca..72240f40c 100644 --- a/README.md +++ b/README.md @@ -30,12 +30,12 @@ SWCRC=true node -r @swc-node/register script.ts ``` ```typescript -#!/usr/bin/env node --import swc-register-esm +#!/usr/bin/env node --import @swc-node/register/esm-register // your code ``` -run with shebang, add `TS_NODE_PROJECT=null`(`#!/usr/bin/env TS_NODE_PROJECT=null node --import swc-register-esm`) to use ignore tsconfig.json +run with shebang, add `TS_NODE_PROJECT=null`(`#!/usr/bin/env TS_NODE_PROJECT=null node --import @swc-node/register/esm-register`) to use ignore tsconfig.json ## @swc-node/core