@ava/typescript
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -7,3 +7,3 @@ import fs from 'node:fs'; | ||
const pkg = fs.readFileSync(new URL('package.json', import.meta.url)); | ||
const pkg = JSON.parse(fs.readFileSync(new URL('package.json', import.meta.url))); | ||
const help = `See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md`; | ||
@@ -10,0 +10,0 @@ |
{ | ||
"name": "@ava/typescript", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "TypeScript provider for AVA", | ||
@@ -5,0 +5,0 @@ "engines": { |
# @ava/typescript | ||
Adds [TypeScript](https://www.typescriptlang.org/) support to [AVA](https://avajs.dev). | ||
Adds [TypeScript](https://www.typescriptlang.org/) support to [AVA 4](https://avajs.dev). | ||
@@ -9,2 +9,12 @@ This is designed to work for projects that precompile TypeScript. It allows AVA to load the compiled JavaScript, while configuring AVA to treat the TypeScript files as test files. | ||
## For AVA 3 users | ||
Use version 2: | ||
```console | ||
npm install --save-dev @ava/typescript@2 | ||
``` | ||
Note that v2 does not support ES modules. This requires v3 and AVA 4. | ||
## Enabling TypeScript support | ||
@@ -45,3 +55,3 @@ | ||
When used with AVA 4, if your `package.json` has configured `"type": "module"`, or you've configured AVA to treat the `js` extension as `module`, then `@ava/typescript` will import the output file as an ES module. Note that this is based on the *output file*, not the `ts` extension. | ||
If your `package.json` has configured `"type": "module"`, or you've configured AVA to treat the `js` extension as `module`, then `@ava/typescript` will import the output file as an ES module. Note that this is based on the *output file*, not the `ts` extension. | ||
@@ -48,0 +58,0 @@ ## Add additional extensions |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9569
81