mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 14:30:24 +01:00
16 lines
582 B
JavaScript
16 lines
582 B
JavaScript
const { readdirSync } = require('node:fs');
|
|
const path = require('node:path');
|
|
const { execSync } = require('node:child_process');
|
|
|
|
const pluginsDir = path.join(__dirname, '..', 'plugins');
|
|
|
|
console.log('Publishing core Yaak plugins');
|
|
|
|
for (const name of readdirSync(pluginsDir)) {
|
|
const dir = path.join(pluginsDir, name);
|
|
if (name.startsWith('.')) continue;
|
|
console.log('Building plugin', dir);
|
|
execSync('npm run build', { stdio: 'inherit', cwd: dir });
|
|
execSync('yaakcli publish', { stdio: 'inherit', cwd: dir, env: { ...process.env, ENVIRONMENT: 'development' } });
|
|
}
|