Skip to content

Commit a9bd90b

Browse files
authored
fix(fetch-governance): use fs/promises.writeFile instead of promisify
Replaced promisify with fs/promises writeFile import.
1 parent b8112dc commit a9bd90b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utilities/fetch-governance.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
import fs from 'fs';
22
import path from 'path';
33
import { mkdirp } from 'mkdirp';
4-
import { promisify } from 'util';
4+
import { writeFile } from 'fs/promises';
55
import { fileURLToPath } from 'url';
66
import api from './githubAPI.mjs';
77
import yamlHeadmatter from './yaml-headmatter.mjs';
88

99
const __filename = fileURLToPath(import.meta.url);
1010
const __dirname = path.dirname(__filename);
1111

12-
const writeFile = promisify(fs.writeFile);
13-
1412
const owner = 'webpack';
1513
const repo = 'governance';
1614

0 commit comments

Comments
 (0)