Skip to content

Commit

Permalink
Print CLI output when running npx typia setup.
Browse files Browse the repository at this point in the history
When installing dependencies of `typia` through the `npx typia setup` command, the setup process can be failed by another libraries' `peerDependencies` restriction. By the way, as current typia setup wizard does not print the console output during the dependencies' setup, user can't know the reason why of the setup failure.

Therefore, changed the setup wizard to print the console output during the dependencies' setup process.
  • Loading branch information
samchon committed Oct 18, 2023
1 parent 633b62d commit ec29cc0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typia",
"version": "5.2.2",
"version": "5.2.3",
"description": "Superfast runtime validators with only one line",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/typescript-json/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript-json",
"version": "5.2.2",
"version": "5.2.3",
"description": "Superfast runtime validators with only one line",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -72,7 +72,7 @@
},
"homepage": "https://typia.io",
"dependencies": {
"typia": "5.2.2"
"typia": "5.2.3"
},
"peerDependencies": {
"typescript": ">= 4.8.0"
Expand Down
4 changes: 2 additions & 2 deletions src/executable/setup/CommandExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import cp from "child_process";

export namespace CommandExecutor {
export const run = (str: string): void => {
console.log(str);
cp.execSync(str, { stdio: "ignore" });
console.log(`\n$ ${str}`);
cp.execSync(str, { stdio: "inherit" });
};
}

0 comments on commit ec29cc0

Please sign in to comment.