@shell-shock/core 0.2.1 → 0.4.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/README.md +1 -1
- package/dist/api.cjs +15 -3
- package/dist/api.cjs.map +1 -0
- package/dist/api.d.cts +9 -1
- package/dist/api.d.cts.map +1 -0
- package/dist/api.d.mts +9 -1
- package/dist/api.d.mts.map +1 -0
- package/dist/api.mjs +14 -3
- package/dist/api.mjs.map +1 -0
- package/dist/components/docs.cjs +175 -0
- package/dist/components/docs.cjs.map +1 -0
- package/dist/components/docs.d.cts +81 -0
- package/dist/components/docs.d.cts.map +1 -0
- package/dist/components/docs.d.mts +81 -0
- package/dist/components/docs.d.mts.map +1 -0
- package/dist/components/docs.mjs +171 -0
- package/dist/components/docs.mjs.map +1 -0
- package/dist/components/index.cjs +5 -6
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +2 -2
- package/dist/config.cjs +2 -1
- package/dist/config.cjs.map +1 -0
- package/dist/config.d.cts +2 -1
- package/dist/config.d.cts.map +1 -0
- package/dist/config.d.mts +2 -1
- package/dist/config.d.mts.map +1 -0
- package/dist/config.mjs +2 -1
- package/dist/config.mjs.map +1 -0
- package/dist/contexts/command.cjs +21 -0
- package/dist/contexts/command.cjs.map +1 -0
- package/dist/contexts/command.d.cts +18 -0
- package/dist/contexts/command.d.cts.map +1 -0
- package/dist/contexts/command.d.mts +18 -0
- package/dist/contexts/command.d.mts.map +1 -0
- package/dist/contexts/command.mjs +19 -0
- package/dist/contexts/command.mjs.map +1 -0
- package/dist/contexts/index.cjs +4 -0
- package/dist/contexts/index.d.cts +2 -0
- package/dist/contexts/index.d.mts +2 -0
- package/dist/contexts/index.mjs +3 -0
- package/dist/helpers/automd.cjs +59 -0
- package/dist/helpers/automd.cjs.map +1 -0
- package/dist/helpers/automd.mjs +58 -0
- package/dist/helpers/automd.mjs.map +1 -0
- package/dist/helpers/docs-helpers.cjs +17 -0
- package/dist/helpers/docs-helpers.cjs.map +1 -0
- package/dist/helpers/docs-helpers.mjs +16 -0
- package/dist/helpers/docs-helpers.mjs.map +1 -0
- package/dist/helpers/persistence.cjs +2 -1
- package/dist/helpers/persistence.cjs.map +1 -0
- package/dist/helpers/persistence.mjs +2 -1
- package/dist/helpers/persistence.mjs.map +1 -0
- package/dist/helpers/resolve-command.cjs +118 -33
- package/dist/helpers/resolve-command.cjs.map +1 -0
- package/dist/helpers/resolve-command.mjs +116 -32
- package/dist/helpers/resolve-command.mjs.map +1 -0
- package/dist/helpers/update-package-json.cjs +18 -10
- package/dist/helpers/update-package-json.cjs.map +1 -0
- package/dist/helpers/update-package-json.mjs +17 -10
- package/dist/helpers/update-package-json.mjs.map +1 -0
- package/dist/helpers/utilities.cjs +30 -30
- package/dist/helpers/utilities.cjs.map +1 -0
- package/dist/helpers/utilities.mjs +29 -28
- package/dist/helpers/utilities.mjs.map +1 -0
- package/dist/helpers/validations.cjs +97 -0
- package/dist/helpers/validations.cjs.map +1 -0
- package/dist/helpers/validations.mjs +97 -0
- package/dist/helpers/validations.mjs.map +1 -0
- package/dist/index.cjs +5 -13
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +6 -17
- package/dist/index.d.mts +6 -17
- package/dist/index.mjs +4 -13
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-utils/context-helpers.cjs +86 -0
- package/dist/plugin-utils/context-helpers.cjs.map +1 -0
- package/dist/plugin-utils/context-helpers.d.cts +58 -0
- package/dist/plugin-utils/context-helpers.d.cts.map +1 -0
- package/dist/plugin-utils/context-helpers.d.mts +58 -0
- package/dist/plugin-utils/context-helpers.d.mts.map +1 -0
- package/dist/plugin-utils/context-helpers.mjs +79 -0
- package/dist/plugin-utils/context-helpers.mjs.map +1 -0
- package/dist/plugin-utils/get-command-tree.cjs +4 -2
- package/dist/plugin-utils/get-command-tree.cjs.map +1 -0
- package/dist/plugin-utils/get-command-tree.d.cts +2 -1
- package/dist/plugin-utils/get-command-tree.d.cts.map +1 -0
- package/dist/plugin-utils/get-command-tree.d.mts +2 -1
- package/dist/plugin-utils/get-command-tree.d.mts.map +1 -0
- package/dist/plugin-utils/get-command-tree.mjs +5 -2
- package/dist/plugin-utils/get-command-tree.mjs.map +1 -0
- package/dist/plugin-utils/index.cjs +14 -1
- package/dist/plugin-utils/index.d.cts +4 -1
- package/dist/plugin-utils/index.d.mts +4 -1
- package/dist/plugin-utils/index.mjs +4 -1
- package/dist/plugin-utils/reflect.cjs +25 -0
- package/dist/plugin-utils/reflect.cjs.map +1 -0
- package/dist/plugin-utils/reflect.d.cts +14 -0
- package/dist/plugin-utils/reflect.d.cts.map +1 -0
- package/dist/plugin-utils/reflect.d.mts +14 -0
- package/dist/plugin-utils/reflect.d.mts.map +1 -0
- package/dist/plugin-utils/reflect.mjs +24 -0
- package/dist/plugin-utils/reflect.mjs.map +1 -0
- package/dist/plugin-utils/traverse-command-tree.cjs +33 -0
- package/dist/plugin-utils/traverse-command-tree.cjs.map +1 -0
- package/dist/plugin-utils/traverse-command-tree.d.cts +23 -0
- package/dist/plugin-utils/traverse-command-tree.d.cts.map +1 -0
- package/dist/plugin-utils/traverse-command-tree.d.mts +23 -0
- package/dist/plugin-utils/traverse-command-tree.d.mts.map +1 -0
- package/dist/plugin-utils/traverse-command-tree.mjs +31 -0
- package/dist/plugin-utils/traverse-command-tree.mjs.map +1 -0
- package/dist/plugin.cjs +284 -0
- package/dist/plugin.cjs.map +1 -0
- package/dist/plugin.d.cts +13 -0
- package/dist/plugin.d.cts.map +1 -0
- package/dist/plugin.d.mts +13 -0
- package/dist/plugin.d.mts.map +1 -0
- package/dist/plugin.mjs +276 -0
- package/dist/plugin.mjs.map +1 -0
- package/dist/types/command.d.cts +14 -4
- package/dist/types/command.d.cts.map +1 -0
- package/dist/types/command.d.mts +14 -4
- package/dist/types/command.d.mts.map +1 -0
- package/dist/types/config.d.cts +74 -10
- package/dist/types/config.d.cts.map +1 -0
- package/dist/types/config.d.mts +74 -10
- package/dist/types/config.d.mts.map +1 -0
- package/dist/types/context.d.cts +7 -4
- package/dist/types/context.d.cts.map +1 -0
- package/dist/types/context.d.mts +7 -4
- package/dist/types/context.d.mts.map +1 -0
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.mts +4 -4
- package/dist/types/internal.cjs +0 -0
- package/dist/types/internal.d.cts +24 -0
- package/dist/types/internal.d.cts.map +1 -0
- package/dist/types/internal.d.mts +24 -0
- package/dist/types/internal.d.mts.map +1 -0
- package/dist/types/internal.mjs +1 -0
- package/dist/types/options.d.cts +2 -1
- package/dist/types/options.d.cts.map +1 -0
- package/dist/types/options.d.mts +2 -1
- package/dist/types/options.d.mts.map +1 -0
- package/dist/types/runtime.cjs +0 -0
- package/dist/types/runtime.d.cts +24 -0
- package/dist/types/runtime.d.cts.map +1 -0
- package/dist/types/runtime.d.mts +24 -0
- package/dist/types/runtime.d.mts.map +1 -0
- package/dist/types/runtime.mjs +1 -0
- package/package.json +223 -91
- package/dist/components/utils-builtin.cjs +0 -453
- package/dist/components/utils-builtin.d.cts +0 -27
- package/dist/components/utils-builtin.d.mts +0 -27
- package/dist/components/utils-builtin.mjs +0 -447
- package/dist/powerlines.cjs +0 -172
- package/dist/powerlines.d.cts +0 -12
- package/dist/powerlines.d.mts +0 -12
- package/dist/powerlines.mjs +0 -168
package/dist/types/config.d.mts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { CommandBase, CommandOption } from "./command.mjs";
|
|
2
2
|
import { Context } from "./context.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { OutputConfig as OutputConfig$1 } from "powerlines/types/config";
|
|
4
|
+
import { AutoMDPluginResolvedConfig } from "@powerlines/plugin-automd/types/plugin";
|
|
5
|
+
import { NodeJsPluginResolvedConfig } from "@powerlines/plugin-nodejs/types/plugin";
|
|
6
|
+
import { TsdownPluginResolvedConfig, TsdownPluginUserConfig } from "@powerlines/plugin-tsdown/types/plugin";
|
|
5
7
|
|
|
6
8
|
//#region src/types/config.d.ts
|
|
7
|
-
|
|
9
|
+
type BaseConfig = Pick<TsdownPluginUserConfig, "root" | "name" | "title" | "description" | "logLevel" | "mode" | "skipCache" | "autoInstall" | "entry" | "plugins" | "tsconfig" | "tsconfigRaw">;
|
|
10
|
+
/**
|
|
11
|
+
* The plugin options for Shell Shock.
|
|
12
|
+
*/
|
|
13
|
+
type Options = Partial<BaseConfig> & {
|
|
8
14
|
/**
|
|
9
15
|
* A set of default command options to apply to each command.
|
|
10
16
|
*
|
|
@@ -13,13 +19,71 @@ interface Options extends NodeJsPluginOptions {
|
|
|
13
19
|
*/
|
|
14
20
|
defaultOptions?: CommandOption[] | ((context: Context, input: CommandBase) => CommandOption[]) | false;
|
|
15
21
|
/**
|
|
16
|
-
*
|
|
22
|
+
* Determines whether commands and option names are treated as case-sensitive.
|
|
23
|
+
*
|
|
24
|
+
* @defaultValue `false`
|
|
25
|
+
*/
|
|
26
|
+
isCaseSensitive?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The name of the binary (the {@link https://docs.npmjs.com/cli/v11/configuring-npm/package-json#bin | "bin" field} in package.json) that will be used to run the application through NodeJs package managers (e.g., npm, yarn, pnpm).
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* If an array is provided, each binary will be linked to the same compiled output file. If not provided, the {@link Options.name | name} option will be used.
|
|
32
|
+
*
|
|
33
|
+
* @see https://docs.npmjs.com/cli/v11/configuring-npm/package-json#bin
|
|
34
|
+
* @see https://yarnpkg.com/cli/bin
|
|
35
|
+
* @see https://pnpm.io/package_json#bin
|
|
17
36
|
*/
|
|
18
37
|
bin?: string | string[];
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
38
|
+
/**
|
|
39
|
+
* An application specific prefix to check for environment variables.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* If not provided, Shell Shock will convert {@link Options.name | name} to {@link https://stringcase.org/cases/constant/ | constant case} format and append an underscore (`_`). If the provided {@link Options.name | name} is `"my-app"`, environment variables starting with `"MY_APP_"` will be used - for example: `"MY_APP_CONFIG_NAME"`. If a trailing underscore already exists in the user provided value, it will result in two consecutive underscores - for example: `"MY_APP__CONFIG_NAME"` (this was done intentionally so that users who specifically want multiple underscores have a way to do so).
|
|
43
|
+
*
|
|
44
|
+
* @see https://medium.com/chingu/an-introduction-to-environment-variables-and-how-to-use-them-f602f66d15fa
|
|
45
|
+
* @see https://stringcase.org/cases/constant/
|
|
46
|
+
*/
|
|
47
|
+
envPrefix?: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* The output configuration options for Shell Shock.
|
|
51
|
+
*/
|
|
52
|
+
type OutputConfig = Pick<OutputConfig$1, "outputPath" | "assets" | "storage"> & {
|
|
53
|
+
/**
|
|
54
|
+
* An indicator specifying whether to generate TypeScript declaration files (.d.ts) during the build process.
|
|
55
|
+
*/
|
|
56
|
+
dts?: false;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* The user configuration options for Shell Shock.
|
|
60
|
+
*/
|
|
61
|
+
type UserConfig = Options & {
|
|
62
|
+
/**
|
|
63
|
+
* Configuration for the output of the build process
|
|
64
|
+
*/
|
|
65
|
+
output?: OutputConfig;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* The resolved configuration options for Shell Shock.
|
|
69
|
+
*/
|
|
70
|
+
type ResolvedConfig = TsdownPluginResolvedConfig & NodeJsPluginResolvedConfig & AutoMDPluginResolvedConfig & Required<Omit<Options, "bin">> & {
|
|
71
|
+
/**
|
|
72
|
+
* The name of the binary (the {@link https://docs.npmjs.com/cli/v11/configuring-npm/package-json#bin | "bin" field} in package.json) that will be used to run the application through NodeJs package managers (e.g., npm, yarn, pnpm).
|
|
73
|
+
*
|
|
74
|
+
* @remarks
|
|
75
|
+
* If an array is provided, each binary will be linked to the same compiled output file. If not provided, the {@link Options.name | name} option will be used.
|
|
76
|
+
*
|
|
77
|
+
* @see https://docs.npmjs.com/cli/v11/configuring-npm/package-json#bin
|
|
78
|
+
* @see https://yarnpkg.com/cli/bin
|
|
79
|
+
* @see https://pnpm.io/package_json#bin
|
|
80
|
+
*/
|
|
81
|
+
bin: Record<string, string>;
|
|
82
|
+
/**
|
|
83
|
+
* The user configuration for the Shell Shock process.
|
|
84
|
+
*/
|
|
85
|
+
userConfig: UserConfig & NodeJsPluginResolvedConfig;
|
|
86
|
+
};
|
|
24
87
|
//#endregion
|
|
25
|
-
export { Options, ResolvedConfig, UserConfig };
|
|
88
|
+
export { BaseConfig, Options, OutputConfig, ResolvedConfig, UserConfig };
|
|
89
|
+
//# sourceMappingURL=config.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.mts","names":[],"sources":["../../src/types/config.ts"],"sourcesContent":[],"mappings":";;;;;;;;KA4BY,UAAA,GAAa,KACvB;;AADF;AAmBA;AAA8B,KAAlB,OAAA,GAAU,OAAQ,CAAA,UAAA,CAAA,GAAA;EAAR;;;;;;EA8CV,cAAA,CAAY,EAtClB,aAuCJ,EAAA,GAAA,CAAA,CAAA,OADyB,EArCV,OAqCc,EAAA,KAAA,EArCE,WAqCF,EAAA,GArCkB,aAqClB,EAAA,CAAA,GAAA,KAAA;EAanB;AAUZ;;;;EAGgB,eAAA,CAAA,EAAA,OAAA;EAAL;;;;;;;;;;;;;;;;;;;;;;;;;KA1BC,YAAA,GAAe,KACzB;;;;;;;;;KAYU,UAAA,GAAa;;;;WAId;;;;;KAMC,cAAA,GAAiB,6BAC3B,6BACA,6BACA,SAAS,KAAK;;;;;;;;;;;OAWP;;;;cAKO,aAAa"}
|
package/dist/types/context.d.cts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { CommandInput, CommandOption, CommandTree } from "./command.cjs";
|
|
2
2
|
import { ResolvedConfig } from "./config.cjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { NodeJsPluginContext } from "@powerlines/plugin-nodejs/types/plugin";
|
|
4
|
+
import { TsdownPluginContext } from "@powerlines/plugin-tsdown/types/plugin";
|
|
5
|
+
import { UnresolvedContext as UnresolvedContext$1 } from "powerlines/types/context";
|
|
5
6
|
|
|
6
7
|
//#region src/types/context.d.ts
|
|
7
|
-
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = TsdownPluginContext<TResolvedConfig> &
|
|
8
|
+
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = TsdownPluginContext<TResolvedConfig> & NodeJsPluginContext<TResolvedConfig> & {
|
|
8
9
|
/**
|
|
9
10
|
* The root path where commands are located.
|
|
10
11
|
*/
|
|
@@ -22,5 +23,7 @@ type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = TsdownPl
|
|
|
22
23
|
*/
|
|
23
24
|
commands: Record<string, CommandTree>;
|
|
24
25
|
};
|
|
26
|
+
type UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnresolvedContext$1<TResolvedConfig>;
|
|
25
27
|
//#endregion
|
|
26
|
-
export { Context };
|
|
28
|
+
export { Context, UnresolvedContext };
|
|
29
|
+
//# sourceMappingURL=context.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.cts","names":[],"sources":["../../src/types/context.ts"],"sourcesContent":[],"mappings":";;;;;;;KAwBY,gCAAgC,iBAAiB,kBAC3D,oBAAoB,mBAClB,oBAAoB;;AAFxB;;EAA6D,YAAA,EAAA,MAAA;EACvC;;;EAClB,OAAA,EASW,aATX,EAAA;EASW;;;EAUC,MAAA,EALF,YAKE,EAAA;EAAM;AAGtB;;EAC2C,QAAA,EAJ3B,MAI2B,CAAA,MAAA,EAJZ,WAIY,CAAA;CACX;AAA5B,KAFQ,iBAER,CAAA,wBADsB,cACtB,GADuC,cACvC,CAAA,GAAA,mBAAA,CAA4B,eAA5B,CAAA"}
|
package/dist/types/context.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { CommandInput, CommandOption, CommandTree } from "./command.mjs";
|
|
2
2
|
import { ResolvedConfig } from "./config.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { NodeJsPluginContext } from "@powerlines/plugin-nodejs/types/plugin";
|
|
4
|
+
import { TsdownPluginContext } from "@powerlines/plugin-tsdown/types/plugin";
|
|
5
|
+
import { UnresolvedContext as UnresolvedContext$1 } from "powerlines/types/context";
|
|
5
6
|
|
|
6
7
|
//#region src/types/context.d.ts
|
|
7
|
-
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = TsdownPluginContext<TResolvedConfig> &
|
|
8
|
+
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = TsdownPluginContext<TResolvedConfig> & NodeJsPluginContext<TResolvedConfig> & {
|
|
8
9
|
/**
|
|
9
10
|
* The root path where commands are located.
|
|
10
11
|
*/
|
|
@@ -22,5 +23,7 @@ type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = TsdownPl
|
|
|
22
23
|
*/
|
|
23
24
|
commands: Record<string, CommandTree>;
|
|
24
25
|
};
|
|
26
|
+
type UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnresolvedContext$1<TResolvedConfig>;
|
|
25
27
|
//#endregion
|
|
26
|
-
export { Context };
|
|
28
|
+
export { Context, UnresolvedContext };
|
|
29
|
+
//# sourceMappingURL=context.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.mts","names":[],"sources":["../../src/types/context.ts"],"sourcesContent":[],"mappings":";;;;;;;KAwBY,gCAAgC,iBAAiB,kBAC3D,oBAAoB,mBAClB,oBAAoB;;AAFxB;;EAA6D,YAAA,EAAA,MAAA;EACvC;;;EAClB,OAAA,EASW,aATX,EAAA;EASW;;;EAUC,MAAA,EALF,YAKE,EAAA;EAAM;AAGtB;;EAC2C,QAAA,EAJ3B,MAI2B,CAAA,MAAA,EAJZ,WAIY,CAAA;CACX;AAA5B,KAFQ,iBAER,CAAA,wBADsB,cACtB,GADuC,cACvC,CAAA,GAAA,mBAAA,CAA4B,eAA5B,CAAA"}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseCommandOption, BooleanCommandOption, CommandBase, CommandInput, CommandOption, CommandParam, CommandTree, NumberCommandOption, SerializedCommandTree, StringCommandOption } from "./command.cjs";
|
|
2
|
-
import { Context } from "./context.cjs";
|
|
3
|
-
import { Options, ResolvedConfig, UserConfig } from "./config.cjs";
|
|
1
|
+
import { BaseCommandOption, BooleanCommandOption, CommandBase, CommandInput, CommandOption, CommandParam, CommandPath, CommandTree, CommandTreePath, NumberCommandOption, SerializedCommandTree, StringCommandOption } from "./command.cjs";
|
|
2
|
+
import { Context, UnresolvedContext } from "./context.cjs";
|
|
3
|
+
import { BaseConfig, Options, OutputConfig, ResolvedConfig, UserConfig } from "./config.cjs";
|
|
4
4
|
import { BaseCommandOptions } from "./options.cjs";
|
|
5
|
-
export { BaseCommandOption, BaseCommandOptions, BooleanCommandOption, CommandBase, CommandInput, CommandOption, CommandParam, CommandTree, Context, NumberCommandOption, Options, ResolvedConfig, SerializedCommandTree, StringCommandOption, UserConfig };
|
|
5
|
+
export { BaseCommandOption, BaseCommandOptions, BaseConfig, BooleanCommandOption, CommandBase, CommandInput, CommandOption, CommandParam, CommandPath, CommandTree, CommandTreePath, Context, NumberCommandOption, Options, OutputConfig, ResolvedConfig, SerializedCommandTree, StringCommandOption, UnresolvedContext, UserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseCommandOption, BooleanCommandOption, CommandBase, CommandInput, CommandOption, CommandParam, CommandTree, NumberCommandOption, SerializedCommandTree, StringCommandOption } from "./command.mjs";
|
|
2
|
-
import { Context } from "./context.mjs";
|
|
3
|
-
import { Options, ResolvedConfig, UserConfig } from "./config.mjs";
|
|
1
|
+
import { BaseCommandOption, BooleanCommandOption, CommandBase, CommandInput, CommandOption, CommandParam, CommandPath, CommandTree, CommandTreePath, NumberCommandOption, SerializedCommandTree, StringCommandOption } from "./command.mjs";
|
|
2
|
+
import { Context, UnresolvedContext } from "./context.mjs";
|
|
3
|
+
import { BaseConfig, Options, OutputConfig, ResolvedConfig, UserConfig } from "./config.mjs";
|
|
4
4
|
import { BaseCommandOptions } from "./options.mjs";
|
|
5
|
-
export { BaseCommandOption, BaseCommandOptions, BooleanCommandOption, CommandBase, CommandInput, CommandOption, CommandParam, CommandTree, Context, NumberCommandOption, Options, ResolvedConfig, SerializedCommandTree, StringCommandOption, UserConfig };
|
|
5
|
+
export { BaseCommandOption, BaseCommandOptions, BaseConfig, BooleanCommandOption, CommandBase, CommandInput, CommandOption, CommandParam, CommandPath, CommandTree, CommandTreePath, Context, NumberCommandOption, Options, OutputConfig, ResolvedConfig, SerializedCommandTree, StringCommandOption, UnresolvedContext, UserConfig };
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Context } from "./context.cjs";
|
|
2
|
+
import { ResolvedConfig } from "./config.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/types/internal.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* An internal representation of the plugin context, used for managing hooks and environment data.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
interface UNSAFE_ContextInternal {
|
|
12
|
+
id: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* An internal representation of the plugin context, used for managing hooks and environment data.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
interface UNSAFE_Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
20
|
+
$$internal: UNSAFE_ContextInternal;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { UNSAFE_Context, UNSAFE_ContextInternal };
|
|
24
|
+
//# sourceMappingURL=internal.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.cts","names":[],"sources":["../../src/types/internal.ts"],"sourcesContent":[],"mappings":";;;;;;;AA4BA;AASA;;AAC2C,UAV1B,sBAAA,CAU0B;EACzB,EAAA,EAAA,MAAA;;;;;;;UAFD,uCACS,iBAAiB,wBACjC,QAAQ;cACJ"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Context } from "./context.mjs";
|
|
2
|
+
import { ResolvedConfig } from "./config.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/types/internal.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* An internal representation of the plugin context, used for managing hooks and environment data.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
interface UNSAFE_ContextInternal {
|
|
12
|
+
id: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* An internal representation of the plugin context, used for managing hooks and environment data.
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
interface UNSAFE_Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends Context<TResolvedConfig> {
|
|
20
|
+
$$internal: UNSAFE_ContextInternal;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { UNSAFE_Context, UNSAFE_ContextInternal };
|
|
24
|
+
//# sourceMappingURL=internal.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.mts","names":[],"sources":["../../src/types/internal.ts"],"sourcesContent":[],"mappings":";;;;;;;AA4BA;AASA;;AAC2C,UAV1B,sBAAA,CAU0B;EACzB,EAAA,EAAA,MAAA;;;;;;;UAFD,uCACS,iBAAiB,wBACjC,QAAQ;cACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/types/options.d.cts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.cts","names":[],"sources":["../../src/types/options.ts"],"sourcesContent":[],"mappings":";UAkBiB,kBAAA;EAAA,IAAA,EAAA,OAAA"}
|
package/dist/types/options.d.mts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.mts","names":[],"sources":["../../src/types/options.ts"],"sourcesContent":[],"mappings":";UAkBiB,kBAAA;EAAA,IAAA,EAAA,OAAA"}
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/types/runtime.d.ts
|
|
2
|
+
interface RuntimePath {
|
|
3
|
+
/**
|
|
4
|
+
* The full path as a string value.
|
|
5
|
+
*/
|
|
6
|
+
value: string;
|
|
7
|
+
/**
|
|
8
|
+
* The individual segments that make up the path.
|
|
9
|
+
*/
|
|
10
|
+
segments: (string | string[])[];
|
|
11
|
+
}
|
|
12
|
+
interface RuntimeContext<TOptions extends Record<string, string | number | boolean | string[] | number[]> = Record<string, string | number | boolean | string[] | number[]>, TPath extends RuntimePath = RuntimePath> {
|
|
13
|
+
/**
|
|
14
|
+
* The parsed command-line options.
|
|
15
|
+
*/
|
|
16
|
+
options: TOptions;
|
|
17
|
+
/**
|
|
18
|
+
* The current command path within the runtime context.
|
|
19
|
+
*/
|
|
20
|
+
path: TPath;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { RuntimeContext, RuntimePath };
|
|
24
|
+
//# sourceMappingURL=runtime.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.cts","names":[],"sources":["../../src/types/runtime.ts"],"sourcesContent":[],"mappings":";UAkBiB,WAAA;EAAA;AAYjB;;EAIM,KAAA,EAAA,MAAA;EACU;;;EAUR,QAAA,EAAA,CAAA,MAAA,GAAA,MAAA,EAAA,CAAA,EAAA;;UAfS,gCACE,kEAGb,+EACU,cAAc;;;;WAKnB;;;;QAKH"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/types/runtime.d.ts
|
|
2
|
+
interface RuntimePath {
|
|
3
|
+
/**
|
|
4
|
+
* The full path as a string value.
|
|
5
|
+
*/
|
|
6
|
+
value: string;
|
|
7
|
+
/**
|
|
8
|
+
* The individual segments that make up the path.
|
|
9
|
+
*/
|
|
10
|
+
segments: (string | string[])[];
|
|
11
|
+
}
|
|
12
|
+
interface RuntimeContext<TOptions extends Record<string, string | number | boolean | string[] | number[]> = Record<string, string | number | boolean | string[] | number[]>, TPath extends RuntimePath = RuntimePath> {
|
|
13
|
+
/**
|
|
14
|
+
* The parsed command-line options.
|
|
15
|
+
*/
|
|
16
|
+
options: TOptions;
|
|
17
|
+
/**
|
|
18
|
+
* The current command path within the runtime context.
|
|
19
|
+
*/
|
|
20
|
+
path: TPath;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { RuntimeContext, RuntimePath };
|
|
24
|
+
//# sourceMappingURL=runtime.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.mts","names":[],"sources":["../../src/types/runtime.ts"],"sourcesContent":[],"mappings":";UAkBiB,WAAA;EAAA;AAYjB;;EAIM,KAAA,EAAA,MAAA;EACU;;;EAUR,QAAA,EAAA,CAAA,MAAA,GAAA,MAAA,EAAA,CAAA,EAAA;;UAfS,gCACE,kEAGb,+EACU,cAAc;;;;WAKnB;;;;QAKH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|