Use ES module interop for all default imports
This commit is contained in:
parent
f3d69cc9af
commit
53520850f9
16 changed files with 21 additions and 21 deletions
|
@ -1,6 +1,6 @@
|
|||
import { promises as fs } from 'fs'
|
||||
import * as path from 'path'
|
||||
import * as unzipit from 'unzipit'
|
||||
import path from 'path'
|
||||
import unzipit from 'unzipit'
|
||||
|
||||
import { enumerateSelinuxLabels, SelinuxFileLabels } from '../selinux/labels'
|
||||
import { ProgressCallback } from '../util/cli'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as path from 'path'
|
||||
import path from 'path'
|
||||
import { promises as fs } from 'fs'
|
||||
|
||||
import { blobToFileCopy, BoardMakefile, ModulesMakefile, DeviceMakefile, sanitizeBasename, serializeBoardMakefile, serializeModulesMakefile, serializeDeviceMakefile, Symlink, ProductsMakefile, ProductMakefile, serializeProductMakefile, serializeProductsMakefile } from '../build/make'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { promises as fs } from 'fs'
|
||||
import * as path from 'path'
|
||||
import path from 'path'
|
||||
|
||||
import { BlobEntry } from './entry'
|
||||
import { startActionSpinner, stopActionSpinner } from '../util/cli'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as path from 'path'
|
||||
import path from 'path'
|
||||
|
||||
import { BlobEntry, partPathToSrcPath, srcPathToPartPath } from './entry'
|
||||
import { exists, listFilesRecursive } from '../util/fs'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { promises as fs } from 'fs'
|
||||
import * as path from 'path'
|
||||
import * as xml2js from 'xml2js'
|
||||
import path from 'path'
|
||||
import xml2js from 'xml2js'
|
||||
|
||||
import { serializeBlueprint } from '../build/soong'
|
||||
import { aapt2 } from '../util/process'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { promises as fs } from 'fs'
|
||||
import * as path from 'path'
|
||||
import path from 'path'
|
||||
|
||||
import { parseSeappContexts } from '../selinux/seapp'
|
||||
import { aapt2 } from '../util/process'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { promises as fs } from 'fs'
|
||||
import * as xml2js from 'xml2js'
|
||||
import xml2js from 'xml2js'
|
||||
|
||||
import { exists } from '../util/fs'
|
||||
import { EXT_PARTITIONS } from '../util/partitions'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as util from 'util'
|
||||
import util from 'util'
|
||||
|
||||
import { BlobEntry, partPathToSrcPath } from '../blobs/entry'
|
||||
import { SOONG_HEADER } from '../util/headers'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Command, flags } from '@oclif/command'
|
||||
import { promises as fs } from 'fs'
|
||||
import * as path from 'path'
|
||||
import path from 'path'
|
||||
import { flattenAllApexs } from '../blobs/apex'
|
||||
|
||||
import { createVendorDirs, generateBuild, writeBuildFiles } from '../blobs/build'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as YAML from 'yaml'
|
||||
import YAML from 'yaml'
|
||||
import { PropFilters } from '../blobs/props'
|
||||
|
||||
export interface DeviceInfo {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { createWriteStream } from 'fs'
|
||||
import * as cliProgress from 'cli-progress'
|
||||
import cliProgress from 'cli-progress'
|
||||
import fetch from 'node-fetch'
|
||||
import { promises as stream } from 'stream'
|
||||
import * as path from 'path'
|
||||
import path from 'path'
|
||||
|
||||
const VENDOR_INDEX_URL = 'https://developers.google.com/android/drivers'
|
||||
const VENDOR_URL_PREFIX = 'https://dl.google.com/dl/android/aosp/google_devices'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { promises as fs } from 'fs'
|
||||
import * as unzipit from 'unzipit'
|
||||
import unzipit from 'unzipit'
|
||||
|
||||
import { NodeFileReader } from '../util/zip'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { promises as fs } from 'fs'
|
||||
import * as path from 'path'
|
||||
import path from 'path'
|
||||
|
||||
import { exists, listFilesRecursive } from '../util/fs'
|
||||
import { parseLines } from '../util/parse'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { promises as fs } from 'fs'
|
||||
import * as path from 'path'
|
||||
import * as xml2js from 'xml2js'
|
||||
import path from 'path'
|
||||
import xml2js from 'xml2js'
|
||||
|
||||
import { exists, listFilesRecursive } from '../util/fs'
|
||||
import { parseLines } from '../util/parse'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { promises as fs } from 'fs'
|
||||
import * as os from 'os'
|
||||
import * as path from 'path'
|
||||
import os from 'os'
|
||||
import path from 'path'
|
||||
|
||||
import { run } from './process'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as util from 'util'
|
||||
import util from 'util'
|
||||
import { exec as execCb } from 'child_process'
|
||||
|
||||
const exec = util.promisify(execCb)
|
||||
|
|
Loading…
Reference in a new issue