Skip to content

lockfile-check

Check if lockfile is updated.

Supported lockfiles:

  • pnpm-lock.yaml
  • yarn.lock
  • package-lock.json

Usage

shell
rt lockfile-check

Config

ts
import { defineConfig } from 'rattail/vite-plus'

export default defineConfig({
  rattail: {
    hook: {
      'post-merge': ['rt lockfile-check'],
    },
  },
})

Programmatic Usage

ts
import { lockfileCheck } from 'rattail/cli'

await lockfileCheck({ packageManager: 'pnpm' })

Options

OptionTypeDefaultDescription
packageManager'npm' | 'yarn' | 'pnpm''pnpm'Package manager
skipInstallbooleanfalseSkip auto-install when lockfile changed