PHP 8.2.30
Preview: index.js Size: 909 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/spec/index.js

/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable import/first */
/* eslint-disable @typescript-eslint/no-var-requires */

/* eslint-disable func-names */
import * as url from 'url'
import path from 'path'
import register from '@babel/register'
import { importAll } from 'node-esm-import-all'
import presetReact from '@babel/preset-react'
import presetEnv from '@babel/preset-env'
import presetTs from '@babel/preset-typescript'

const __dirname = url.fileURLToPath(new URL('.', import.meta.url))

register({
  presets: [
    presetReact,
    [presetEnv, {
      targets: {
        node: '18',
      },
      modules: false,
      loose: true,
    }],
    presetTs,
  ],
  extensions: ['.jsx', '.js', '.ts', '.tsx'],
  only: ['src/', 'spec/'],
})

import './setup.js'

await importAll({
  dirname: path.join(__dirname, '/../src'),
  filter: /spec\.(js|ts|tsx)$/i,
  recursive: true,
})

Directory Contents

Dirs: 2 × Files: 3

Name Size Perms Modified Actions
backend DIR
- drwxr-xr-x 2026-02-28 00:32:20
Edit Download
fixtures DIR
- drwxr-xr-x 2026-02-28 00:31:48
Edit Download
909 B lrw-r--r-- 2026-02-28 00:31:44
Edit Download
244 B lrw-r--r-- 2026-02-28 00:31:44
Edit Download
497 B lrw-r--r-- 2026-02-28 00:31:48
Edit Download

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