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

14 lines 450 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = update; function update(host) { if (!host.exists('.env')) { host.write('.env', ''); } let env = host.read('.env').toString('utf-8'); if (!env.includes('RXAP_LEGACY_OPEN_API_CLIENT_SDK')) { env += '\nRXAP_LEGACY_OPEN_API_CLIENT_SDK=true\n'; host.write('.env', env); } } //# sourceMappingURL=add-legacy-env.js.map