"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const fs_1 = tslib_1.__importDefault(require("fs"));
exports.default = async (packageJsonPath, projectName) => {
    const fileContent = JSON.parse(fs_1.default.readFileSync(packageJsonPath, { encoding: 'utf8' }));
    fileContent.name = projectName;
    for (const key of Object.keys(fileContent)) {
        if (key.startsWith('_')) {
            delete fileContent[key];
        }
    }
    return fs_1.default.writeFileSync(packageJsonPath, JSON.stringify(fileContent, null, '  '));
};
//# sourceMappingURL=updatePackageJson.js.map