"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateAppHtml = void 0;
const core_1 = require("@angular-devkit/core");
const strings_1 = require("@angular-devkit/core/src/utils/strings");
const updateAppHtml = (tree, _options) => {
    if (_options.alreadyInstalled == false) {
        const pathString = (0, core_1.normalize)(`/${_options.sourceRoot}/app/app.component.html`);
        const componentSelector = _options.dappDemo == _options.contractName ? (0, strings_1.dasherize)(_options.dappDemo) : (0, strings_1.dasherize)(_options.contractName);
        tree.overwrite(pathString, `<${componentSelector}></${componentSelector}>`);
    }
    return tree;
};
exports.updateAppHtml = updateAppHtml;
//# sourceMappingURL=updateAppHtml.js.map