move(target)

Moves files or directories to the target directory.

import { files, dirs } from '@codemod.com/workflow'

const appDir = (await dirs`app`.map(({ cwd }) => cwd()))
    .pop()

await files('app.vue')
  .move(appDir)

Parameters

target
string

Absolute path to the target directory.