parent
2a010ad995
commit
bca86d4d53
@ -0,0 +1,15 @@ |
||||
|
||||
import { Storage } from 'remix-lib' |
||||
|
||||
export default (fileProvider) => { |
||||
const fileStorage = new Storage('sol:') |
||||
if (fileStorage.keys().length === 0) return |
||||
fileStorage.keys().forEach((path) => { |
||||
if (path !== '.remix.config') { |
||||
const content = fileStorage.get(path) |
||||
fileProvider.set(path, content) |
||||
fileStorage.remove(path) |
||||
console.log('file migrated', path) |
||||
} |
||||
}) |
||||
} |
Loading…
Reference in new issue