unjs/jiti

There is not any documention for using alias & JITI_ALIAS

amirrezaDev1378 opened this issue · 1 comments

Describe the change

Unfortunately, there is no proper documentation on how to use alias and JITI_ALIAS options.
It would be great if we have an example of how to use these options.

URLs

No response

Additional information

  • Would you be willing to help?

It is a key-value JSON object:

JITI_ALIAS='{"~/*": "./src/*"}' pnpm run cli/migrate.ts

You can see how it is parsed here: https://github.com/unjs/jiti/blob/main/src/options.ts