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

21 lines 788 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CoerceNestEnvironmentModule = CoerceNestEnvironmentModule; const ts_morph_1 = require("@rxap/ts-morph"); function CoerceNestEnvironmentModule(sourceFile) { (0, ts_morph_1.CoerceNestModuleImport)(sourceFile, { moduleName: 'EnvironmentModule', importWriter: w => w.write('EnvironmentModule.register(environment)') }); (0, ts_morph_1.CoerceImports)(sourceFile, [ { moduleSpecifier: '@rxap/nest-utilities', namedImports: ['EnvironmentModule'], }, { namedImports: ['environment'], moduleSpecifier: '../environments/environment', }, ]); } //# sourceMappingURL=coerce-nest-environment-module.js.map