mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-10 07:31:27 -07:00
Initial commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import { z } from 'zod'
|
||||
|
||||
export type Paths = z.infer<typeof Paths>
|
||||
export const Paths = z.object({
|
||||
cwd: z.string(),
|
||||
root: z.string(),
|
||||
workspace: z.string(),
|
||||
})
|
||||
|
||||
export type Turbo = z.infer<typeof Turbo>
|
||||
export const Turbo = z.object({
|
||||
paths: Paths,
|
||||
})
|
||||
|
||||
export type NewWorkerAnswers = z.infer<typeof NewWorkerAnswers>
|
||||
export const NewWorkerAnswers = z.object({
|
||||
name: z.string(),
|
||||
turbo: Turbo,
|
||||
})
|
||||
|
||||
export type NewPackageAnswers = z.infer<typeof NewPackageAnswers>
|
||||
export const NewPackageAnswers = z.object({
|
||||
name: z.string(),
|
||||
turbo: Turbo,
|
||||
usedInWorkers: z.boolean().optional(),
|
||||
})
|
||||
|
||||
export type Answers = z.infer<typeof Answers>
|
||||
export const Answers = z.union([NewWorkerAnswers, NewPackageAnswers])
|
||||
Reference in New Issue
Block a user