import fs from 'fs-extra' ; import { validate , createMovePaths } from './options' ; import type { MoveOptions , PathMap } from './options' ; export async function move ( options ) { const pathMap = await createMovePaths ( await validate ( options ) ) ; await movePaths ( pathMap ) ; } export async function movePaths ( pathMap ) { await Promise . all ( Object . entries ( pathMap ) . map ( ( [ sourcePath , targetPath ] ) => fs . move ( sourcePath , targetPath ) ) ) ; }