File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
packages/library/src/scripts Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ import assert from "node:assert"
1
2
import path from "node:path"
2
3
import type { TestServerConfig } from "../server/index.js"
3
4
import { commandRun } from "./commands/commandRun.js"
@@ -10,6 +11,15 @@ import { parseArguments } from "./parseArguments.js"
10
11
// This is the main entrypoint to tui-sandbox
11
12
//
12
13
14
+ const [ major ] = process . versions . node . split ( "." ) . map ( Number )
15
+ assert ( major )
16
+ assert ( ! isNaN ( major ) )
17
+
18
+ if ( major < 24 ) {
19
+ console . error ( `tui-sandbox error: Node.js >= 24.0.0 is required. You are using ${ process . version } .` )
20
+ process . exit ( 1 )
21
+ }
22
+
13
23
const outputFileName = "MyTestDirectory.ts"
14
24
15
25
/** The cwd in the user's directory when they are running this script. Not the
You can’t perform that action at this time.
0 commit comments