mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
582 B
27 lines
582 B
import fse from 'fs-extra';
|
|
import { log } from './utils/log';
|
|
|
|
removeLockFiles();
|
|
|
|
export async function removeLockFiles() {
|
|
const folders = [
|
|
'../../templates/app/angular',
|
|
'../../templates/app/react-native',
|
|
'../../templates/module/angular',
|
|
];
|
|
|
|
try {
|
|
for (let i = 0; i < folders.length; i++) {
|
|
await fse.remove(`${folders[i]}/yarn.lock`);
|
|
await fse.remove(`${folders[i]}/package-lock.json`);
|
|
}
|
|
} catch (error) {
|
|
throwError(error?.message || error);
|
|
}
|
|
}
|
|
|
|
function throwError(error: string) {
|
|
log.error(error);
|
|
process.exit(1);
|
|
}
|