(skillDir, fm)
| 630 | |
| 631 | writeFile(path.join(PROJECT_ROOT, '.citadel', 'plugin-root.txt'), CITADEL_ROOT); |
| 632 | writeFile( |
| 633 | path.join(PROJECT_ROOT, '.citadel', 'scripts', 'package.json'), |
| 634 | `${JSON.stringify({ type: 'commonjs' }, null, 2)}\n` |
| 635 | ); |
| 636 | |
| 637 | let synced = 0; |
| 638 | for (const file of fs.readdirSync(sourceDir)) { |
| 639 | if (!file.endsWith('.js') && !file.endsWith('.cjs')) continue; |
| 640 | writeFile(path.join(PROJECT_ROOT, '.citadel', 'scripts', file), generateDelegate(file)); |
| 641 | synced++; |
| 642 | } |
| 643 | |
| 644 | console.log(` ${synced} script delegates synced.`); |
| 645 | } |
no test coverage detected