create-rstack 1.0.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +10 -8
- package/dist/index.js +347 -383
- package/package.json +8 -8
- package/template-biome/package.json +1 -1
- package/template-eslint/react-js/package.json +5 -5
- package/template-eslint/react-ts/package.json +6 -6
- package/template-eslint/svelte-js/package.json +4 -4
- package/template-eslint/svelte-ts/package.json +5 -5
- package/template-eslint/vanilla-js/package.json +3 -3
- package/template-eslint/vanilla-ts/package.json +4 -4
- package/template-eslint/vue-js/package.json +4 -4
- package/template-eslint/vue-ts/package.json +5 -5
- package/template-prettier/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,19 +20,20 @@ export declare function checkCancel<T>(value: unknown): T;
|
|
|
20
20
|
export declare function copyFolder({ from, to, version, packageName, isMergePackageJson, skipFiles, }: {
|
|
21
21
|
from: string;
|
|
22
22
|
to: string;
|
|
23
|
-
version?: string
|
|
23
|
+
version?: string | Record<string, string>;
|
|
24
24
|
packageName?: string;
|
|
25
25
|
isMergePackageJson?: boolean;
|
|
26
26
|
skipFiles?: string[];
|
|
27
27
|
}): void;
|
|
28
28
|
|
|
29
|
-
export declare function create({ name, root, templates, skipFiles, getTemplateName, mapESLintTemplate, }: {
|
|
29
|
+
export declare function create({ name, root, templates, skipFiles, getTemplateName, mapESLintTemplate, version, }: {
|
|
30
30
|
name: string;
|
|
31
31
|
root: string;
|
|
32
32
|
skipFiles?: string[];
|
|
33
33
|
templates: string[];
|
|
34
34
|
getTemplateName: (argv: Argv) => Promise<string>;
|
|
35
35
|
mapESLintTemplate: (templateName: string) => ESLintTemplateName | null;
|
|
36
|
+
version?: Record<string, string> | string;
|
|
36
37
|
}): Promise<void>;
|
|
37
38
|
|
|
38
39
|
export declare type ESLintTemplateName = 'vanilla-js' | 'vanilla-ts' | 'react-js' | 'react-ts' | 'vue-ts' | 'vue-js' | 'svelte-js' | 'svelte-ts';
|
|
@@ -44,12 +45,13 @@ export declare type ESLintTemplateName = 'vanilla-js' | 'vanilla-ts' | 'react-js
|
|
|
44
45
|
*/
|
|
45
46
|
export declare function mergePackageJson(targetPackage: string, extraPackage: string): void;
|
|
46
47
|
|
|
47
|
-
export declare const multiselect: <
|
|
48
|
+
export declare const multiselect: <Value>(opts: MultiSelectOptions<Value>) => Promise<symbol | Value[]>;
|
|
48
49
|
|
|
49
|
-
declare interface MultiSelectOptions<
|
|
50
|
+
declare interface MultiSelectOptions<Value> {
|
|
50
51
|
message: string;
|
|
51
|
-
options:
|
|
52
|
+
options: Option_2<Value>[];
|
|
52
53
|
initialValues?: Value[];
|
|
54
|
+
maxItems?: number;
|
|
53
55
|
required?: boolean;
|
|
54
56
|
cursorAt?: Value;
|
|
55
57
|
}
|
|
@@ -66,11 +68,11 @@ declare type Option_2<Value> = Value extends Primitive ? {
|
|
|
66
68
|
|
|
67
69
|
declare type Primitive = Readonly<string | boolean | number>;
|
|
68
70
|
|
|
69
|
-
export declare const select: <
|
|
71
|
+
export declare const select: <Value>(opts: SelectOptions<Value>) => Promise<symbol | Value>;
|
|
70
72
|
|
|
71
|
-
declare interface SelectOptions<
|
|
73
|
+
declare interface SelectOptions<Value> {
|
|
72
74
|
message: string;
|
|
73
|
-
options:
|
|
75
|
+
options: Option_2<Value>[];
|
|
74
76
|
initialValue?: Value;
|
|
75
77
|
maxItems?: number;
|
|
76
78
|
}
|