Skip to content

Commit

Permalink
doc: update readme (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeliex authored May 28, 2024
1 parent fd85848 commit a1098be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-bugs-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fake-scope/fake-pkg": patch
---

doc: update readme
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1098be

Please sign in to comment.