Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed May 28, 2024
1 parent 90373d5 commit 3c9b87c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,25 @@ This package reads the `tsconfig.json` file (and is capable to find values if th

The fields listed in the example of above are all required in order to the correct working of the package.

### ...with **ESM** projects
### ...with **ESM** `type:module` projects

- scripts

```json
// node 20+ using --import
{
"serve": "yarn node --import=@armit/path-alias/register ./config/dev-server.ts"
}
```

- Execute the source code with **ts-node:**

```bash
node \
--loader @hyperse/ts-node-paths/esm \
./src/index.ts

```
```

- Execute the transpiled code:
Expand Down

0 comments on commit 3c9b87c

Please sign in to comment.