PHP 8.2.30
Preview: theme-bundler.ts Size: 438 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/src/utils/theme-bundler.ts

import { createRequire } from 'node:module'
import path from 'path'

const require = createRequire(import.meta.url)
const getAdminjsThemesDir = () => path.parse(require.resolve('@adminjs/themes')).dir

export const bundlePath = (theme: string): string => path.join(getAdminjsThemesDir(), `themes/${theme}/theme.bundle.js`)

export const stylePath = (theme: string): string => path.join(getAdminjsThemesDir(), `themes/${theme}/style.css`)

Directory Contents

Dirs: 2 × Files: 5

Name Size Perms Modified Actions
flat DIR
- drwxr-xr-x 2026-02-28 00:32:44
Edit Download
- drwxr-xr-x 2026-02-28 00:32:46
Edit Download
322 B lrw-r--r-- 2026-02-28 00:32:10
Edit Download
1.42 KB lrw-r--r-- 2026-02-28 00:32:10
Edit Download
161 B lrw-r--r-- 2026-02-28 00:32:28
Edit Download
438 B lrw-r--r-- 2026-02-28 00:32:46
Edit Download
7.19 KB lrw-r--r-- 2026-02-28 00:32:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).