mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat: isolated plugin system (#2742)
This commit is contained in:
@@ -1,6 +1,18 @@
|
||||
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');
|
||||
|
||||
Reference in New Issue
Block a user