Skip to content

Commit bbdfcc1

Browse files
committed
fix node deprecation warning
1 parent 66abdf0 commit bbdfcc1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bun.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
},
111111
"packages/ui": {
112112
"name": "flowbite-react",
113-
"version": "0.12.3",
113+
"version": "0.12.4",
114114
"bin": {
115115
"flowbite-react": "./dist/cli/bin.js",
116116
},

packages/ui/src/cli/utils/exec-command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { spawn, type SpawnOptions } from "child_process";
22

33
/**
4-
* Runs a shell command asynchronously and captures its output.
4+
* Runs a command asynchronously and captures its output.
55
*
66
* @param {string} command - The command to execute (e.g., "npm").
77
* @param {string[]} [args=[]] - Arguments for the command (e.g., ["install", "package-name"]).
@@ -15,7 +15,7 @@ export function execCommand(
1515
options: SpawnOptions = {},
1616
): Promise<{ stdout: string; stderr: string; exitCode: number }> {
1717
return new Promise((resolve, reject) => {
18-
const child = spawn(command, args, { ...options, shell: true });
18+
const child = spawn(command, args, options);
1919

2020
let stdout = "";
2121
let stderr = "";

0 commit comments

Comments
 (0)