- Extract copy-resources, copy-themes, copy-export-html from root package.json inline node -e commands to proper .cjs script files - Extract pi-coding-agent copy-assets (356-char inline command) to scripts/copy-assets.cjs with readable multi-line formatting - All scripts use .cjs extension for CommonJS compatibility in ESM package context
6 lines
350 B
JavaScript
6 lines
350 B
JavaScript
#!/usr/bin/env node
|
|
const { mkdirSync, cpSync } = require('fs');
|
|
const { resolve } = require('path');
|
|
const src = resolve(__dirname, '..', 'packages', 'pi-coding-agent', 'dist', 'modes', 'interactive', 'theme');
|
|
mkdirSync('pkg/dist/modes/interactive/theme', { recursive: true });
|
|
cpSync(src, 'pkg/dist/modes/interactive/theme', { recursive: true });
|