import * as ts from 'typescript' ; const transformer = ( ) => { return sourceFile => { return ts . updateSourceFileNode ( sourceFile , [ ts . createImportDeclaration ( undefined , undefined , ts . createImportClause ( ts . createIdentifier ( 'DefaultImport' ) , ts . createNamedImports ( [ ts . createImportSpecifier ( undefined , ts . createIdentifier ( 'namedImport' ) ) , ] ) ) , ts . createLiteral ( 'package' ) ) , ... sourceFile . statements , ] ) ; } ; } ; export default transformer ;