Skip to content

Commit d9bdf47

Browse files
committed
chore: remove unused TYPESCRIPT_DEFAULT_NODE_VERSION variable
1 parent 5d0361b commit d9bdf47

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ const {
6060
export const MTS_SUPPORTED_NODE_VERSION = 16
6161
export const LOADER_SUPPORTED_NODE_VERSION = 20
6262
export const TYPESCRIPT_DEFAULT_NODE_VERSION = 23.6
63-
export const TYPESCRIPT_SUPPORTED_NODE_VERSION = 22.1
6463

6564
const NODE_TYPESCRIPT = process.features.typescript
6665
const NODE_VERSION = Number.parseFloat(process.versions.node)

test/ts-runner.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import type { AsyncWorkerFn } from './types.js'
1010
import {
1111
MTS_SUPPORTED_NODE_VERSION,
1212
TYPESCRIPT_DEFAULT_NODE_VERSION,
13-
TYPESCRIPT_SUPPORTED_NODE_VERSION,
1413
TsRunner,
1514
} from 'synckit'
1615

@@ -138,7 +137,7 @@ test(TsRunner.TSX, async () => {
138137
test(TsRunner.Node, async () => {
139138
const { createSyncFn } = await import('synckit')
140139

141-
if (nodeVersion < TYPESCRIPT_SUPPORTED_NODE_VERSION) {
140+
if (!process.features.typescript) {
142141
// eslint-disable-next-line jest/no-conditional-expect
143142
expect(() =>
144143
createSyncFn<AsyncWorkerFn>(workerMtsPath, {

0 commit comments

Comments
 (0)