vant/a.js
2020-11-08 20:30:51 +08:00

9 lines
211 B
JavaScript

const glob = require('glob');
const fs = require('fs');
const legacy = glob.sync('src/**/demo.legacy.js');
legacy.forEach((item) => {
fs.renameSync(item, item.replace('demo.legacy.js', 'demo.spec.js'));
});