mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
20 lines
536 B
TypeScript
20 lines
536 B
TypeScript
import { resolve } from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
import { spawnSync } from 'child_process';
|
|
import { beforeAll } from 'vitest';
|
|
|
|
const rootDir = fileURLToPath(new URL('../../', import.meta.url));
|
|
|
|
beforeAll(async () => {
|
|
console.log('Build plugin infra');
|
|
spawnSync('yarn', ['build'], {
|
|
stdio: 'inherit',
|
|
cwd: resolve(rootDir, './packages/plugin-infra'),
|
|
});
|
|
|
|
console.log('Build plugins');
|
|
// @ts-expect-error
|
|
await import('../../apps/electron/scripts/plugins/build-plugins.mjs');
|
|
});
|