mirror of
https://github.com/mapbox/mapbox-agent-skills.git
synced 2026-09-14 20:16:39 +08:00
22 lines
613 B
JavaScript
22 lines
613 B
JavaScript
#!/usr/bin/env node
|
|
|
|
import { cp, mkdir, rm } from 'fs/promises';
|
|
|
|
const pluginRoot = 'plugins/mapbox';
|
|
|
|
async function main() {
|
|
await mkdir(pluginRoot, { recursive: true });
|
|
await rm(`${pluginRoot}/skills`, { recursive: true, force: true });
|
|
await rm(`${pluginRoot}/.mcp.json`, { force: true });
|
|
|
|
await cp('skills', `${pluginRoot}/skills`, { recursive: true });
|
|
await cp('.mcp.json', `${pluginRoot}/.mcp.json`);
|
|
|
|
console.log(`Built Codex plugin package at ${pluginRoot}`);
|
|
}
|
|
|
|
main().catch((error) => {
|
|
console.error(`Failed to build Codex plugin package: ${error.message}`);
|
|
process.exit(1);
|
|
});
|