Skip to content

Commit 75aad0a

Browse files
committed
Update dependencies
1 parent dfdfea5 commit 75aad0a

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from 'node:fs';
22
import path from 'node:path';
33
import {pathToFileURL} from 'node:url';
44
import escapeStringRegexp from 'escape-string-regexp';
5-
import execa from 'execa';
5+
import {execa} from 'execa';
66

77
const pkg = JSON.parse(fs.readFileSync(new URL('package.json', import.meta.url)));
88
const help = `See https://github.com/avajs/typescript/blob/v${pkg.version}/README.md`;
@@ -182,7 +182,7 @@ export default function typescriptProvider({negotiateProtocol}) {
182182
useImport = importJs;
183183
}
184184

185-
return useImport ? import(pathToFileURL(rewritten)) : requireFn(rewritten); // eslint-disable-line node/no-unsupported-features/es-syntax
185+
return useImport ? import(pathToFileURL(rewritten)) : requireFn(rewritten);
186186
},
187187
};
188188
},

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
},
2525
"dependencies": {
2626
"escape-string-regexp": "^5.0.0",
27-
"execa": "^5.1.1"
27+
"execa": "^7.1.0"
2828
},
2929
"devDependencies": {
30-
"ava": "4.0.0-rc.1",
31-
"c8": "^7.10.0",
32-
"del": "^6.0.0",
33-
"typescript": "^4.4.4",
34-
"xo": "^0.46.3"
30+
"ava": "^5.2.0",
31+
"c8": "^7.13.0",
32+
"del": "^7.0.0",
33+
"typescript": "^4.9.5",
34+
"xo": "^0.53.1"
3535
},
3636
"c8": {
3737
"reporter": [

test/compilation.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import path from 'node:path';
22
import {fileURLToPath} from 'node:url';
33
import test from 'ava';
4-
import del from 'del';
5-
import execa from 'execa';
4+
import {deleteAsync} from 'del';
5+
import {execaNode} from 'execa';
66
import createProviderMacro from './_with-provider.js';
77

88
const __dirname = path.dirname(fileURLToPath(import.meta.url));
99
const withProvider = createProviderMacro('ava-3.2', '3.2.0', path.join(__dirname, 'fixtures'));
1010
const withAltProvider = createProviderMacro('ava-3.2', '3.2.0', path.join(__dirname, 'broken-fixtures'));
1111

1212
test.before('deleting compiled files', async t => {
13-
t.log(await del('test/fixtures/typescript/compiled'));
14-
t.log(await del('test/broken-fixtures/typescript/compiled'));
13+
t.log(await deleteAsync('test/fixtures/typescript/compiled'));
14+
t.log(await deleteAsync('test/broken-fixtures/typescript/compiled'));
1515
});
1616

1717
const compile = async provider => ({
@@ -28,7 +28,7 @@ const compile = async provider => ({
2828

2929
test('worker(): load rewritten paths files', withProvider, async (t, provider) => {
3030
const {state} = await compile(provider);
31-
const {stdout, stderr} = await execa.node(
31+
const {stdout, stderr} = await execaNode(
3232
path.join(__dirname, 'fixtures/install-and-load'),
3333
[JSON.stringify({state}), path.join(__dirname, 'fixtures/ts', 'file.ts')],
3434
{cwd: path.join(__dirname, 'fixtures')},
@@ -42,7 +42,7 @@ test('worker(): load rewritten paths files', withProvider, async (t, provider) =
4242

4343
test('worker(): runs compiled files', withProvider, async (t, provider) => {
4444
const {state} = await compile(provider);
45-
const {stdout, stderr} = await execa.node(
45+
const {stdout, stderr} = await execaNode(
4646
path.join(__dirname, 'fixtures/install-and-load'),
4747
[JSON.stringify({state}), path.join(__dirname, 'fixtures/compiled', 'index.ts')],
4848
{cwd: path.join(__dirname, 'fixtures')},

test/load.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'node:path';
22
import {fileURLToPath} from 'node:url';
33
import test from 'ava';
4-
import execa from 'execa';
4+
import {execaNode} from 'execa';
55
import createProviderMacro from './_with-provider.js';
66

77
const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -20,7 +20,7 @@ const setup = async provider => ({
2020

2121
test('worker(): load .cts', withProvider, async (t, provider) => {
2222
const {state} = await setup(provider);
23-
const {stdout, stderr} = await execa.node(
23+
const {stdout, stderr} = await execaNode(
2424
path.join(__dirname, 'fixtures/install-and-load'),
2525
[JSON.stringify({state}), path.join(__dirname, 'fixtures/load', 'index.cts')],
2626
{cwd: path.join(__dirname, 'fixtures')},
@@ -34,7 +34,7 @@ test('worker(): load .cts', withProvider, async (t, provider) => {
3434

3535
test('worker(): load .mts', withProvider, async (t, provider) => {
3636
const {state} = await setup(provider);
37-
const {stdout, stderr} = await execa.node(
37+
const {stdout, stderr} = await execaNode(
3838
path.join(__dirname, 'fixtures/install-and-load'),
3939
[JSON.stringify({state}), path.join(__dirname, 'fixtures/load', 'index.mts')],
4040
{cwd: path.join(__dirname, 'fixtures')},
@@ -48,7 +48,7 @@ test('worker(): load .mts', withProvider, async (t, provider) => {
4848

4949
test('worker(): load .ts', withProvider, async (t, provider) => {
5050
const {state} = await setup(provider);
51-
const {stdout, stderr} = await execa.node(
51+
const {stdout, stderr} = await execaNode(
5252
path.join(__dirname, 'fixtures/install-and-load'),
5353
[JSON.stringify({extensionsToLoadAsModules: ['js'], state}), path.join(__dirname, 'fixtures/load', 'index.ts')],
5454
{cwd: path.join(__dirname, 'fixtures')},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy