mirror of
https://github.com/nilbuild/diffity.git
synced 2026-09-19 07:26:16 +08:00
28 lines
678 B
JavaScript
28 lines
678 B
JavaScript
#!/usr/bin/env node
|
|
|
|
import { execSync } from 'node:child_process';
|
|
import { copyFileSync } from 'node:fs';
|
|
import { resolve, dirname } from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
const root = resolve(__dirname, '..');
|
|
|
|
const steps = [
|
|
'npm run build:skills',
|
|
'npm run build -w @diffity/parser',
|
|
'npm run build -w @diffity/git',
|
|
'npm run build -w @diffity/github',
|
|
'npm run build -w @diffity/ui',
|
|
'npm run build -w diffity',
|
|
];
|
|
|
|
for (const step of steps) {
|
|
execSync(step, { stdio: 'inherit' });
|
|
}
|
|
|
|
copyFileSync(
|
|
resolve(root, 'README.md'),
|
|
resolve(root, 'packages/cli/README.md'),
|
|
);
|