mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 03:11:28 +01:00
Merge main into proxy branch (formatting and docs)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,15 +1,19 @@
|
||||
const { readdirSync } = require('node:fs');
|
||||
const path = require('node:path');
|
||||
const { execSync } = require('node:child_process');
|
||||
const { readdirSync } = require("node:fs");
|
||||
const path = require("node:path");
|
||||
const { execSync } = require("node:child_process");
|
||||
|
||||
const pluginsDir = path.join(__dirname, '..', 'plugins');
|
||||
const pluginsDir = path.join(__dirname, "..", "plugins");
|
||||
|
||||
console.log('Publishing core Yaak 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' } });
|
||||
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" },
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user