mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-21 14:40:05 -05:00
16 lines
355 B
JavaScript
16 lines
355 B
JavaScript
const fs = require('fs-extra')
|
|
const glob = require('glob')
|
|
const Promise = require('bluebird')
|
|
|
|
const globAsync = Promise.promisify(glob)
|
|
|
|
globAsync('packages/*/__snapshots__/*.coffee')
|
|
.map((file) => {
|
|
const renamed = `${file}.js`
|
|
|
|
/* eslint-disable no-console */
|
|
console.log('renaming', file, '->', renamed)
|
|
|
|
return fs.rename(file, renamed)
|
|
})
|