buninu 0.1.3 → 0.1.5
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/CHANGELOG.md +23 -0
- package/apps/jsmdcui/jsmdcui.sh +2 -2
- package/bin/glow.bat +1 -1
- package/bin/glow.sh +1 -1
- package/bin/init.js +1 -1
- package/bin/jmi.bat +1 -1
- package/bin/jmi.sh +1 -1
- package/bin/jsmdcui.bat +8 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.5 - 2026-08-16
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Enable jsmdcui's mdcui encoding for `--cdp-maze`, which selects the bundled
|
|
8
|
+
Markdown maze without passing a `.md` filename or a `--demo*` argument.
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Prefer PowerShell (`pwsh.exe`, then `powershell.exe`) as the default Windows
|
|
13
|
+
shell, falling back to `%COMSPEC%` or `cmd.exe` when PowerShell is unavailable.
|
|
14
|
+
|
|
15
|
+
## 0.1.4 - 2026-08-16
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Enable jsmdcui's mdcui encoding when any launcher argument begins with
|
|
20
|
+
`--demo`, in addition to the existing `.md` file detection.
|
|
21
|
+
- Run jsmdcui's `src/index.js` entry point directly from the Unix and Windows
|
|
22
|
+
`jsmdcui`, `jmi`, and `glow` launchers instead of going through its `tui`
|
|
23
|
+
wrapper. This gives demos such as `--demo-img-change` the expected `Bun.main`
|
|
24
|
+
path so their bundled image assets can be resolved correctly.
|
|
25
|
+
|
|
3
26
|
## 0.1.3 - 2026-08-16
|
|
4
27
|
|
|
5
28
|
### Fixed
|
package/apps/jsmdcui/jsmdcui.sh
CHANGED
|
@@ -4,8 +4,8 @@ sd=$(dirname "$(realpath "$0")")
|
|
|
4
4
|
|
|
5
5
|
for arg do
|
|
6
6
|
case "$arg" in
|
|
7
|
-
*.[mM][dD]) exec bun "$sd"/
|
|
7
|
+
*.[mM][dD]|--demo*|--cdp-maze) exec bun "$sd"/src/index.js --mdcui "$@" ;;
|
|
8
8
|
esac
|
|
9
9
|
done
|
|
10
10
|
|
|
11
|
-
exec bun "$sd"/
|
|
11
|
+
exec bun "$sd"/src/index.js "$@"
|
package/bin/glow.bat
CHANGED
package/bin/glow.sh
CHANGED
package/bin/init.js
CHANGED
|
@@ -130,9 +130,9 @@ async function detectEnvironment() {
|
|
|
130
130
|
return {
|
|
131
131
|
name: "windows",
|
|
132
132
|
shell:
|
|
133
|
-
await findCommand(process.env.COMSPEC) ||
|
|
134
133
|
Bun.which("pwsh.exe") ||
|
|
135
134
|
Bun.which("powershell.exe") ||
|
|
135
|
+
await findCommand(process.env.COMSPEC) ||
|
|
136
136
|
Bun.which("cmd.exe") ||
|
|
137
137
|
"cmd.exe",
|
|
138
138
|
};
|
package/bin/jmi.bat
CHANGED
package/bin/jmi.sh
CHANGED
package/bin/jsmdcui.bat
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
@echo off
|
|
2
|
+
setlocal EnableExtensions EnableDelayedExpansion
|
|
2
3
|
set "JSMDCUI_ENCODING="
|
|
3
|
-
for %%A in (%*) do
|
|
4
|
-
|
|
4
|
+
for %%A in (%*) do (
|
|
5
|
+
set "JSMDCUI_ARGUMENT=%%~A"
|
|
6
|
+
if /I "%%~xA"==".md" set "JSMDCUI_ENCODING=--mdcui"
|
|
7
|
+
if /I "!JSMDCUI_ARGUMENT:~0,6!"=="--demo" set "JSMDCUI_ENCODING=--mdcui"
|
|
8
|
+
if /I "!JSMDCUI_ARGUMENT!"=="--cdp-maze" set "JSMDCUI_ENCODING=--mdcui"
|
|
9
|
+
)
|
|
10
|
+
call "%~dp0bun.bat" "%~dp0..\apps\jsmdcui\src\index.js" %JSMDCUI_ENCODING% %*
|
|
5
11
|
exit /b %ERRORLEVEL%
|
package/package.json
CHANGED