Skip to content

Commit

Permalink
chore: exec
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanVor committed Oct 25, 2024
1 parent b30f452 commit 490dd32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion scripts/detect_services/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as fs from 'fs';
import { noop } from 'lodash';
import * as path from 'path';
import * as cp from 'child_process';

Expand Down
7 changes: 5 additions & 2 deletions scripts/generate_services/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import * as cp from 'child_process';
import * as fs from 'fs';
import * as path from 'path';
import * as fg from 'fast-glob';
import { detectRootServices, writeToFile } from '../detect_services';

import { promisify } from 'node:util';
import child_process from 'node:child_process';
const exec = promisify(child_process.exec);

const PROTO_DIR = path.resolve('./cloudapi');
const YANDEX_CLOUD_DIR = path.join(PROTO_DIR, 'yandex', 'cloud');
const CLIENTS_DIR = path.resolve('./clients');
Expand Down Expand Up @@ -34,7 +37,7 @@ const generateService = async (dir: string) => {
];
const command = commandArgs.join(' ');

cp.execSync(command);
await exec(command);
};

const main = async () => {
Expand Down

0 comments on commit 490dd32

Please sign in to comment.