1import { PromptObject } from 'prompts';
2
3/**
4 * Possible command options.
5 */
6export type CommandOptions = {
7  target: string;
8  source?: string;
9  withReadme: boolean;
10  withChangelog: boolean;
11  example: boolean;
12};
13
14/**
15 * Represents an object that is passed to `ejs` when rendering the template.
16 */
17export type SubstitutionData = {
18  project: {
19    slug: string;
20    name: string;
21    version: string;
22    description: string;
23    package: string;
24  };
25  author: string;
26  license: string;
27  repo: string;
28};
29
30export type CustomPromptObject = PromptObject & {
31  name: string;
32  resolvedValue?: string | null;
33};
34
35export type Answers = Record<string, string>;
36