Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

git.ts

7 lines230 Bytes

1import { resolve } from 'node:path'
2​
3import type { Environment } from '../types.js'
4​
5export async function setupGit(environment: Environment, targetDir: string) {
6 await environment.execute('git', ['init'], resolve(targetDir))
7}