Skip to content

Commit 8afd31c

Browse files
committed
Fix promisfy wrapped import
1 parent c94b772 commit 8afd31c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build-scripts/write-version-files.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { fileURLToPath } from 'node:url';
22
import path from 'path';
33
import { mkdir, writeFile } from 'node:fs/promises';
44
import util from 'util';
5-
const exec = util.promisify(require('child_process').exec);
5+
import { exec as _exec } from 'child_process';
6+
const exec = util.promisify(_exec);
67

78
const __dirname = path.dirname(fileURLToPath(import.meta.url));
89

0 commit comments

Comments
 (0)