chore: rename temp file

This commit is contained in:
chenjiahan 2020-11-08 20:31:08 +08:00
parent 24c4896a11
commit 56fc7f7712

8
a.js
View File

@ -1,8 +0,0 @@
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'));
});