mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
9 lines
211 B
JavaScript
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'));
|
|
});
|