2023-11-23 22:31:11 +05:30
|
|
|
import { packageOptions } from './common.js';
|
|
|
|
import { execSync } from 'child_process';
|
|
|
|
|
|
|
|
const buildType = (packageName: string) => {
|
|
|
|
console.log(`Building types for ${packageName}`);
|
|
|
|
try {
|
|
|
|
const out = execSync(`tsc -p ./packages/${packageName}/tsconfig.json --emitDeclarationOnly`);
|
|
|
|
out.length > 0 && console.log(out.toString());
|
|
|
|
} catch (e) {
|
|
|
|
console.error(e);
|
2023-12-08 09:38:54 +05:30
|
|
|
e.stdout.length > 0 && console.error(e.stdout.toString());
|
|
|
|
e.stderr.length > 0 && console.error(e.stderr.toString());
|
2023-11-23 22:31:11 +05:30
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
for (const { packageName } of Object.values(packageOptions)) {
|
|
|
|
buildType(packageName);
|
|
|
|
}
|