Skip to content

Commit fa1c75f

Browse files
committed
Replace ts-node with @septh/ts-run and updates dependencies
1 parent 7097eb6 commit fa1c75f

File tree

9 files changed

+1465
-753
lines changed

9 files changed

+1465
-753
lines changed

package-lock.json

Lines changed: 1438 additions & 731 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"license": "MIT",
3131
"engines": {
32-
"node": ">=16.0.0"
32+
"node": ">= 21 || ^20.6.0 || ^18.19.0"
3333
},
3434
"files": [
3535
"dist",
@@ -47,18 +47,18 @@
4747
"prepublishOnly": "npm run lint && npm run clean && npm run build"
4848
},
4949
"devDependencies": {
50-
"@fast-check/ava": "^1.1.4",
51-
"@types/node": "^18.18.3",
52-
"@typescript-eslint/eslint-plugin": "^6.7.4",
53-
"@typescript-eslint/parser": "^6.7.4",
54-
"ava": "^5.2.0",
55-
"eslint": "^8.40.0",
56-
"fast-check": "^3.8.1",
57-
"rimraf": "^3.0.2",
58-
"rollup": "^4.0.0",
59-
"ts-node": "^10.9.1",
60-
"tslib": "^2.5.0",
61-
"typescript": "^5.0.4"
50+
"@fast-check/ava": "^1.2.1",
51+
"@septh/ts-run": "^1.0.2",
52+
"@types/node": "^18.19.10",
53+
"@typescript-eslint/eslint-plugin": "^6.19.1",
54+
"@typescript-eslint/parser": "^6.19.1",
55+
"ava": "^6.1.0",
56+
"eslint": "^8.56.0",
57+
"fast-check": "^3.15.0",
58+
"rimraf": "^5.0.5",
59+
"rollup": "^4.9.6",
60+
"tslib": "^2.6.2",
61+
"typescript": "^5.3.3"
6262
},
6363
"peerDependencies": {
6464
"rollup": "^3.0.0 || ^4.0.0"
@@ -69,7 +69,7 @@
6969
"ts": "module"
7070
},
7171
"nodeArguments": [
72-
"--loader=ts-node/esm"
72+
"--import=@septh/ts-run/register"
7373
]
7474
},
7575
"np": {

test/_common.ts

Lines changed: 1 addition & 1 deletion
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 type { Plugin, RollupError, ObjectHook } from 'rollup'
4-
import { nodeExternals, type ExternalsOptions } from '../source/index.js'
4+
import { nodeExternals, type ExternalsOptions } from '../source/index.ts'
55

66
const __dirname = path.dirname(fileURLToPath(import.meta.url))
77

test/builtins.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava'
2-
import { initPlugin, callHook } from './_common.js'
2+
import { initPlugin, callHook } from './_common.ts'
33

44
test("Marks Node builtins external by default", async t => {
55
const { plugin } = await initPlugin()

test/monorepo.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs from 'node:fs/promises'
22
import test from 'ava'
3-
import { initPlugin, callHook, fixture } from './_common.js'
3+
import { initPlugin, callHook, fixture } from './_common.ts'
44

55
// These two tests need to be run in sequence
66
test.serial('git monorepo usage', async t => {

test/options.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import test from 'ava'
22
import { testProp, fc } from '@fast-check/ava'
33
import type { Arbitrary } from 'fast-check'
4-
import { initPlugin, callHook, fixture } from './_common.js'
5-
import { type ExternalsOptions } from '../source/index.js'
4+
import { initPlugin, callHook, fixture } from './_common.ts'
5+
import { type ExternalsOptions } from '../source/index.ts'
66

77
// Ensures tests use local package.json
88
process.chdir(fixture())

test/specifier.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava'
2-
import { initPlugin, callHook } from './_common.js'
2+
import { initPlugin, callHook } from './_common.ts'
33

44
const testSpecifiers = {
55
virtual: [ '\\0virtual' ],

test/tsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@
33
"include": [
44
"./_common.ts",
55
"./*.test.ts"
6-
]
6+
],
7+
"compilerOptions": {
8+
"allowImportingTsExtensions": true,
9+
"noEmit": true,
10+
"isolatedModules": true
11+
}
712
}

test/workspaces.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava'
2-
import { initPlugin, callHook, fixture } from './_common.js'
2+
import { initPlugin, callHook, fixture } from './_common.ts'
33

44
test('npm/yarn workspaces usage', async t => {
55
process.chdir(fixture('02_workspaces/npm-and-yarn/one'))

0 commit comments

Comments
 (0)