mirror of
https://github.com/nilbuild/diffity.git
synced 2026-09-19 07:26:16 +08:00
docs: add release docs
This commit is contained in:
+23
-2
@@ -1,7 +1,8 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import { execSync } from 'child_process';
|
||||
import { dirname, resolve } from 'path';
|
||||
import { dirname, resolve, join } from 'path';
|
||||
import { rmSync } from 'fs';
|
||||
import { fileURLToPath } from 'url';
|
||||
import concurrently from 'concurrently';
|
||||
|
||||
@@ -13,6 +14,24 @@ execSync('tsx scripts/link-dev.ts && npm run build:skills', {
|
||||
stdio: 'inherit',
|
||||
});
|
||||
|
||||
const localClaudeSkillsDir = join(rootDir, '.claude', 'skills');
|
||||
|
||||
function cleanupDevSkills() {
|
||||
try {
|
||||
rmSync(localClaudeSkillsDir, { recursive: true, force: true });
|
||||
console.log('Cleaned up dev skills');
|
||||
} catch {}
|
||||
}
|
||||
|
||||
process.on('SIGINT', () => {
|
||||
cleanupDevSkills();
|
||||
process.exit(0);
|
||||
});
|
||||
process.on('SIGTERM', () => {
|
||||
cleanupDevSkills();
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
concurrently(
|
||||
[
|
||||
{ command: 'npm run dev -w @diffity/parser', name: 'parser' },
|
||||
@@ -29,4 +48,6 @@ concurrently(
|
||||
{
|
||||
prefixColors: ['blue', 'green', 'yellow', 'magenta', 'cyan'],
|
||||
}
|
||||
);
|
||||
).result.finally(() => {
|
||||
cleanupDevSkills();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user