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