"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateAngularJson = void 0;
const json_file_1 = require("./helpers/json-file");
const updateAngularJson = (tree, _options) => {
    if (_options.uiFramework == 'primeNG') {
        let workspaceConfig = new json_file_1.JSONFile(tree, "angular.json");
        let scriptsPath = [
            "projects",
            _options.projectFound,
            "architect",
            "build",
            "options",
            "scripts",
        ];
        let scripts = workspaceConfig.get(scriptsPath);
        scripts = scripts.concat([
            "node_modules/prismjs/prism.js",
            "node_modules/prismjs/components/prism-typescript.js",
        ]);
        workspaceConfig.modify(scriptsPath, scripts);
        tree.overwrite("angular.json", JSON.stringify(workspaceConfig));
    }
    return tree;
};
exports.updateAngularJson = updateAngularJson;
//# sourceMappingURL=updateAngularJson.js.map