We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fada25 commit fb488a0Copy full SHA for fb488a0
scripts/format-package-json.js
@@ -1,7 +1,7 @@
1
-const { exec } = require('child_process');
+import { exec } from "child_process";
2
3
export function preCommit({ tag, version }) {
4
- exec('jq --indent 4 . package.json > tmp.json && mv tmp.json package.json', (error, stdout, stderr) => {
+ exec("jq --indent 4 . package.json > tmp.json && mv tmp.json package.json", (error, stdout, stderr) => {
5
if (error) {
6
console.error(`exec error: ${error}`);
7
return;
0 commit comments