@lumpcode/cli-types 0.0.12 → 0.0.13
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 +6 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -45,7 +45,10 @@ type ContextMatchFn = (params: {
|
|
|
45
45
|
|
|
46
46
|
type ContextOptionsFn = (contextWithoutOptions: Omit<Context, 'options'>) => MaybePromise<Maybe<Context['options']>>;
|
|
47
47
|
|
|
48
|
-
type
|
|
48
|
+
type LumpJsConfigStepsFn = (input: Omit<PromptFnInput, 'stepVariables'>) => MaybePromise<LumpJsConfigSteps | LumpJsConfigStepsItem>;
|
|
49
|
+
type StepFn = LumpJsConfigStepsFn;
|
|
50
|
+
type LumpJsConfigStepsItem = LumpJsConfigStep | LumpJsConfigStepsFn | LumpJsConfigStep['promptTemplate'];
|
|
51
|
+
type LumpJsConfigSteps = Array<LumpJsConfigStepsItem>;
|
|
49
52
|
|
|
50
53
|
type LumpJsConfigSoloStep = LumpJsConfigStep | LumpJsConfigStep['promptTemplate'] | LumpJsConfigStep['promptFn'];
|
|
51
54
|
type LumpJsConfig<V extends LumpVariables = LumpVariables> = MergeObjs<Omit<{
|
|
@@ -61,7 +64,7 @@ type LumpJsConfig<V extends LumpVariables = LumpVariables> = MergeObjs<Omit<{
|
|
|
61
64
|
disabled?: boolean | (() => MaybePromise<boolean>) | FilePath;
|
|
62
65
|
maximumNumberOfConcurrentBranches?: number;
|
|
63
66
|
prompt?: LumpJsConfigSoloStep;
|
|
64
|
-
steps?: LumpJsConfigSteps |
|
|
67
|
+
steps?: LumpJsConfigSteps | LumpJsConfigStepsItem;
|
|
65
68
|
registerCommands?: string[];
|
|
66
69
|
keepHistory?: boolean;
|
|
67
70
|
verbose?: boolean;
|
|
@@ -152,4 +155,4 @@ interface ProjectConfig {
|
|
|
152
155
|
}
|
|
153
156
|
|
|
154
157
|
export { defineBranchFn, defineCommand, defineCommandModule, defineCommandSetup, defineCommandTeardown, defineConfig, defineContextMatchFn, defineContextOptionsFn, defineGetContextListFn, defineGitAddCommandFn, defineGitCommitCommandFn, defineGitCommitMessageFn, defineGitPushCommandFn, definePostCommandExecFn, definePromptFn, defineSetupFn, defineStep, defineTeardownFn };
|
|
155
|
-
export type { CommandModule, CommandTag, ContextMatchFn, ContextOptionsFn, FilePath, FilePathOrString, LocalConfig, LumpJsConfig, LumpJsConfigStep, LumpJsConfigSteps, LumpJsonConfig, LumpJsonConfigStep, MergeObjs, Mode, ProjectConfig };
|
|
158
|
+
export type { CommandModule, CommandTag, ContextMatchFn, ContextOptionsFn, FilePath, FilePathOrString, LocalConfig, LumpJsConfig, LumpJsConfigStep, LumpJsConfigSteps, LumpJsConfigStepsFn, LumpJsConfigStepsItem, LumpJsonConfig, LumpJsonConfigStep, MergeObjs, Mode, ProjectConfig, StepFn };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumpcode/cli-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Types and defineX helpers for Lumpcode CLI lump config and command modules",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lumpcode",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"build": "rollup -c"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@lumpcode/core": "^0.0.
|
|
40
|
+
"@lumpcode/core": "^0.0.13"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@rollup/plugin-commonjs": "^28.0.1",
|