django-vue3-admin-web/node_modules/cos-js-sdk-v5/scripts/patch-check.js
2025-10-20 21:21:14 +08:00

14 lines
374 B
JavaScript

const fs = require('fs');
const path = require('path');
const exec = require('child_process').execSync;
const patchesDir = path.join(__dirname, '../patches');
const hasPatches = fs.existsSync(patchesDir);
if (hasPatches) {
// 执行补丁
console.log('npx patch-package');
exec('npx patch-package', { stdio: 'inherit' });
} else {
console.log('无补丁应用');
}