Skip to content

package assets

GitHub Actions edited this page Sep 17, 2026 · 1 revision

package/assets

Import: import { uiAssetUrl, uiAssetsDir, copyUiAssets } from "@tundralibs/ui/assets"

Functions

uiAssetUrl

uiAssetUrl(asset: UiAsset): string

Resolved location of one distributable, as a URL string (file: or https:).

uiAssetsDir

uiAssetsDir(): string | undefined

Absolute path of the package's dist/ directory when it is on disk (local checkout, npm install), else undefined (JSR under Deno serves modules from its cache — use copyUiAssets() there).

copyUiAssets

copyUiAssets(toDir: string): Promise

Copies ui.css and ui.js into toDir (created if missing) and returns the files written. Idempotent — call it at every boot.

Clone this wiki locally