mirror of
https://github.com/hanzoai/ts-node.git
synced 2026-10-30 19:36:25 +00:00
* chore(website): upgrade Docusaurus, format files * remove external link icon * upgrade Docusaurus to beta.16 * fix lock * add shiki-twoslash, pick code highlighting themes, update build-readme.mjs to strip twoslash prefixes, fix a couple typos and docs mistakes found due to the above (yay), pin yarn version * linting * beta.17 * point breadcrumb home to /docs * fix prettier config * remove twoslash tsconfig renderer due to rendering bug on dark theme, and it also adds erroneous links to ts-node sub-config Co-authored-by: Andrew Bradley <[email protected]> Co-authored-by: Joshua Chen <[email protected]>
697 B
697 B
title
| title |
|---|
| AVA |
Assuming you are configuring AVA via your package.json, add one of the following configurations.
CommonJS
Use this configuration if your package.json does not have "type": "module".
{
"ava": {
"extensions": [
"ts"
],
"require": [
"ts-node/register"
]
}
}
Native ECMAScript modules
This configuration is necessary if your package.json has "type": "module".
{
"ava": {
"extensions": {
"ts": "module"
},
"nonSemVerExperiments": {
"configurableModuleFormat": true
},
"nodeArguments": [
"--loader=ts-node/esm"
]
}
}