Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 818 Bytes

README.md

File metadata and controls

49 lines (37 loc) · 818 Bytes

@tsmk/volta

Provide some volta commands

Usage

voltaRun

Run a command with custom Node, npm, pnpm, and/or Yarn versions

// tsmk.config.ts
import { defineConfig, run } from 'tsmk'
import { voltaRun } from 'tsmk/volta'

export default defineConfig({
  jobs: {
    ci: {
      steps: [
        voltaRun('npm run build', { node: '18.19.1', stdio: 'inherit' }),
      ],
    },
  },
})

voltaWhich

Locates the actual binary that will be called by Volta

// tsmk.config.ts
import { defineConfig, run } from 'tsmk'
import { voltaWhich } from 'tsmk/volta'

export default defineConfig({
  jobs: {
    ci: {
      steps: [
        voltaWhich('node', { stdio: 'inherit' }),
      ],
    },
  },
})

License

MIT License © 2024-PRESENT Tamago