Skip to content

Commit

Permalink
docs(readme): update typescript env variable section (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Sep 15, 2023
1 parent 2afec63 commit bff7ad7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,13 @@ Autoload can be customised using the following options:
// { country: 'be', language: 'nl' }
```
## Override Typescript detection per Environment variable
## Override TypeScript detection using an environment variable
It is possible to override the automatic detection of a typescript capable runtime per `FASTIFY_AUTOLOAD_TYPESCRIPT` environment variable. If set to a truthy value Autoload will load `.ts` files, expecting that node has a typescript capable loader.
It is possible to override the automatic detection of a Typescript-capable runtime using the `FASTIFY_AUTOLOAD_TYPESCRIPT` environment variable. If set to a truthy value Autoload will load `.ts` files, expecting that node has a TypeScript-capable loader.
This is useful for cases, where you want to use Autoload for loading typescript files but detecting the typescript loader fails, because for example you are using a custom loader.
This is useful for cases where you want to use Autoload for loading typescript files but detecting the typescript loader fails because, for example, you are using a custom loader.
You can use it like this:
It can be used like this:
```sh
FASTIFY_AUTOLOAD_TYPESCRIPT=1 node --loader=my-custom-loader index.ts
Expand Down

0 comments on commit bff7ad7

Please sign in to comment.