@tui-sandbox/library 11.6.0 → 11.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tui-sandbox/library",
3
- "version": "11.6.0",
3
+ "version": "11.6.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mikavilpas/tui-sandbox"
@@ -27,7 +27,7 @@
27
27
  "prettier": "3.6.2",
28
28
  "type-fest": "4.41.0",
29
29
  "winston": "3.17.0",
30
- "zod": "4.0.14"
30
+ "zod": "4.0.15"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/command-exists": "1.2.3",
@@ -1,9 +1,9 @@
1
1
  import concurrently from "concurrently"
2
2
  import { debuglog } from "util"
3
3
 
4
- const log = debuglog("tui-sandbox.commandRunOnce")
4
+ const log = debuglog("tui-sandbox.commandRun")
5
5
 
6
- export async function commandRunOnce(): Promise<void> {
6
+ export async function commandRun(): Promise<void> {
7
7
  const job = concurrently(
8
8
  [
9
9
  {
@@ -1,6 +1,7 @@
1
+ import assert from "node:assert"
1
2
  import path from "node:path"
2
3
  import type { TestServerConfig } from "../server/index.js"
3
- import { commandRunOnce } from "./commands/commandRunOnce.js"
4
+ import { commandRun } from "./commands/commandRun.js"
4
5
  import { commandTuiNeovimExec } from "./commands/commandTuiNeovimExec.js"
5
6
  import { commandTuiNeovimPrepare } from "./commands/commandTuiNeovimPrepare.js"
6
7
  import { commandTuiStart } from "./commands/commandTuiStart.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
@@ -42,7 +52,7 @@ switch (command?.action) {
42
52
  break
43
53
  }
44
54
  case "run": {
45
- await commandRunOnce()
55
+ await commandRun()
46
56
  break
47
57
  }
48
58
  default: {
@@ -1 +0,0 @@
1
- export declare function commandRunOnce(): Promise<void>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"commandRunOnce.js","sourceRoot":"","sources":["../../../../src/scripts/commands/commandRunOnce.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAA;AAE/B,MAAM,GAAG,GAAG,QAAQ,CAAC,4BAA4B,CAAC,CAAA;AAElD,MAAM,CAAC,KAAK,UAAU,cAAc;IAClC,MAAM,GAAG,GAAG,YAAY,CACtB;QACE;YACE,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,WAAW;YACpB,WAAW,EAAE,MAAM;SACpB;QACD;YACE,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,kIAAkI;YAC3I,WAAW,EAAE,QAAQ;SACtB;KACF,EACD;QACE,YAAY,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;QACpC,SAAS,EAAE,IAAI,EAAE,yCAAyC;QAC1D,gBAAgB,EAAE,iBAAiB,EAAE,+CAA+C;KACrF,CACF,CAAA;IAED,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,CACnB,CAAC,CAAC,EAAE;QACF,GAAG,CAAC,qCAAqC,CAAC,CAAA;IAC5C,CAAC,EACD,CAAC,GAAY,EAAE,EAAE;QACf,GAAG,CAAC,kDAAkD,EAAE,GAAG,CAAC,CAAA;IAC9D,CAAC,CACF,CAAA;AACH,CAAC"}