Skip to content

Commit

Permalink
Replace ts-node with @septh/ts-run and updates dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Septh committed Jan 28, 2024
1 parent 7097eb6 commit fa1c75f
Show file tree
Hide file tree
Showing 9 changed files with 1,465 additions and 753 deletions.
2,169 changes: 1,438 additions & 731 deletions package-lock.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">= 21 || ^20.6.0 || ^18.19.0"
},
"files": [
"dist",
Expand All @@ -47,18 +47,18 @@
"prepublishOnly": "npm run lint && npm run clean && npm run build"
},
"devDependencies": {
"@fast-check/ava": "^1.1.4",
"@types/node": "^18.18.3",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"ava": "^5.2.0",
"eslint": "^8.40.0",
"fast-check": "^3.8.1",
"rimraf": "^3.0.2",
"rollup": "^4.0.0",
"ts-node": "^10.9.1",
"tslib": "^2.5.0",
"typescript": "^5.0.4"
"@fast-check/ava": "^1.2.1",
"@septh/ts-run": "^1.0.2",
"@types/node": "^18.19.10",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"ava": "^6.1.0",
"eslint": "^8.56.0",
"fast-check": "^3.15.0",
"rimraf": "^5.0.5",
"rollup": "^4.9.6",
"tslib": "^2.6.2",
"typescript": "^5.3.3"
},
"peerDependencies": {
"rollup": "^3.0.0 || ^4.0.0"
Expand All @@ -69,7 +69,7 @@
"ts": "module"
},
"nodeArguments": [
"--loader=ts-node/esm"
"--import=@septh/ts-run/register"
]
},
"np": {
Expand Down
2 changes: 1 addition & 1 deletion test/_common.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import type { Plugin, RollupError, ObjectHook } from 'rollup'
import { nodeExternals, type ExternalsOptions } from '../source/index.js'
import { nodeExternals, type ExternalsOptions } from '../source/index.ts'

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

Expand Down
2 changes: 1 addition & 1 deletion test/builtins.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava'
import { initPlugin, callHook } from './_common.js'
import { initPlugin, callHook } from './_common.ts'

test("Marks Node builtins external by default", async t => {
const { plugin } = await initPlugin()
Expand Down
2 changes: 1 addition & 1 deletion test/monorepo.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'node:fs/promises'
import test from 'ava'
import { initPlugin, callHook, fixture } from './_common.js'
import { initPlugin, callHook, fixture } from './_common.ts'

// These two tests need to be run in sequence
test.serial('git monorepo usage', async t => {
Expand Down
4 changes: 2 additions & 2 deletions test/options.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import test from 'ava'
import { testProp, fc } from '@fast-check/ava'
import type { Arbitrary } from 'fast-check'
import { initPlugin, callHook, fixture } from './_common.js'
import { type ExternalsOptions } from '../source/index.js'
import { initPlugin, callHook, fixture } from './_common.ts'
import { type ExternalsOptions } from '../source/index.ts'

// Ensures tests use local package.json
process.chdir(fixture())
Expand Down
2 changes: 1 addition & 1 deletion test/specifier.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava'
import { initPlugin, callHook } from './_common.js'
import { initPlugin, callHook } from './_common.ts'

const testSpecifiers = {
virtual: [ '\\0virtual' ],
Expand Down
7 changes: 6 additions & 1 deletion test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
"include": [
"./_common.ts",
"./*.test.ts"
]
],
"compilerOptions": {
"allowImportingTsExtensions": true,
"noEmit": true,
"isolatedModules": true
}
}
2 changes: 1 addition & 1 deletion test/workspaces.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from 'ava'
import { initPlugin, callHook, fixture } from './_common.js'
import { initPlugin, callHook, fixture } from './_common.ts'

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

0 comments on commit fa1c75f

Please sign in to comment.