UNPKG

@rxap/ts-morph

Version:

Provides utilities for manipulating TypeScript code using the ts-morph library. It offers a fluent API to add, modify, and remove code elements such as classes, decorators, imports, and properties in both Angular and NestJS projects. This package simplifi

13 lines 501 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CoerceDefaultExport = CoerceDefaultExport; function CoerceDefaultExport(node) { const sourceFile = node.getSourceFile(); if (!sourceFile.getExportAssignments().some(ed => ed.getExpression().getText() === node.getName())) { sourceFile.addExportAssignment({ isExportEquals: false, expression: node.getName(), }); } } //# sourceMappingURL=coerce-default-export.js.map