-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
38 lines (33 loc) · 968 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
export interface Command {
name: string;
npmScriptName?: string; // `npm run ${npmScriptName}`
npxCommand?: string; // `npx ${npxCommand}`
npmCommand?: string; // `npm ${npmCommand}`
}
export type BasicValueType = boolean | number | string;
export interface Patch {
name: string;
file: string;
search?: string;
replace?: string;
delete?: true;
append?: string;
}
export interface Project {
name: string;
gitUrl: string;
gitCliConfigOverrides: Record<string, BasicValueType>;
rootFolder: string;
patches?: Patch[];
commands: Command[];
}
export interface RunWithNodeenvResult {
output: string;
error: string;
}
export interface Environment extends Record<string, BasicValueType> {
deviceName: string; // work laptop, home PC, etc.
platform: NodeJS.Platform; // win32, linux, etc.
platformDetails: string; // WSL2, Ubuntu 22.04.1, etc.
// ... any other custom env characteristics, like power mode or overclocking, etc.
}