* Copyright (c) 2025 Huawei Technologies Co., Ltd.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const fs = require('fs-extra');
const path = require('path');
const templatesSrc = path.join(__dirname, '../src/init/templates/harmony');
const templatesDest = path.join(__dirname, '../dist/init/templates/harmony');
async function copyTemplate() {
try {
if (await fs.pathExists(templatesDest)) {
await fs.remove(templatesDest);
}
await fs.copy(templatesSrc, templatesDest);
console.log('Templates folder copied successfully!');
} catch (err) {
console.error('Error copying templates folder:', err);
}
}
copyTemplate();