[v2] Мonorepo, sdk-client, sdk-server, sdk-core package split (#1279)

This commit is contained in:
Konstantin Konstantinov 2025-12-19 15:19:02 +02:00 • committed by GitHub
commit 71ae3acee0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,7 +64,7 @@ async function main() {
* Last updated from commit: {SHA}
*
* DO NOT EDIT THIS FILE MANUALLY. Changes will be overwritten by automated updates.
* To update this file, run: npm run fetch:spec-types
* To update this file, run: pnpm run fetch:spec-types
*/`;
const header = headerTemplate.replace('{SHA}', latestSHA);
@ -73,10 +73,10 @@ async function main() {
const fullContent = header + specContent;
// Write to file
const outputPath = join(PROJECT_ROOT, 'src', 'spec.types.ts');
const outputPath = join(PROJECT_ROOT, 'packages', 'core', 'src', 'types', 'spec.types.ts');
writeFileSync(outputPath, fullContent, 'utf-8');
console.log('Successfully updated src/spec.types.ts');
console.log('Successfully updated packages/core/src/types/spec.types.ts');
} catch (error) {
console.error('Error:', error instanceof Error ? error.message : String(error));
process.exit(1);