terminull-arcade 1.0.2 → 1.0.4

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": "terminull-arcade",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Enter the Terminull. Play beyond the prompt. A curated arcade of original terminal games.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,12 +21,18 @@
21
21
  "files": [
22
22
  "dist",
23
23
  "README.md",
24
- "LICENSE"
24
+ "LICENSE",
25
+ "launch.ps1",
26
+ "launch.sh",
27
+ "terminull.cmd",
28
+ "terminull.ps1",
29
+ "terminull"
25
30
  ],
26
31
  "engines": {
27
32
  "node": ">=18.0.0"
28
33
  },
29
34
  "scripts": {
35
+ "start": "node ./dist/cli.js",
30
36
  "dev": "tsup --watch",
31
37
  "build": "tsup",
32
38
  "test": "vitest run",
package/terminull ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env bash
2
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
3
+ "$SCRIPT_DIR/launch.sh" "$@"
package/terminull.cmd ADDED
@@ -0,0 +1,16 @@
1
+ @echo off
2
+ setlocal
3
+ where node >nul 2>&1
4
+ if %ERRORLEVEL% equ 0 (
5
+ if exist "%~dp0dist\cli.js" (
6
+ node "%~dp0dist\cli.js" %*
7
+ goto :EOF
8
+ ) else (
9
+ npx terminull-arcade %*
10
+ goto :EOF
11
+ )
12
+ )
13
+
14
+ echo [!] Node.js not found on this system.
15
+ echo [^>] Automatically installing Node.js LTS for you now...
16
+ powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0launch.ps1"
package/terminull.ps1 ADDED
@@ -0,0 +1,7 @@
1
+ # Terminull Arcade PowerShell Command Launcher
2
+ param (
3
+ [Parameter(ValueFromRemainingArguments = $true)]
4
+ [string[]]$Args
5
+ )
6
+
7
+ & "$PSScriptRoot\launch.ps1" @Args