We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8112dc commit a9bd90bCopy full SHA for a9bd90b
src/utilities/fetch-governance.mjs
@@ -1,16 +1,14 @@
1
import fs from 'fs';
2
import path from 'path';
3
import { mkdirp } from 'mkdirp';
4
-import { promisify } from 'util';
+import { writeFile } from 'fs/promises';
5
import { fileURLToPath } from 'url';
6
import api from './githubAPI.mjs';
7
import yamlHeadmatter from './yaml-headmatter.mjs';
8
9
const __filename = fileURLToPath(import.meta.url);
10
const __dirname = path.dirname(__filename);
11
12
-const writeFile = promisify(fs.writeFile);
13
-
14
const owner = 'webpack';
15
const repo = 'governance';
16
0 commit comments