Skip to content

Commit

Permalink
Update notes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wandyezj committed Feb 16, 2024
1 parent bc27655 commit 0783516
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,10 +504,14 @@ fs.cpSync(from, to);
Unneeded, use built in node 'child_process' functions.

```typescript
// const {execSync} = require("child_process");
import {execSync} from "child_process";

const command = "npm run build";
execSync(command);
try {
execSync(commands, { encoding: 'utf-8', stdio: [0, 1, 2] });
} catch (e) {
process.exit(e.status);
}

```

Expand Down

0 comments on commit 0783516

Please sign in to comment.