mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
* Run prettier on packages too. * Add the generated files for icons to prettierignore. * Format all files in the packages folder. * Minor fix.
17 lines
477 B
JavaScript
17 lines
477 B
JavaScript
const fs = require('fs-extra')
|
|
|
|
module.exports = {
|
|
do: function (dictionary, config) {
|
|
config.options.copyFilesAction.forEach(({ destination, origin }) => {
|
|
console.log(`Copying ${origin} to ${destination}`)
|
|
fs.copySync(origin, destination)
|
|
})
|
|
},
|
|
undo: function (dictionary, config) {
|
|
config.options.copyFilesAction.forEach(({ destination, origin }) => {
|
|
console.log(`Cleaning ${destination}`)
|
|
fs.removeSync(destination)
|
|
})
|
|
},
|
|
}
|