fix(app): an empty mountpoint mounts at the root again (GitHub #31) #161

Merged
chrnx merged 1 commits from fix/mountpoint-empty-string into develop 2026-10-24 23:15:47 +00:00
Owner

GitHub #32 (merged from contrib) made createApp fail with a message
naming the module when its @Module metadata has no mountpoint,
instead of a TypeError from joinPath. The check tested falsiness, so
it also refused mountpoint: '', which the type allows and which has
always mounted at the root (joinPath('', '/hi') is /hi).

Test for typeof … !== 'string' instead: a missing or non-string
mountpoint still fails with the new message, and '' boots as before.
The CHANGELOG entry for #31 that #32 did not add is included.

GitHub #32 (merged from contrib) made `createApp` fail with a message naming the module when its `@Module` metadata has no `mountpoint`, instead of a TypeError from `joinPath`. The check tested falsiness, so it also refused `mountpoint: ''`, which the type allows and which has always mounted at the root (`joinPath('', '/hi')` is `/hi`). Test for `typeof … !== 'string'` instead: a missing or non-string mountpoint still fails with the new message, and `''` boots as before. The CHANGELOG entry for #31 that #32 did not add is included.
chrnx added 1 commit 2026-10-24 20:52:54 +00:00
fix(app): an empty mountpoint mounts at the root again (GitHub #31)
CI / dco (pull_request) Successful in 4s
CI / runtimes (bun) (pull_request) Successful in 20s
CI / build (pull_request) Successful in 29s
CI / runtimes (edge) (pull_request) Successful in 18s
CI / runtimes (deno) (pull_request) Successful in 33s
7c2454fe43
GitHub #32 (merged from contrib) made `createApp` fail with a message
naming the module when its `@Module` metadata has no `mountpoint`,
instead of a TypeError from `joinPath`. The check tested falsiness, so
it also refused `mountpoint: ''`, which the type allows and which has
always mounted at the root (`joinPath('', '/hi')` is `/hi`).

Test for `typeof … !== 'string'` instead: a missing or non-string
mountpoint still fails with the new message, and `''` boots as before.
The CHANGELOG entry for #31 that #32 did not add is included.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
chrnx force-pushed fix/mountpoint-empty-string from d276e3d278 to 7c2454fe43 2026-10-24 20:52:54 +00:00 Compare
chrnx merged commit 6fc6e9e3c5 into develop 2026-10-24 23:15:47 +00:00
Sign in to join this conversation.