mirror of
https://github.com/desktop/desktop
synced 2024-09-13 05:11:21 +00:00
One more, real quick before @sergiou87 reviews it!
This commit is contained in:
parent
ba326cf996
commit
f37c3fe1c6
|
@ -1,5 +1,4 @@
|
|||
import * as path from 'path'
|
||||
import * as fs from 'fs-extra'
|
||||
import { promisify } from 'util'
|
||||
|
||||
import { licenseOverrides } from './license-overrides'
|
||||
|
@ -8,7 +7,7 @@ import _legalEagle from 'legal-eagle'
|
|||
const legalEagle = promisify(_legalEagle)
|
||||
|
||||
import { getVersion } from '../../app/package-info'
|
||||
import { readFile } from 'fs/promises'
|
||||
import { readFile, writeFile } from 'fs/promises'
|
||||
|
||||
export async function updateLicenseDump(
|
||||
projectRoot: string,
|
||||
|
@ -55,7 +54,5 @@ export async function updateLicenseDump(
|
|||
sourceText: licenseText,
|
||||
}
|
||||
|
||||
await fs.writeFile(outPath, JSON.stringify(summary), {
|
||||
encoding: 'utf8',
|
||||
})
|
||||
await writeFile(outPath, JSON.stringify(summary), { encoding: 'utf8' })
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue