UNPKG

@analogjs/content

Version:

Content Rendering for Analog

23 lines 851 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = update; const devkit_1 = require("@nx/devkit"); async function update(host) { // NOTE: we only add the dependency if the project is an Angular project // Nx projects can add the dependency from migrations.json let dependencyAdded = false; if (host.exists('/angular.json')) { (0, devkit_1.addDependenciesToPackageJson)(host, { marked: '^15.0.7', 'marked-mangle': '^1.1.10', 'marked-highlight': '^2.2.1', 'marked-gfm-heading-id': '^4.1.1', }, {}); dependencyAdded = true; } await (0, devkit_1.formatFiles)(host); if (dependencyAdded) { return () => (0, devkit_1.installPackagesTask)(host); } } //# sourceMappingURL=update-markdown-version.js.map