mirror of
https://github.com/strapi/strapi.git
synced 2025-08-13 03:07:32 +00:00
14 lines
381 B
JavaScript
14 lines
381 B
JavaScript
![]() |
const exec = require('child_process').execSync;
|
||
|
|
||
|
try {
|
||
|
exec('rm -rf package-lock.json && rm -rf packages/*/package-lock.json');
|
||
|
} catch (error) {
|
||
|
console.error('Delete package-lock.json files');
|
||
|
}
|
||
|
|
||
|
try {
|
||
|
exec('git reset ./packages/strapi-admin/.gitignore && git checkout -- ./packages/strapi-admin/.gitignore');
|
||
|
} catch (error) {
|
||
|
console.error('Reset admin .gitignore');
|
||
|
}
|