Skip to content

Commit fb488a0

Browse files
committed
refactor: switch to ES module syntax for exec import in format-package-json script
1 parent 5fada25 commit fb488a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/format-package-json.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const { exec } = require('child_process');
1+
import { exec } from "child_process";
22

33
export function preCommit({ tag, version }) {
4-
exec('jq --indent 4 . package.json > tmp.json && mv tmp.json package.json', (error, stdout, stderr) => {
4+
exec("jq --indent 4 . package.json > tmp.json && mv tmp.json package.json", (error, stdout, stderr) => {
55
if (error) {
66
console.error(`exec error: ${error}`);
77
return;

0 commit comments

Comments
 (0)