Provide some volta commands
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' }),
],
},
},
})
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' }),
],
},
},
})