Files
pterodactyl-panel/packages/sdk/prepack.mjs
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

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.');