mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-04 13:25:47 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
5 lines
337 B
JavaScript
5 lines
337 B
JavaScript
import { existsSync } from 'node:fs';
|
|
const builder = new URL('../../scripts/build-sdk-testing.mjs', import.meta.url);
|
|
if (existsSync(builder)) await import(builder.href);
|
|
else if (!existsSync(new URL('./testing-runtime/testing.js', import.meta.url))) throw new Error('The SDK test runtime is missing. Pack from the panel repository.');
|