@shell-shock/core 0.17.10 → 0.17.12
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/api.cjs +31 -143
- package/dist/api.cjs.map +1 -0
- package/dist/api.d.cts +2 -77
- package/dist/api.d.cts.map +1 -1
- package/dist/api.d.mts +2 -76
- package/dist/api.d.mts.map +1 -1
- package/dist/api.mjs +30 -140
- package/dist/api.mjs.map +1 -1
- package/dist/components/command-validation-logic.cjs +14 -15
- package/dist/components/command-validation-logic.cjs.map +1 -0
- package/dist/components/command-validation-logic.d.cts +1 -3
- package/dist/components/command-validation-logic.d.cts.map +1 -1
- package/dist/components/command-validation-logic.d.mts +1 -3
- package/dist/components/command-validation-logic.d.mts.map +1 -1
- package/dist/components/command-validation-logic.mjs +12 -13
- package/dist/components/command-validation-logic.mjs.map +1 -1
- package/dist/components/docs.cjs +6 -6
- package/dist/components/docs.cjs.map +1 -0
- package/dist/components/docs.d.cts +4 -5
- package/dist/components/docs.d.cts.map +1 -1
- package/dist/components/docs.d.mts +4 -5
- package/dist/components/docs.d.mts.map +1 -1
- package/dist/components/docs.mjs +4 -4
- package/dist/components/docs.mjs.map +1 -1
- package/dist/components/exec-builtin.cjs +9 -11
- package/dist/components/exec-builtin.cjs.map +1 -0
- package/dist/components/exec-builtin.d.cts +1 -2
- package/dist/components/exec-builtin.d.cts.map +1 -1
- package/dist/components/exec-builtin.d.mts +1 -2
- package/dist/components/exec-builtin.d.mts.map +1 -1
- package/dist/components/exec-builtin.mjs +7 -10
- package/dist/components/exec-builtin.mjs.map +1 -1
- package/dist/components/helpers.cjs +4 -5
- package/dist/components/helpers.cjs.map +1 -0
- package/dist/components/helpers.d.cts +6 -8
- package/dist/components/helpers.d.cts.map +1 -1
- package/dist/components/helpers.d.mts +6 -8
- package/dist/components/helpers.d.mts.map +1 -1
- package/dist/components/helpers.mjs +2 -3
- package/dist/components/helpers.mjs.map +1 -1
- package/dist/components/options-parser-logic.cjs +29 -30
- package/dist/components/options-parser-logic.cjs.map +1 -0
- package/dist/components/options-parser-logic.d.cts +8 -9
- package/dist/components/options-parser-logic.d.cts.map +1 -1
- package/dist/components/options-parser-logic.d.mts +8 -9
- package/dist/components/options-parser-logic.d.mts.map +1 -1
- package/dist/components/options-parser-logic.mjs +27 -28
- package/dist/components/options-parser-logic.mjs.map +1 -1
- package/dist/components/state-builtin.cjs +3 -2
- package/dist/components/state-builtin.cjs.map +1 -0
- package/dist/components/state-builtin.d.cts +4 -5
- package/dist/components/state-builtin.d.cts.map +1 -1
- package/dist/components/state-builtin.d.mts +4 -5
- package/dist/components/state-builtin.d.mts.map +1 -1
- package/dist/components/state-builtin.mjs +1 -1
- package/dist/components/state-builtin.mjs.map +1 -1
- package/dist/components/usage.cjs +4 -6
- package/dist/components/usage.cjs.map +1 -0
- package/dist/components/usage.d.cts +1 -2
- package/dist/components/usage.d.cts.map +1 -1
- package/dist/components/usage.d.mts +1 -2
- package/dist/components/usage.d.mts.map +1 -1
- package/dist/components/usage.mjs +2 -4
- package/dist/components/usage.mjs.map +1 -1
- package/dist/components/utils-builtin.cjs +5 -4
- package/dist/components/utils-builtin.cjs.map +1 -0
- package/dist/components/utils-builtin.d.cts +7 -8
- package/dist/components/utils-builtin.d.cts.map +1 -1
- package/dist/components/utils-builtin.d.mts +7 -8
- package/dist/components/utils-builtin.d.mts.map +1 -1
- package/dist/components/utils-builtin.mjs +3 -3
- package/dist/components/utils-builtin.mjs.map +1 -1
- package/dist/config.cjs +53 -19
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.cts +29 -8
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +29 -8
- package/dist/config.d.mts.map +1 -1
- package/dist/config.mjs +51 -18
- package/dist/config.mjs.map +1 -1
- package/dist/contexts/command.cjs +2 -2
- package/dist/contexts/command.cjs.map +1 -0
- package/dist/contexts/command.d.cts.map +1 -1
- package/dist/contexts/command.d.mts.map +1 -1
- package/dist/contexts/command.mjs.map +1 -1
- package/dist/contexts/options.cjs +4 -4
- package/dist/contexts/options.cjs.map +1 -0
- package/dist/contexts/options.d.cts.map +1 -1
- package/dist/contexts/options.d.mts.map +1 -1
- package/dist/contexts/options.mjs +2 -3
- package/dist/contexts/options.mjs.map +1 -1
- package/dist/engine.cjs +138 -0
- package/dist/engine.cjs.map +1 -0
- package/dist/engine.d.cts +79 -0
- package/dist/engine.d.cts.map +1 -0
- package/dist/engine.d.mts +79 -0
- package/dist/engine.d.mts.map +1 -0
- package/dist/engine.mjs +136 -0
- package/dist/engine.mjs.map +1 -0
- package/dist/helpers/automd.cjs +6 -7
- package/dist/helpers/automd.cjs.map +1 -0
- package/dist/helpers/automd.mjs +2 -3
- package/dist/helpers/automd.mjs.map +1 -1
- package/dist/helpers/docs-helpers.cjs +2 -2
- package/dist/helpers/docs-helpers.cjs.map +1 -0
- package/dist/helpers/docs-helpers.mjs.map +1 -1
- package/dist/helpers/get-framework.cjs +24 -0
- package/dist/helpers/get-framework.cjs.map +1 -0
- package/dist/helpers/get-framework.mjs +24 -0
- package/dist/helpers/get-framework.mjs.map +1 -0
- package/dist/helpers/paths.cjs +5 -5
- package/dist/helpers/paths.cjs.map +1 -0
- package/dist/helpers/paths.mjs +4 -4
- package/dist/helpers/paths.mjs.map +1 -1
- package/dist/helpers/persistence.cjs +4 -6
- package/dist/helpers/persistence.cjs.map +1 -0
- package/dist/helpers/persistence.mjs +3 -3
- package/dist/helpers/persistence.mjs.map +1 -1
- package/dist/helpers/update-package-json.cjs +2 -2
- package/dist/helpers/update-package-json.cjs.map +1 -0
- package/dist/helpers/update-package-json.mjs.map +1 -1
- package/dist/helpers/utilities.cjs +3 -3
- package/dist/helpers/utilities.cjs.map +1 -0
- package/dist/helpers/utilities.mjs +1 -1
- package/dist/helpers/utilities.mjs.map +1 -1
- package/dist/helpers/validations.cjs +3 -3
- package/dist/helpers/validations.cjs.map +1 -0
- package/dist/helpers/validations.mjs +1 -3
- package/dist/helpers/validations.mjs.map +1 -1
- package/dist/index.cjs +121 -51
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +80 -5
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +80 -5
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +118 -6
- package/dist/index.mjs.map +1 -0
- package/dist/package.cjs +12 -0
- package/dist/package.cjs.map +1 -0
- package/dist/package.mjs +6 -0
- package/dist/package.mjs.map +1 -0
- package/dist/plugin-utils/compute-bin.cjs +8 -10
- package/dist/plugin-utils/compute-bin.cjs.map +1 -0
- package/dist/plugin-utils/compute-bin.d.cts +2 -2
- package/dist/plugin-utils/compute-bin.d.cts.map +1 -1
- package/dist/plugin-utils/compute-bin.d.mts +2 -2
- package/dist/plugin-utils/compute-bin.d.mts.map +1 -1
- package/dist/plugin-utils/compute-bin.mjs +6 -8
- package/dist/plugin-utils/compute-bin.mjs.map +1 -1
- package/dist/plugin-utils/context-helpers.cjs +7 -14
- package/dist/plugin-utils/context-helpers.cjs.map +1 -0
- package/dist/plugin-utils/context-helpers.d.cts +4 -4
- package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/context-helpers.d.mts +4 -4
- package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/context-helpers.mjs +5 -12
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/deepkit.cjs +15 -16
- package/dist/plugin-utils/deepkit.cjs.map +1 -0
- package/dist/plugin-utils/deepkit.d.cts +5 -5
- package/dist/plugin-utils/deepkit.d.cts.map +1 -1
- package/dist/plugin-utils/deepkit.d.mts +5 -5
- package/dist/plugin-utils/deepkit.d.mts.map +1 -1
- package/dist/plugin-utils/deepkit.mjs +14 -15
- package/dist/plugin-utils/deepkit.mjs.map +1 -1
- package/dist/plugin-utils/description-helpers.cjs +2 -1
- package/dist/plugin-utils/description-helpers.cjs.map +1 -0
- package/dist/plugin-utils/description-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/description-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/description-helpers.mjs.map +1 -1
- package/dist/plugin-utils/get-command-tree.cjs +2 -1
- package/dist/plugin-utils/get-command-tree.cjs.map +1 -0
- package/dist/plugin-utils/get-command-tree.d.cts.map +1 -1
- package/dist/plugin-utils/get-command-tree.d.mts.map +1 -1
- package/dist/plugin-utils/get-command-tree.mjs.map +1 -1
- package/dist/plugin-utils/index.cjs +1 -1
- package/dist/plugin-utils/index.d.cts +2 -2
- package/dist/plugin-utils/index.d.mts +2 -2
- package/dist/plugin-utils/index.mjs +2 -2
- package/dist/plugin-utils/reflect.cjs +5 -5
- package/dist/plugin-utils/reflect.cjs.map +1 -0
- package/dist/plugin-utils/reflect.d.cts.map +1 -1
- package/dist/plugin-utils/reflect.d.mts.map +1 -1
- package/dist/plugin-utils/reflect.mjs +3 -5
- package/dist/plugin-utils/reflect.mjs.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.cjs +2 -1
- package/dist/plugin-utils/traverse-command-tree.cjs.map +1 -0
- package/dist/plugin-utils/traverse-command-tree.d.cts.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.d.mts.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.mjs.map +1 -1
- package/dist/plugin-utils/type-checks.cjs +146 -17
- package/dist/plugin-utils/type-checks.cjs.map +1 -0
- package/dist/plugin-utils/type-checks.d.cts +5 -5
- package/dist/plugin-utils/type-checks.d.cts.map +1 -1
- package/dist/plugin-utils/type-checks.d.mts +5 -5
- package/dist/plugin-utils/type-checks.d.mts.map +1 -1
- package/dist/plugin-utils/type-checks.mjs +145 -16
- package/dist/plugin-utils/type-checks.mjs.map +1 -1
- package/dist/plugin.cjs +80 -56
- package/dist/plugin.cjs.map +1 -0
- package/dist/plugin.d.cts.map +1 -1
- package/dist/plugin.d.mts.map +1 -1
- package/dist/plugin.mjs +75 -52
- package/dist/plugin.mjs.map +1 -1
- package/dist/resolver/helpers.cjs +33 -24
- package/dist/resolver/helpers.cjs.map +1 -0
- package/dist/resolver/helpers.mjs +32 -22
- package/dist/resolver/helpers.mjs.map +1 -1
- package/dist/resolver/resolve.cjs +319 -61
- package/dist/resolver/resolve.cjs.map +1 -0
- package/dist/resolver/resolve.mjs +316 -58
- package/dist/resolver/resolve.mjs.map +1 -1
- package/dist/types/command.cjs +43 -82
- package/dist/types/command.cjs.map +1 -0
- package/dist/types/command.d.cts +61 -119
- package/dist/types/command.d.cts.map +1 -1
- package/dist/types/command.d.mts +61 -119
- package/dist/types/command.d.mts.map +1 -1
- package/dist/types/command.mjs +42 -80
- package/dist/types/command.mjs.map +1 -1
- package/dist/types/config.cjs +45 -4
- package/dist/types/config.cjs.map +1 -0
- package/dist/types/config.d.cts +16 -11
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +16 -11
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/config.mjs +40 -4
- package/dist/types/config.mjs.map +1 -1
- package/dist/types/context.cjs +9 -1
- package/dist/types/context.cjs.map +1 -0
- package/dist/types/context.d.cts +3 -2
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +3 -2
- package/dist/types/context.d.mts.map +1 -1
- package/dist/types/context.mjs +7 -1
- package/dist/types/context.mjs.map +1 -1
- package/dist/types/env.cjs +2 -1
- package/dist/types/env.cjs.map +1 -0
- package/dist/types/env.d.cts.map +1 -1
- package/dist/types/env.d.mts.map +1 -1
- package/dist/types/env.mjs.map +1 -1
- package/dist/types/index.cjs +6 -3
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.mjs +4 -4
- package/dist/types/options.cjs +2 -1
- package/dist/types/options.cjs.map +1 -0
- package/dist/types/options.d.cts.map +1 -1
- package/dist/types/options.d.mts.map +1 -1
- package/dist/types/options.mjs.map +1 -1
- package/package.json +43 -35
- package/dist/resolver/deepkit.cjs +0 -135
- package/dist/resolver/deepkit.mjs +0 -135
- package/dist/resolver/deepkit.mjs.map +0 -1
- package/dist/resolver/module.cjs +0 -145
- package/dist/resolver/module.mjs +0 -145
- package/dist/resolver/module.mjs.map +0 -1
package/dist/types/config.d.cts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { CommandBase, CommandOption } from "./command.cjs";
|
|
2
2
|
import { Context } from "./context.cjs";
|
|
3
|
-
import {
|
|
3
|
+
import { RequiredKeys } from "@stryke/types/base";
|
|
4
|
+
import { ConfigParams, OutputConfig as OutputConfig$1, UserConfig as UserConfig$1 } from "powerlines";
|
|
4
5
|
import { AlloyPluginResolvedConfig } from "@powerlines/plugin-alloy/types/plugin";
|
|
5
6
|
import { AutoMDPluginResolvedConfig } from "@powerlines/plugin-automd";
|
|
6
7
|
import { NodeJsPluginOptions, NodeJsPluginResolvedConfig } from "@powerlines/plugin-nodejs/types/plugin";
|
|
7
8
|
import { TsdownPluginResolvedConfig } from "@powerlines/plugin-tsdown/types/plugin";
|
|
8
|
-
import {
|
|
9
|
+
import { EngineOptions as EngineOptions$1 } from "powerlines/engine";
|
|
9
10
|
|
|
10
11
|
//#region src/types/config.d.ts
|
|
11
|
-
type BuildOptions = Pick<UserConfig$1, "
|
|
12
|
+
type BuildOptions = Pick<UserConfig$1, "name" | "title" | "description" | "input" | "output" | "logLevel" | "mode" | "define" | "inject" | "resolve" | "organization" | "skipCache" | "autoInstall" | "plugins" | "tsconfig" | "tsconfigRaw">;
|
|
12
13
|
interface ReferenceOptions {
|
|
13
14
|
/**
|
|
14
15
|
* A URL to the application documentation or reference.
|
|
@@ -18,7 +19,7 @@ interface ReferenceOptions {
|
|
|
18
19
|
* A URL to the application command specific documentation or reference.
|
|
19
20
|
*
|
|
20
21
|
* @remarks
|
|
21
|
-
* This URL is expected to contain the token `{command}`, which will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{
|
|
22
|
+
* This URL is expected to contain the token `{command}`, which will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{docs}/command/subcommand`.
|
|
22
23
|
*/
|
|
23
24
|
commands?: string;
|
|
24
25
|
}
|
|
@@ -29,7 +30,7 @@ interface BaseOptions {
|
|
|
29
30
|
* @remarks
|
|
30
31
|
* Each command will inherit these global options. To disable the addition of these global options, set this property to `false`, or provide a custom set of options/a function that returns them. A `GlobalOptions` interface will be created by the `shell-shock types` command and added to the generated `shell-shock.d.ts` file.
|
|
31
32
|
*/
|
|
32
|
-
globalOptions?: CommandOption[] | ((context: Context
|
|
33
|
+
globalOptions?: CommandOption[] | ((context: Context<any>, input: CommandBase) => CommandOption[]) | false;
|
|
33
34
|
/**
|
|
34
35
|
* Determines whether commands and option names are treated as case-sensitive.
|
|
35
36
|
*
|
|
@@ -51,7 +52,7 @@ interface BaseOptions {
|
|
|
51
52
|
* Should Shell Shock attempt to automatically assign environment variables to manipulate default values for command options based on the option name?
|
|
52
53
|
*
|
|
53
54
|
* @remarks
|
|
54
|
-
* If set to a string, Shell Shock will use the provided string as an application specific environment variable prefix, convert the option name to {@link https://stringcase.org/cases/constant/ | constant case}, and prepend the provided `string` value to determine the corresponding environment variable name. For example, if an option is named `"configPath"` and the `autoAssignEnv` is `"
|
|
55
|
+
* If set to a string, Shell Shock will use the provided string as an application specific environment variable prefix, convert the option name to {@link https://stringcase.org/cases/constant/ | constant case}, and prepend the provided `string` value to determine the corresponding environment variable name. For example, if an option is named `"configPath"` and the `autoAssignEnv` is `"MY_APP"`, Shell Shock will look for an environment variable named `"MY_APP_CONFIG_PATH"` and assign its value to the option if it exists. If set to `true`, Shell Shock will use a default environment variable prefix derived from the {@link Options.name | application name}.
|
|
55
56
|
*
|
|
56
57
|
* @see https://medium.com/chingu/an-introduction-to-environment-variables-and-how-to-use-them-f602f66d15fa
|
|
57
58
|
* @see https://stringcase.org/cases/constant/
|
|
@@ -61,9 +62,9 @@ interface BaseOptions {
|
|
|
61
62
|
* A URL to the application documentation or reference.
|
|
62
63
|
*
|
|
63
64
|
* @remarks
|
|
64
|
-
* This URL can be used in various displays of the user interface and documentation to provide users with a reference for the application. It can also be used by plugins to link to the documentation in relevant contexts. If the token `{command}` is included in the URL, it will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{
|
|
65
|
+
* This URL can be used in various displays of the user interface and documentation to provide users with a reference for the application. It can also be used by plugins to link to the documentation in relevant contexts. If the token `{command}` is included in the URL, it will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{docs}/command/subcommand`.
|
|
65
66
|
*/
|
|
66
|
-
|
|
67
|
+
docs?: ReferenceOptions | string;
|
|
67
68
|
}
|
|
68
69
|
/**
|
|
69
70
|
* The plugin options for Shell Shock.
|
|
@@ -81,13 +82,17 @@ type OutputConfig = Pick<OutputConfig$1, "path" | "copy" | "storage" | "sourceMa
|
|
|
81
82
|
/**
|
|
82
83
|
* The user configuration options for Shell Shock.
|
|
83
84
|
*/
|
|
84
|
-
type UserConfig = BaseOptions & RequiredKeys<BuildOptions, "
|
|
85
|
+
type UserConfig = BaseOptions & RequiredKeys<BuildOptions, "name"> & {
|
|
85
86
|
/**
|
|
86
87
|
* Configuration for the output of the build process
|
|
87
88
|
*/
|
|
88
89
|
output?: OutputConfig;
|
|
89
90
|
};
|
|
90
|
-
type
|
|
91
|
+
type UserConfigFnObject = (env: ConfigParams) => UserConfig | UserConfig[];
|
|
92
|
+
type UserConfigFnPromise = (env: ConfigParams) => Promise<UserConfig | UserConfig[]>;
|
|
93
|
+
type UserConfigFn = (env: ConfigParams) => UserConfig | UserConfig[] | Promise<UserConfig | UserConfig[]>;
|
|
94
|
+
type UserConfigExport = UserConfig | UserConfig[] | Promise<UserConfig | UserConfig[]> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
|
|
95
|
+
type EngineOptions = Omit<EngineOptions$1, "root" | "name" | "framework">;
|
|
91
96
|
/**
|
|
92
97
|
* The resolved configuration options for Shell Shock.
|
|
93
98
|
*/
|
|
@@ -117,5 +122,5 @@ type ResolvedConfig = TsdownPluginResolvedConfig & AlloyPluginResolvedConfig & A
|
|
|
117
122
|
userConfig: UserConfig;
|
|
118
123
|
};
|
|
119
124
|
//#endregion
|
|
120
|
-
export { EngineOptions, Options, OutputConfig, ReferenceOptions, ResolvedConfig, UserConfig };
|
|
125
|
+
export { EngineOptions, Options, OutputConfig, ReferenceOptions, ResolvedConfig, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnObject, UserConfigFnPromise };
|
|
121
126
|
//# sourceMappingURL=config.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.cts","names":[],"sources":["../../src/types/config.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.cts","names":[],"sources":["../../src/types/config.ts"],"mappings":";;;;;;;;;;;KAmCK,YAAA,GAAe,IAAI,CACtB,YAAA;AAAA,UAmBe,gBAAA;EApBZ;;;EAwBH,GAAA;EAvBoB;AAmBtB;;;;AAYU;EAAR,QAAQ;AAAA;AAAA,UAGA,WAAA;EAQJ;;;;;;EADJ,aAAA,GACI,aAAA,OACE,OAAA,EAAS,OAAA,OAAc,KAAA,EAAO,WAAA,KAAgB,aAAA;EAFpD;;;;;EAUA,eAAA;EARoD;;;;;;;AAuC7B;AAMzB;;EAzBE,GAAA;EAyBoB;;;;;;;;;EAdpB,aAAA;EAmBU;;;;;;EAXV,IAAA,GAAO,gBAAA;AAAA;AAkBJ;AAML;;AANK,KAZO,OAAA,GAAU,WAAA,GAAc,OAAA,CAAQ,mBAAA;;;;KAKhC,YAAA,GAAe,IAAI,CAC7B,cAAA;EAiBuB;;;EAXvB,GAAA;AAAA;;;;KAMU,UAAA,GAAa,WAAA,GACvB,YAAA,CAAa,YAAA;EAOH;;;EAHR,MAAA,GAAS,YAAA;AAAA;AAAA,KAGD,kBAAA,IACV,GAAA,EAAK,YAAA,KACF,UAAA,GAAa,UAAA;AAAA,KACN,mBAAA,IACV,GAAA,EAAK,YAAA,KACF,OAAA,CAAQ,UAAA,GAAa,UAAA;AAAA,KACd,YAAA,IACV,GAAA,EAAK,YAAA,KACF,UAAA,GAAa,UAAA,KAAe,OAAA,CAAQ,UAAA,GAAa,UAAA;AAAA,KAE1C,gBAAA,GACR,UAAA,GACA,UAAA,KACA,OAAA,CAAQ,UAAA,GAAa,UAAA,MACrB,kBAAA,GACA,mBAAA,GACA,YAAA;AAAA,KAEQ,aAAA,GAAgB,IAAI,CAC9B,eAAA;;;;KAOU,cAAA,GAAiB,0BAAA,GAC3B,yBAAA,GACA,0BAAA,GACA,0BAAA,GACA,QAAA,CAAS,IAAA,CAAK,OAAA;EA3BJ;;;;;;;;;;EAsCR,GAAA,EAAK,MAAA;EApCJ;;;EAyCD,SAAA,EAAW,gBAAA;EAzCqB;AACpC;;EA6CI,oBAAA;EA5CG;;;EAiDH,UAAA,EAAY,UAAA;AAAA"}
|
package/dist/types/config.d.mts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { CommandBase, CommandOption } from "./command.mjs";
|
|
2
2
|
import { Context } from "./context.mjs";
|
|
3
3
|
import { AutoMDPluginResolvedConfig } from "@powerlines/plugin-automd";
|
|
4
|
-
import {
|
|
4
|
+
import { ConfigParams, OutputConfig as OutputConfig$1, UserConfig as UserConfig$1 } from "powerlines";
|
|
5
|
+
import { RequiredKeys } from "@stryke/types/base";
|
|
5
6
|
import { AlloyPluginResolvedConfig } from "@powerlines/plugin-alloy/types/plugin";
|
|
6
7
|
import { NodeJsPluginOptions, NodeJsPluginResolvedConfig } from "@powerlines/plugin-nodejs/types/plugin";
|
|
7
8
|
import { TsdownPluginResolvedConfig } from "@powerlines/plugin-tsdown/types/plugin";
|
|
8
|
-
import {
|
|
9
|
+
import { EngineOptions as EngineOptions$1 } from "powerlines/engine";
|
|
9
10
|
|
|
10
11
|
//#region src/types/config.d.ts
|
|
11
|
-
type BuildOptions = Pick<UserConfig$1, "
|
|
12
|
+
type BuildOptions = Pick<UserConfig$1, "name" | "title" | "description" | "input" | "output" | "logLevel" | "mode" | "define" | "inject" | "resolve" | "organization" | "skipCache" | "autoInstall" | "plugins" | "tsconfig" | "tsconfigRaw">;
|
|
12
13
|
interface ReferenceOptions {
|
|
13
14
|
/**
|
|
14
15
|
* A URL to the application documentation or reference.
|
|
@@ -18,7 +19,7 @@ interface ReferenceOptions {
|
|
|
18
19
|
* A URL to the application command specific documentation or reference.
|
|
19
20
|
*
|
|
20
21
|
* @remarks
|
|
21
|
-
* This URL is expected to contain the token `{command}`, which will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{
|
|
22
|
+
* This URL is expected to contain the token `{command}`, which will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{docs}/command/subcommand`.
|
|
22
23
|
*/
|
|
23
24
|
commands?: string;
|
|
24
25
|
}
|
|
@@ -29,7 +30,7 @@ interface BaseOptions {
|
|
|
29
30
|
* @remarks
|
|
30
31
|
* Each command will inherit these global options. To disable the addition of these global options, set this property to `false`, or provide a custom set of options/a function that returns them. A `GlobalOptions` interface will be created by the `shell-shock types` command and added to the generated `shell-shock.d.ts` file.
|
|
31
32
|
*/
|
|
32
|
-
globalOptions?: CommandOption[] | ((context: Context
|
|
33
|
+
globalOptions?: CommandOption[] | ((context: Context<any>, input: CommandBase) => CommandOption[]) | false;
|
|
33
34
|
/**
|
|
34
35
|
* Determines whether commands and option names are treated as case-sensitive.
|
|
35
36
|
*
|
|
@@ -51,7 +52,7 @@ interface BaseOptions {
|
|
|
51
52
|
* Should Shell Shock attempt to automatically assign environment variables to manipulate default values for command options based on the option name?
|
|
52
53
|
*
|
|
53
54
|
* @remarks
|
|
54
|
-
* If set to a string, Shell Shock will use the provided string as an application specific environment variable prefix, convert the option name to {@link https://stringcase.org/cases/constant/ | constant case}, and prepend the provided `string` value to determine the corresponding environment variable name. For example, if an option is named `"configPath"` and the `autoAssignEnv` is `"
|
|
55
|
+
* If set to a string, Shell Shock will use the provided string as an application specific environment variable prefix, convert the option name to {@link https://stringcase.org/cases/constant/ | constant case}, and prepend the provided `string` value to determine the corresponding environment variable name. For example, if an option is named `"configPath"` and the `autoAssignEnv` is `"MY_APP"`, Shell Shock will look for an environment variable named `"MY_APP_CONFIG_PATH"` and assign its value to the option if it exists. If set to `true`, Shell Shock will use a default environment variable prefix derived from the {@link Options.name | application name}.
|
|
55
56
|
*
|
|
56
57
|
* @see https://medium.com/chingu/an-introduction-to-environment-variables-and-how-to-use-them-f602f66d15fa
|
|
57
58
|
* @see https://stringcase.org/cases/constant/
|
|
@@ -61,9 +62,9 @@ interface BaseOptions {
|
|
|
61
62
|
* A URL to the application documentation or reference.
|
|
62
63
|
*
|
|
63
64
|
* @remarks
|
|
64
|
-
* This URL can be used in various displays of the user interface and documentation to provide users with a reference for the application. It can also be used by plugins to link to the documentation in relevant contexts. If the token `{command}` is included in the URL, it will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{
|
|
65
|
+
* This URL can be used in various displays of the user interface and documentation to provide users with a reference for the application. It can also be used by plugins to link to the documentation in relevant contexts. If the token `{command}` is included in the URL, it will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{docs}/command/subcommand`.
|
|
65
66
|
*/
|
|
66
|
-
|
|
67
|
+
docs?: ReferenceOptions | string;
|
|
67
68
|
}
|
|
68
69
|
/**
|
|
69
70
|
* The plugin options for Shell Shock.
|
|
@@ -81,13 +82,17 @@ type OutputConfig = Pick<OutputConfig$1, "path" | "copy" | "storage" | "sourceMa
|
|
|
81
82
|
/**
|
|
82
83
|
* The user configuration options for Shell Shock.
|
|
83
84
|
*/
|
|
84
|
-
type UserConfig = BaseOptions & RequiredKeys<BuildOptions, "
|
|
85
|
+
type UserConfig = BaseOptions & RequiredKeys<BuildOptions, "name"> & {
|
|
85
86
|
/**
|
|
86
87
|
* Configuration for the output of the build process
|
|
87
88
|
*/
|
|
88
89
|
output?: OutputConfig;
|
|
89
90
|
};
|
|
90
|
-
type
|
|
91
|
+
type UserConfigFnObject = (env: ConfigParams) => UserConfig | UserConfig[];
|
|
92
|
+
type UserConfigFnPromise = (env: ConfigParams) => Promise<UserConfig | UserConfig[]>;
|
|
93
|
+
type UserConfigFn = (env: ConfigParams) => UserConfig | UserConfig[] | Promise<UserConfig | UserConfig[]>;
|
|
94
|
+
type UserConfigExport = UserConfig | UserConfig[] | Promise<UserConfig | UserConfig[]> | UserConfigFnObject | UserConfigFnPromise | UserConfigFn;
|
|
95
|
+
type EngineOptions = Omit<EngineOptions$1, "root" | "name" | "framework">;
|
|
91
96
|
/**
|
|
92
97
|
* The resolved configuration options for Shell Shock.
|
|
93
98
|
*/
|
|
@@ -117,5 +122,5 @@ type ResolvedConfig = TsdownPluginResolvedConfig & AlloyPluginResolvedConfig & A
|
|
|
117
122
|
userConfig: UserConfig;
|
|
118
123
|
};
|
|
119
124
|
//#endregion
|
|
120
|
-
export { EngineOptions, Options, OutputConfig, ReferenceOptions, ResolvedConfig, UserConfig };
|
|
125
|
+
export { EngineOptions, Options, OutputConfig, ReferenceOptions, ResolvedConfig, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnObject, UserConfigFnPromise };
|
|
121
126
|
//# sourceMappingURL=config.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.mts","names":[],"sources":["../../src/types/config.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.mts","names":[],"sources":["../../src/types/config.ts"],"mappings":""}
|
package/dist/types/config.mjs
CHANGED
|
@@ -62,7 +62,7 @@ const __ΩBaseOptions = [
|
|
|
62
62
|
"autoAssignEnv",
|
|
63
63
|
"Should Shell Shock attempt to automatically assign environment variables to manipulate default values for command options based on the option name?",
|
|
64
64
|
() => __ΩReferenceOptions,
|
|
65
|
-
"
|
|
65
|
+
"docs",
|
|
66
66
|
"A URL to the application documentation or reference.",
|
|
67
67
|
"BaseOptions",
|
|
68
68
|
"PP\"w!FP\"w\"2#\"w$2%\"w!F/&.'J4(8?))4*8>+?,P&&FJ4-8?.P./&J408?1Pn2&J438?4Mw5y"
|
|
@@ -93,14 +93,50 @@ const __ΩUserConfig = [
|
|
|
93
93
|
"UserConfig",
|
|
94
94
|
"Pn!!Pn\"4#8?$MKw%y"
|
|
95
95
|
];
|
|
96
|
+
const __ΩUserConfigFnObject = [
|
|
97
|
+
"env",
|
|
98
|
+
() => __ΩUserConfig,
|
|
99
|
+
() => __ΩUserConfig,
|
|
100
|
+
"",
|
|
101
|
+
"UserConfigFnObject",
|
|
102
|
+
"P!2!Pn\"n#FJ/$w%y"
|
|
103
|
+
];
|
|
104
|
+
const __ΩUserConfigFnPromise = [
|
|
105
|
+
"env",
|
|
106
|
+
() => __ΩUserConfig,
|
|
107
|
+
() => __ΩUserConfig,
|
|
108
|
+
"",
|
|
109
|
+
"UserConfigFnPromise",
|
|
110
|
+
"P!2!Pn\"n#FJ`/$w%y"
|
|
111
|
+
];
|
|
112
|
+
const __ΩUserConfigFn = [
|
|
113
|
+
"env",
|
|
114
|
+
() => __ΩUserConfig,
|
|
115
|
+
() => __ΩUserConfig,
|
|
116
|
+
() => __ΩUserConfig,
|
|
117
|
+
() => __ΩUserConfig,
|
|
118
|
+
"",
|
|
119
|
+
"UserConfigFn",
|
|
120
|
+
"P!2!Pn\"n#FPn$n%FJ`J/&w'y"
|
|
121
|
+
];
|
|
122
|
+
const __ΩUserConfigExport = [
|
|
123
|
+
() => __ΩUserConfig,
|
|
124
|
+
() => __ΩUserConfig,
|
|
125
|
+
() => __ΩUserConfig,
|
|
126
|
+
() => __ΩUserConfig,
|
|
127
|
+
() => __ΩUserConfigFnObject,
|
|
128
|
+
() => __ΩUserConfigFnPromise,
|
|
129
|
+
() => __ΩUserConfigFn,
|
|
130
|
+
"UserConfigExport",
|
|
131
|
+
"Pn!n\"FPn#n$FJ`n%n&n'Jw(y"
|
|
132
|
+
];
|
|
96
133
|
const __ΩEngineOptions = [
|
|
97
134
|
() => __ΩOmit,
|
|
98
135
|
"root",
|
|
99
136
|
"name",
|
|
100
137
|
"framework",
|
|
101
|
-
() => __ΩUserConfig,
|
|
102
138
|
"EngineOptions",
|
|
103
|
-
"
|
|
139
|
+
"!P.\".#.$Jo!#w%y"
|
|
104
140
|
];
|
|
105
141
|
const __ΩResolvedConfig = [
|
|
106
142
|
() => __ΩRequired,
|
|
@@ -124,5 +160,5 @@ const __ΩResolvedConfig = [
|
|
|
124
160
|
];
|
|
125
161
|
|
|
126
162
|
//#endregion
|
|
127
|
-
export { __ΩEngineOptions, __ΩOptions, __ΩOutputConfig, __ΩReferenceOptions, __ΩResolvedConfig, __ΩUserConfig };
|
|
163
|
+
export { __ΩEngineOptions, __ΩOptions, __ΩOutputConfig, __ΩReferenceOptions, __ΩResolvedConfig, __ΩUserConfig, __ΩUserConfigExport, __ΩUserConfigFn, __ΩUserConfigFnObject, __ΩUserConfigFnPromise };
|
|
128
164
|
//# sourceMappingURL=config.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"config.mjs","names":[],"sources":[],"mappings":""}
|
package/dist/types/context.cjs
CHANGED
|
@@ -25,6 +25,12 @@ const __ΩContext = [
|
|
|
25
25
|
"Context",
|
|
26
26
|
"\"w!c\"P!!!P&4#?$\"w%F4&?'\"w(F4)?*&\"w,o+#4-?.MKw/y"
|
|
27
27
|
];
|
|
28
|
+
const __ΩExecutionContext = [
|
|
29
|
+
"ResolvedConfig",
|
|
30
|
+
"TResolvedConfig",
|
|
31
|
+
"ExecutionContext",
|
|
32
|
+
"\"w!c\"!w#y"
|
|
33
|
+
];
|
|
28
34
|
const __ΩUnresolvedContext = [
|
|
29
35
|
"ResolvedConfig",
|
|
30
36
|
"TResolvedConfig",
|
|
@@ -34,4 +40,6 @@ const __ΩUnresolvedContext = [
|
|
|
34
40
|
|
|
35
41
|
//#endregion
|
|
36
42
|
exports.__ΩContext = __ΩContext;
|
|
37
|
-
exports.__Ω
|
|
43
|
+
exports.__ΩExecutionContext = __ΩExecutionContext;
|
|
44
|
+
exports.__ΩUnresolvedContext = __ΩUnresolvedContext;
|
|
45
|
+
//# sourceMappingURL=context.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.cjs","names":[],"sources":[],"mappings":""}
|
package/dist/types/context.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommandConfig, CommandOption, CommandTree } from "./command.cjs";
|
|
2
2
|
import { ResolvedConfig } from "./config.cjs";
|
|
3
|
-
import { UnresolvedContext as UnresolvedContext$1 } from "powerlines";
|
|
3
|
+
import { ExecutionContext as ExecutionContext$1, UnresolvedContext as UnresolvedContext$1 } from "powerlines";
|
|
4
4
|
import { AlloyPluginContext } from "@powerlines/plugin-alloy/types/plugin";
|
|
5
5
|
import { NodeJsPluginContext } from "@powerlines/plugin-nodejs/types/plugin";
|
|
6
6
|
import { TsdownPluginContext } from "@powerlines/plugin-tsdown/types/plugin";
|
|
@@ -24,7 +24,8 @@ type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = TsdownPl
|
|
|
24
24
|
*/
|
|
25
25
|
commands: Record<string, CommandTree>;
|
|
26
26
|
};
|
|
27
|
+
type ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = ExecutionContext$1<TResolvedConfig>;
|
|
27
28
|
type UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnresolvedContext$1<TResolvedConfig>;
|
|
28
29
|
//#endregion
|
|
29
|
-
export { Context, UnresolvedContext };
|
|
30
|
+
export { Context, ExecutionContext, UnresolvedContext };
|
|
30
31
|
//# sourceMappingURL=context.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.cts","names":[],"sources":["../../src/types/context.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"context.d.cts","names":[],"sources":["../../src/types/context.ts"],"mappings":";;;;;;;;KA4BY,OAAA,yBAAgC,cAAA,GAAiB,cAAA,IAC3D,mBAAA,CAAoB,eAAA,IAClB,kBAAA,CAAmB,eAAA,IACnB,mBAAA,CAAoB,eAAA;;AAHxB;;EAOM,YAAA;EAPsC;;;EAYtC,aAAA,EAAe,aAAA;EAVE;;;EAejB,MAAA,EAAQ,aAAA;EALO;;;EAUf,QAAA,EAAU,MAAA,SAAe,WAAA;AAAA;AAAA,KAGnB,gBAAA,yBACc,cAAA,GAAiB,cAAA,IACvC,kBAAA,CAA2B,eAAA;AAAA,KAEnB,iBAAA,yBACc,cAAA,GAAiB,cAAA,IACvC,mBAAA,CAA4B,eAAA"}
|
package/dist/types/context.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommandConfig, CommandOption, CommandTree } from "./command.mjs";
|
|
2
2
|
import { ResolvedConfig } from "./config.mjs";
|
|
3
|
-
import { UnresolvedContext as UnresolvedContext$1 } from "powerlines";
|
|
3
|
+
import { ExecutionContext as ExecutionContext$1, UnresolvedContext as UnresolvedContext$1 } from "powerlines";
|
|
4
4
|
import { AlloyPluginContext } from "@powerlines/plugin-alloy/types/plugin";
|
|
5
5
|
import { NodeJsPluginContext } from "@powerlines/plugin-nodejs/types/plugin";
|
|
6
6
|
import { TsdownPluginContext } from "@powerlines/plugin-tsdown/types/plugin";
|
|
@@ -24,7 +24,8 @@ type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = TsdownPl
|
|
|
24
24
|
*/
|
|
25
25
|
commands: Record<string, CommandTree>;
|
|
26
26
|
};
|
|
27
|
+
type ExecutionContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = ExecutionContext$1<TResolvedConfig>;
|
|
27
28
|
type UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnresolvedContext$1<TResolvedConfig>;
|
|
28
29
|
//#endregion
|
|
29
|
-
export { Context, UnresolvedContext };
|
|
30
|
+
export { Context, ExecutionContext, UnresolvedContext };
|
|
30
31
|
//# sourceMappingURL=context.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.mts","names":[],"sources":["../../src/types/context.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.d.mts","names":[],"sources":["../../src/types/context.ts"],"mappings":""}
|
package/dist/types/context.mjs
CHANGED
|
@@ -23,6 +23,12 @@ const __ΩContext = [
|
|
|
23
23
|
"Context",
|
|
24
24
|
"\"w!c\"P!!!P&4#?$\"w%F4&?'\"w(F4)?*&\"w,o+#4-?.MKw/y"
|
|
25
25
|
];
|
|
26
|
+
const __ΩExecutionContext = [
|
|
27
|
+
"ResolvedConfig",
|
|
28
|
+
"TResolvedConfig",
|
|
29
|
+
"ExecutionContext",
|
|
30
|
+
"\"w!c\"!w#y"
|
|
31
|
+
];
|
|
26
32
|
const __ΩUnresolvedContext = [
|
|
27
33
|
"ResolvedConfig",
|
|
28
34
|
"TResolvedConfig",
|
|
@@ -31,5 +37,5 @@ const __ΩUnresolvedContext = [
|
|
|
31
37
|
];
|
|
32
38
|
|
|
33
39
|
//#endregion
|
|
34
|
-
export { __ΩContext, __ΩUnresolvedContext };
|
|
40
|
+
export { __ΩContext, __ΩExecutionContext, __ΩUnresolvedContext };
|
|
35
41
|
//# sourceMappingURL=context.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"context.mjs","names":[],"sources":[],"mappings":""}
|
package/dist/types/env.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.cjs","names":[],"sources":[],"mappings":""}
|
package/dist/types/env.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.cts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;UAqBiB,aAAA,SAAsB,
|
|
1
|
+
{"version":3,"file":"env.d.cts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;UAqBiB,aAAA,SAAsB,YAAY;;AAAnD;;;;;;;;;EAWE,OAAA;EAyDA;;AAAO;;;;;EAhDP,IAAA;;;;;;;;;;;EAYA,qBAAA;;;;;;;;;;;EAYA,eAAA;;;;;;;;;;;EAYA,YAAA;;;;;;;;;;;EAYA,OAAA;AAAA"}
|
package/dist/types/env.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.mts","names":[],"sources":["../../src/types/env.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"env.d.mts","names":[],"sources":["../../src/types/env.ts"],"mappings":""}
|
package/dist/types/env.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"env.mjs","names":[],"sources":[],"mappings":""}
|
package/dist/types/index.cjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_types_options = require('./options.cjs');
|
|
2
3
|
const require_types_command = require('./command.cjs');
|
|
3
4
|
const require_types_config = require('./config.cjs');
|
|
4
5
|
const require_types_context = require('./context.cjs');
|
|
5
|
-
const require_types_options = require('./options.cjs');
|
|
6
6
|
|
|
7
|
-
exports.CommandParameterKinds = require_types_command.CommandParameterKinds;
|
|
8
7
|
exports.__ΩAsCommandParameterConfig = require_types_command.__ΩAsCommandParameterConfig;
|
|
9
8
|
exports.__ΩBaseBooleanCommandParameter = require_types_command.__ΩBaseBooleanCommandParameter;
|
|
10
9
|
exports.__ΩBaseCommandOptions = require_types_options.__ΩBaseCommandOptions;
|
|
@@ -26,11 +25,11 @@ exports.__ΩCommandOption = require_types_command.__ΩCommandOption;
|
|
|
26
25
|
exports.__ΩCommandOptionConfig = require_types_command.__ΩCommandOptionConfig;
|
|
27
26
|
exports.__ΩCommandParameter = require_types_command.__ΩCommandParameter;
|
|
28
27
|
exports.__ΩCommandParameterConfig = require_types_command.__ΩCommandParameterConfig;
|
|
29
|
-
exports.__ΩCommandParameterKind = require_types_command.__ΩCommandParameterKind;
|
|
30
28
|
exports.__ΩCommandParameterType = require_types_command.__ΩCommandParameterType;
|
|
31
29
|
exports.__ΩCommandTree = require_types_command.__ΩCommandTree;
|
|
32
30
|
exports.__ΩContext = require_types_context.__ΩContext;
|
|
33
31
|
exports.__ΩEngineOptions = require_types_config.__ΩEngineOptions;
|
|
32
|
+
exports.__ΩExecutionContext = require_types_context.__ΩExecutionContext;
|
|
34
33
|
exports.__ΩNumberCommandParameter = require_types_command.__ΩNumberCommandParameter;
|
|
35
34
|
exports.__ΩNumberCommandParameterConfig = require_types_command.__ΩNumberCommandParameterConfig;
|
|
36
35
|
exports.__ΩOptions = require_types_config.__ΩOptions;
|
|
@@ -45,6 +44,10 @@ exports.__ΩStringCommandParameter = require_types_command.__ΩStringCommandPara
|
|
|
45
44
|
exports.__ΩStringCommandParameterConfig = require_types_command.__ΩStringCommandParameterConfig;
|
|
46
45
|
exports.__ΩUnresolvedContext = require_types_context.__ΩUnresolvedContext;
|
|
47
46
|
exports.__ΩUserConfig = require_types_config.__ΩUserConfig;
|
|
47
|
+
exports.__ΩUserConfigExport = require_types_config.__ΩUserConfigExport;
|
|
48
|
+
exports.__ΩUserConfigFn = require_types_config.__ΩUserConfigFn;
|
|
49
|
+
exports.__ΩUserConfigFnObject = require_types_config.__ΩUserConfigFnObject;
|
|
50
|
+
exports.__ΩUserConfigFnPromise = require_types_config.__ΩUserConfigFnPromise;
|
|
48
51
|
exports.__ΩVariadicBooleanCommandParameter = require_types_command.__ΩVariadicBooleanCommandParameter;
|
|
49
52
|
exports.__ΩVariadicNumberCommandParameter = require_types_command.__ΩVariadicNumberCommandParameter;
|
|
50
53
|
exports.__ΩVariadicStringCommandParameter = require_types_command.__ΩVariadicStringCommandParameter;
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AsCommandParameterConfig, BaseBooleanCommandParameter, BaseCommandParameter, BaseNumberCommandParameter, BaseSingleCommandParameter, BaseStringCommandParameter, BaseVariadicCommandParameter, BooleanCommandOption, BooleanCommandParameter, BooleanCommandParameterConfig, CommandArgument, CommandArgumentConfig, CommandBase, CommandConfig, CommandMetadata, CommandModule, CommandOption, CommandOptionConfig, CommandParameter, CommandParameterConfig,
|
|
2
|
-
import { Context, UnresolvedContext } from "./context.cjs";
|
|
3
|
-
import { EngineOptions, Options, OutputConfig, ReferenceOptions, ResolvedConfig, UserConfig } from "./config.cjs";
|
|
1
|
+
import { AsCommandParameterConfig, BaseBooleanCommandParameter, BaseCommandParameter, BaseNumberCommandParameter, BaseSingleCommandParameter, BaseStringCommandParameter, BaseVariadicCommandParameter, BooleanCommandOption, BooleanCommandParameter, BooleanCommandParameterConfig, CommandArgument, CommandArgumentConfig, CommandBase, CommandConfig, CommandMetadata, CommandModule, CommandOption, CommandOptionConfig, CommandParameter, CommandParameterConfig, CommandParameterType, CommandTree, NumberCommandParameter, NumberCommandParameterConfig, SerializedCommandTree, SingleBooleanCommandParameter, SingleNumberCommandParameter, SingleStringCommandParameter, StringCommandParameter, StringCommandParameterConfig, VariadicBooleanCommandParameter, VariadicNumberCommandParameter, VariadicStringCommandParameter } from "./command.cjs";
|
|
2
|
+
import { Context, ExecutionContext, UnresolvedContext } from "./context.cjs";
|
|
3
|
+
import { EngineOptions, Options, OutputConfig, ReferenceOptions, ResolvedConfig, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnObject, UserConfigFnPromise } from "./config.cjs";
|
|
4
4
|
import { BaseCommandOptions } from "./options.cjs";
|
|
5
|
-
export { AsCommandParameterConfig, BaseBooleanCommandParameter, BaseCommandOptions, BaseCommandParameter, BaseNumberCommandParameter, BaseSingleCommandParameter, BaseStringCommandParameter, BaseVariadicCommandParameter, BooleanCommandOption, BooleanCommandParameter, BooleanCommandParameterConfig, CommandArgument, CommandArgumentConfig, CommandBase, CommandConfig, CommandMetadata, CommandModule, CommandOption, CommandOptionConfig, CommandParameter, CommandParameterConfig,
|
|
5
|
+
export { AsCommandParameterConfig, BaseBooleanCommandParameter, BaseCommandOptions, BaseCommandParameter, BaseNumberCommandParameter, BaseSingleCommandParameter, BaseStringCommandParameter, BaseVariadicCommandParameter, BooleanCommandOption, BooleanCommandParameter, BooleanCommandParameterConfig, CommandArgument, CommandArgumentConfig, CommandBase, CommandConfig, CommandMetadata, CommandModule, CommandOption, CommandOptionConfig, CommandParameter, CommandParameterConfig, CommandParameterType, CommandTree, Context, EngineOptions, ExecutionContext, NumberCommandParameter, NumberCommandParameterConfig, Options, OutputConfig, ReferenceOptions, ResolvedConfig, SerializedCommandTree, SingleBooleanCommandParameter, SingleNumberCommandParameter, SingleStringCommandParameter, StringCommandParameter, StringCommandParameterConfig, UnresolvedContext, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnObject, UserConfigFnPromise, VariadicBooleanCommandParameter, VariadicNumberCommandParameter, VariadicStringCommandParameter };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AsCommandParameterConfig, BaseBooleanCommandParameter, BaseCommandParameter, BaseNumberCommandParameter, BaseSingleCommandParameter, BaseStringCommandParameter, BaseVariadicCommandParameter, BooleanCommandOption, BooleanCommandParameter, BooleanCommandParameterConfig, CommandArgument, CommandArgumentConfig, CommandBase, CommandConfig, CommandMetadata, CommandModule, CommandOption, CommandOptionConfig, CommandParameter, CommandParameterConfig,
|
|
2
|
-
import { Context, UnresolvedContext } from "./context.mjs";
|
|
3
|
-
import { EngineOptions, Options, OutputConfig, ReferenceOptions, ResolvedConfig, UserConfig } from "./config.mjs";
|
|
1
|
+
import { AsCommandParameterConfig, BaseBooleanCommandParameter, BaseCommandParameter, BaseNumberCommandParameter, BaseSingleCommandParameter, BaseStringCommandParameter, BaseVariadicCommandParameter, BooleanCommandOption, BooleanCommandParameter, BooleanCommandParameterConfig, CommandArgument, CommandArgumentConfig, CommandBase, CommandConfig, CommandMetadata, CommandModule, CommandOption, CommandOptionConfig, CommandParameter, CommandParameterConfig, CommandParameterType, CommandTree, NumberCommandParameter, NumberCommandParameterConfig, SerializedCommandTree, SingleBooleanCommandParameter, SingleNumberCommandParameter, SingleStringCommandParameter, StringCommandParameter, StringCommandParameterConfig, VariadicBooleanCommandParameter, VariadicNumberCommandParameter, VariadicStringCommandParameter } from "./command.mjs";
|
|
2
|
+
import { Context, ExecutionContext, UnresolvedContext } from "./context.mjs";
|
|
3
|
+
import { EngineOptions, Options, OutputConfig, ReferenceOptions, ResolvedConfig, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnObject, UserConfigFnPromise } from "./config.mjs";
|
|
4
4
|
import { BaseCommandOptions } from "./options.mjs";
|
|
5
|
-
export { AsCommandParameterConfig, BaseBooleanCommandParameter, BaseCommandOptions, BaseCommandParameter, BaseNumberCommandParameter, BaseSingleCommandParameter, BaseStringCommandParameter, BaseVariadicCommandParameter, BooleanCommandOption, BooleanCommandParameter, BooleanCommandParameterConfig, CommandArgument, CommandArgumentConfig, CommandBase, CommandConfig, CommandMetadata, CommandModule, CommandOption, CommandOptionConfig, CommandParameter, CommandParameterConfig,
|
|
5
|
+
export { AsCommandParameterConfig, BaseBooleanCommandParameter, BaseCommandOptions, BaseCommandParameter, BaseNumberCommandParameter, BaseSingleCommandParameter, BaseStringCommandParameter, BaseVariadicCommandParameter, BooleanCommandOption, BooleanCommandParameter, BooleanCommandParameterConfig, CommandArgument, CommandArgumentConfig, CommandBase, CommandConfig, CommandMetadata, CommandModule, CommandOption, CommandOptionConfig, CommandParameter, CommandParameterConfig, CommandParameterType, CommandTree, Context, EngineOptions, ExecutionContext, NumberCommandParameter, NumberCommandParameterConfig, Options, OutputConfig, ReferenceOptions, ResolvedConfig, SerializedCommandTree, SingleBooleanCommandParameter, SingleNumberCommandParameter, SingleStringCommandParameter, StringCommandParameter, StringCommandParameterConfig, UnresolvedContext, UserConfig, UserConfigExport, UserConfigFn, UserConfigFnObject, UserConfigFnPromise, VariadicBooleanCommandParameter, VariadicNumberCommandParameter, VariadicStringCommandParameter };
|
package/dist/types/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CommandParameterKinds, __ΩAsCommandParameterConfig, __ΩBaseBooleanCommandParameter, __ΩBaseCommandParameter, __ΩBaseNumberCommandParameter, __ΩBaseSingleCommandParameter, __ΩBaseStringCommandParameter, __ΩBaseVariadicCommandParameter, __ΩBooleanCommandOption, __ΩBooleanCommandParameter, __ΩBooleanCommandParameterConfig, __ΩCommandArgument, __ΩCommandArgumentConfig, __ΩCommandBase, __ΩCommandConfig, __ΩCommandMetadata, __ΩCommandModule, __ΩCommandOption, __ΩCommandOptionConfig, __ΩCommandParameter, __ΩCommandParameterConfig, __ΩCommandParameterKind, __ΩCommandParameterType, __ΩCommandTree, __ΩNumberCommandParameter, __ΩNumberCommandParameterConfig, __ΩSerializedCommandTree, __ΩSingleBooleanCommandParameter, __ΩSingleNumberCommandParameter, __ΩSingleStringCommandParameter, __ΩStringCommandParameter, __ΩStringCommandParameterConfig, __ΩVariadicBooleanCommandParameter, __ΩVariadicNumberCommandParameter, __ΩVariadicStringCommandParameter } from "./command.mjs";
|
|
2
|
-
import { __ΩEngineOptions, __ΩOptions, __ΩOutputConfig, __ΩReferenceOptions, __ΩResolvedConfig, __ΩUserConfig } from "./config.mjs";
|
|
3
|
-
import { __ΩContext, __ΩUnresolvedContext } from "./context.mjs";
|
|
4
1
|
import { __ΩBaseCommandOptions } from "./options.mjs";
|
|
2
|
+
import { __ΩAsCommandParameterConfig, __ΩBaseBooleanCommandParameter, __ΩBaseCommandParameter, __ΩBaseNumberCommandParameter, __ΩBaseSingleCommandParameter, __ΩBaseStringCommandParameter, __ΩBaseVariadicCommandParameter, __ΩBooleanCommandOption, __ΩBooleanCommandParameter, __ΩBooleanCommandParameterConfig, __ΩCommandArgument, __ΩCommandArgumentConfig, __ΩCommandBase, __ΩCommandConfig, __ΩCommandMetadata, __ΩCommandModule, __ΩCommandOption, __ΩCommandOptionConfig, __ΩCommandParameter, __ΩCommandParameterConfig, __ΩCommandParameterType, __ΩCommandTree, __ΩNumberCommandParameter, __ΩNumberCommandParameterConfig, __ΩSerializedCommandTree, __ΩSingleBooleanCommandParameter, __ΩSingleNumberCommandParameter, __ΩSingleStringCommandParameter, __ΩStringCommandParameter, __ΩStringCommandParameterConfig, __ΩVariadicBooleanCommandParameter, __ΩVariadicNumberCommandParameter, __ΩVariadicStringCommandParameter } from "./command.mjs";
|
|
3
|
+
import { __ΩEngineOptions, __ΩOptions, __ΩOutputConfig, __ΩReferenceOptions, __ΩResolvedConfig, __ΩUserConfig, __ΩUserConfigExport, __ΩUserConfigFn, __ΩUserConfigFnObject, __ΩUserConfigFnPromise } from "./config.mjs";
|
|
4
|
+
import { __ΩContext, __ΩExecutionContext, __ΩUnresolvedContext } from "./context.mjs";
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { __ΩAsCommandParameterConfig, __ΩBaseBooleanCommandParameter, __ΩBaseCommandOptions, __ΩBaseCommandParameter, __ΩBaseNumberCommandParameter, __ΩBaseSingleCommandParameter, __ΩBaseStringCommandParameter, __ΩBaseVariadicCommandParameter, __ΩBooleanCommandOption, __ΩBooleanCommandParameter, __ΩBooleanCommandParameterConfig, __ΩCommandArgument, __ΩCommandArgumentConfig, __ΩCommandBase, __ΩCommandConfig, __ΩCommandMetadata, __ΩCommandModule, __ΩCommandOption, __ΩCommandOptionConfig, __ΩCommandParameter, __ΩCommandParameterConfig, __ΩCommandParameterType, __ΩCommandTree, __ΩContext, __ΩEngineOptions, __ΩExecutionContext, __ΩNumberCommandParameter, __ΩNumberCommandParameterConfig, __ΩOptions, __ΩOutputConfig, __ΩReferenceOptions, __ΩResolvedConfig, __ΩSerializedCommandTree, __ΩSingleBooleanCommandParameter, __ΩSingleNumberCommandParameter, __ΩSingleStringCommandParameter, __ΩStringCommandParameter, __ΩStringCommandParameterConfig, __ΩUnresolvedContext, __ΩUserConfig, __ΩUserConfigExport, __ΩUserConfigFn, __ΩUserConfigFnObject, __ΩUserConfigFnPromise, __ΩVariadicBooleanCommandParameter, __ΩVariadicNumberCommandParameter, __ΩVariadicStringCommandParameter };
|
package/dist/types/options.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.cjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.cts","names":[],"sources":["../../src/types/options.ts"],"mappings":";UAkBiB,kBAAA;EACf,IAAA;EACA,
|
|
1
|
+
{"version":3,"file":"options.d.cts","names":[],"sources":["../../src/types/options.ts"],"mappings":";UAkBiB,kBAAA;EACf,IAAA;EACA,OAAO;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.mts","names":[],"sources":["../../src/types/options.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"options.d.mts","names":[],"sources":["../../src/types/options.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"options.mjs","names":[],"sources":[],"mappings":""}
|