feat(backend): update collections, config and migration tools

Update Payload CMS configuration, collections (Audit, Posts), and add migration scripts/reports.
This commit is contained in:
2026-02-11 11:50:23 +08:00
parent 8ca609a889
commit be7fc902fb
46 changed files with 5442 additions and 15 deletions

View File

@@ -0,0 +1,9 @@
const fs = require('fs');
const p = JSON.parse(fs.readFileSync('./package.json.orig', 'utf8'));
delete p.devDependencies;
delete p.engines;
if (p.dependencies && p.dependencies['@enchun/shared']) {
p.dependencies['@enchun/shared'] = 'file:./shared';
}
fs.writeFileSync('./package.json', JSON.stringify(p, null, 2));
fs.unlinkSync('./package.json.orig');