@shell-shock/core 0.8.13 → 0.9.1
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 +34 -0
- package/dist/api.cjs.map +1 -1
- package/dist/api.mjs +34 -0
- package/dist/api.mjs.map +1 -1
- package/dist/components/docs.d.cts +5 -5
- package/dist/components/docs.d.cts.map +1 -1
- package/dist/components/docs.d.mts +5 -5
- package/dist/components/helpers.d.cts +6 -6
- package/dist/components/helpers.d.cts.map +1 -1
- package/dist/components/helpers.d.mts +6 -6
- package/dist/components/helpers.d.mts.map +1 -1
- package/dist/components/index.cjs +1 -0
- 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/components/options-parser-logic.d.cts +9 -9
- package/dist/components/options-parser-logic.d.mts +9 -9
- package/dist/components/options-parser-logic.d.mts.map +1 -1
- package/dist/components/usage.d.cts +2 -2
- package/dist/components/usage.d.mts +2 -2
- package/dist/components/utils-builtin.cjs +341 -0
- package/dist/components/utils-builtin.cjs.map +1 -1
- package/dist/components/utils-builtin.d.cts +12 -8
- package/dist/components/utils-builtin.d.cts.map +1 -1
- package/dist/components/utils-builtin.d.mts +5 -1
- package/dist/components/utils-builtin.d.mts.map +1 -1
- package/dist/components/utils-builtin.mjs +342 -2
- package/dist/components/utils-builtin.mjs.map +1 -1
- package/dist/config.cjs +12 -0
- package/dist/config.cjs.map +1 -1
- package/dist/config.mjs +12 -0
- package/dist/config.mjs.map +1 -1
- package/dist/contexts/command.cjs +3 -2
- package/dist/contexts/command.cjs.map +1 -1
- package/dist/contexts/command.mjs +3 -2
- package/dist/contexts/command.mjs.map +1 -1
- package/dist/contexts/options.cjs +20 -4
- package/dist/contexts/options.cjs.map +1 -1
- package/dist/contexts/options.mjs +20 -4
- package/dist/contexts/options.mjs.map +1 -1
- package/dist/helpers/docs-helpers.cjs +6 -0
- package/dist/helpers/docs-helpers.cjs.map +1 -1
- package/dist/helpers/docs-helpers.mjs +6 -0
- package/dist/helpers/docs-helpers.mjs.map +1 -1
- package/dist/helpers/persistence.cjs +92 -11
- package/dist/helpers/persistence.cjs.map +1 -1
- package/dist/helpers/persistence.mjs +92 -11
- package/dist/helpers/persistence.mjs.map +1 -1
- package/dist/helpers/resolve-command.cjs +200 -18
- package/dist/helpers/resolve-command.cjs.map +1 -1
- package/dist/helpers/resolve-command.mjs +201 -19
- package/dist/helpers/resolve-command.mjs.map +1 -1
- package/dist/helpers/update-package-json.cjs +27 -3
- package/dist/helpers/update-package-json.cjs.map +1 -1
- package/dist/helpers/update-package-json.mjs +27 -3
- package/dist/helpers/update-package-json.mjs.map +1 -1
- package/dist/helpers/utilities.cjs +58 -4
- package/dist/helpers/utilities.cjs.map +1 -1
- package/dist/helpers/utilities.mjs +58 -4
- package/dist/helpers/utilities.mjs.map +1 -1
- package/dist/helpers/validations.cjs +28 -1
- package/dist/helpers/validations.cjs.map +1 -1
- package/dist/helpers/validations.mjs +28 -1
- package/dist/helpers/validations.mjs.map +1 -1
- package/dist/index.cjs +33 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/dist/plugin-utils/context-helpers.cjs +78 -3
- package/dist/plugin-utils/context-helpers.cjs.map +1 -1
- package/dist/plugin-utils/context-helpers.mjs +78 -3
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/get-command-tree.cjs +17 -1
- package/dist/plugin-utils/get-command-tree.cjs.map +1 -1
- package/dist/plugin-utils/get-command-tree.mjs +17 -1
- package/dist/plugin-utils/get-command-tree.mjs.map +1 -1
- package/dist/plugin-utils/reflect.cjs +31 -3
- package/dist/plugin-utils/reflect.cjs.map +1 -1
- package/dist/plugin-utils/reflect.mjs +31 -3
- package/dist/plugin-utils/reflect.mjs.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.cjs +34 -4
- package/dist/plugin-utils/traverse-command-tree.cjs.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.mjs +34 -4
- package/dist/plugin-utils/traverse-command-tree.mjs.map +1 -1
- package/dist/plugin.cjs +5 -1
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.cts.map +1 -1
- package/dist/plugin.d.mts.map +1 -1
- package/dist/plugin.mjs +5 -1
- package/dist/plugin.mjs.map +1 -1
- package/dist/types/command.cjs +241 -0
- package/dist/types/command.cjs.map +1 -0
- package/dist/types/command.mjs +221 -1
- package/dist/types/command.mjs.map +1 -0
- package/dist/types/config.cjs +114 -0
- package/dist/types/config.cjs.map +1 -0
- package/dist/types/config.d.cts +11 -10
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +11 -10
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/config.mjs +110 -1
- package/dist/types/config.mjs.map +1 -0
- package/dist/types/context.cjs +33 -0
- package/dist/types/context.cjs.map +1 -0
- package/dist/types/context.mjs +31 -1
- package/dist/types/context.mjs.map +1 -0
- package/dist/types/env.cjs +12 -0
- package/dist/types/env.cjs.map +1 -0
- package/dist/types/env.d.cts +17 -0
- package/dist/types/env.d.cts.map +1 -0
- package/dist/types/env.d.mts +17 -0
- package/dist/types/env.d.mts.map +1 -0
- package/dist/types/env.mjs +11 -0
- package/dist/types/env.mjs.map +1 -0
- package/dist/types/index.cjs +34 -0
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.mjs +7 -1
- package/dist/types/options.cjs +12 -0
- package/dist/types/options.cjs.map +1 -0
- package/dist/types/options.mjs +11 -1
- package/dist/types/options.mjs.map +1 -0
- package/dist/types/runtime.cjs +12 -0
- package/dist/types/runtime.cjs.map +1 -0
- package/dist/types/runtime.mjs +11 -1
- package/dist/types/runtime.mjs.map +1 -0
- package/package.json +25 -11
package/dist/types/config.d.cts
CHANGED
|
@@ -2,15 +2,12 @@ import { CommandBase, CommandOption } from "./command.cjs";
|
|
|
2
2
|
import { Context } from "./context.cjs";
|
|
3
3
|
import { OutputConfig as OutputConfig$1 } from "powerlines/types/config";
|
|
4
4
|
import { AutoMDPluginResolvedConfig } from "@powerlines/plugin-automd/types/plugin";
|
|
5
|
-
import { NodeJsPluginResolvedConfig } from "@powerlines/plugin-nodejs/types/plugin";
|
|
5
|
+
import { NodeJsPluginOptions, NodeJsPluginResolvedConfig, NodeJsPluginUserConfig } from "@powerlines/plugin-nodejs/types/plugin";
|
|
6
6
|
import { TsdownPluginResolvedConfig, TsdownPluginUserConfig } from "@powerlines/plugin-tsdown/types/plugin";
|
|
7
7
|
|
|
8
8
|
//#region src/types/config.d.ts
|
|
9
|
-
type
|
|
10
|
-
|
|
11
|
-
* The plugin options for Shell Shock.
|
|
12
|
-
*/
|
|
13
|
-
type Options = Partial<BaseConfig> & {
|
|
9
|
+
type BuildOptions = Pick<TsdownPluginUserConfig, "root" | "name" | "title" | "description" | "logLevel" | "mode" | "skipCache" | "autoInstall" | "entry" | "plugins" | "tsconfig" | "tsconfigRaw">;
|
|
10
|
+
type BaseOptions = Partial<BuildOptions> & {
|
|
14
11
|
/**
|
|
15
12
|
* A set of default command options to apply to each command.
|
|
16
13
|
*
|
|
@@ -46,6 +43,10 @@ type Options = Partial<BaseConfig> & {
|
|
|
46
43
|
*/
|
|
47
44
|
envPrefix?: string;
|
|
48
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* The plugin options for Shell Shock.
|
|
48
|
+
*/
|
|
49
|
+
type Options = BaseOptions & NodeJsPluginOptions;
|
|
49
50
|
/**
|
|
50
51
|
* The output configuration options for Shell Shock.
|
|
51
52
|
*/
|
|
@@ -58,7 +59,7 @@ type OutputConfig = Pick<OutputConfig$1, "outputPath" | "assets" | "storage"> &
|
|
|
58
59
|
/**
|
|
59
60
|
* The user configuration options for Shell Shock.
|
|
60
61
|
*/
|
|
61
|
-
type UserConfig =
|
|
62
|
+
type UserConfig = BaseOptions & NodeJsPluginUserConfig & {
|
|
62
63
|
/**
|
|
63
64
|
* Configuration for the output of the build process
|
|
64
65
|
*/
|
|
@@ -67,7 +68,7 @@ type UserConfig = Options & {
|
|
|
67
68
|
/**
|
|
68
69
|
* The resolved configuration options for Shell Shock.
|
|
69
70
|
*/
|
|
70
|
-
type ResolvedConfig = TsdownPluginResolvedConfig &
|
|
71
|
+
type ResolvedConfig = TsdownPluginResolvedConfig & AutoMDPluginResolvedConfig & NodeJsPluginResolvedConfig & Required<Omit<Options, "bin">> & {
|
|
71
72
|
/**
|
|
72
73
|
* 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
|
*
|
|
@@ -82,8 +83,8 @@ type ResolvedConfig = TsdownPluginResolvedConfig & NodeJsPluginResolvedConfig &
|
|
|
82
83
|
/**
|
|
83
84
|
* The user configuration for the Shell Shock process.
|
|
84
85
|
*/
|
|
85
|
-
userConfig: UserConfig
|
|
86
|
+
userConfig: UserConfig;
|
|
86
87
|
};
|
|
87
88
|
//#endregion
|
|
88
|
-
export {
|
|
89
|
+
export { Options, OutputConfig, ResolvedConfig, UserConfig };
|
|
89
90
|
//# sourceMappingURL=config.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.cts","names":[],"sources":["../../src/types/config.ts"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"config.d.cts","names":[],"sources":["../../src/types/config.ts"],"sourcesContent":[],"mappings":";;;;;;;;KAgCK,YAAA,GAAe,KAClB;KAeG,WAAA,GAAc,QAAQ;EAhBtB;AAAmB;;;;;EAyBS,cAAA,CAAA,EAD3B,aAC2B,EAAA,GAAA,CAAA,CAAA,OAAA,EAAhB,OAAgB,EAAA,KAAA,EAAA,WAAA,EAAA,GAAgB,aAAhB,EAAA,CAAA,GAAA,KAAA;EAAgB;;AAqCjD;AAKA;AAaA;EAAyB,eAAA,CAAA,EAAA,OAAA;EACvB;;;AAUF;;;;;;;EAcS,GAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA;EAKO;;;;;;;;;;;;;;KAhDJ,OAAA,GAAU,cAAc;;;;KAKxB,YAAA,GAAe,KACzB;;;;;;;;;KAYU,UAAA,GAAa,cACvB;;;;WAIW;;;;;KAMD,cAAA,GAAiB,6BAC3B,6BACA,6BACA,SAAS,KAAK;;;;;;;;;;;OAWP;;;;cAKO"}
|
package/dist/types/config.d.mts
CHANGED
|
@@ -2,15 +2,12 @@ import { CommandBase, CommandOption } from "./command.mjs";
|
|
|
2
2
|
import { Context } from "./context.mjs";
|
|
3
3
|
import { OutputConfig as OutputConfig$1 } from "powerlines/types/config";
|
|
4
4
|
import { AutoMDPluginResolvedConfig } from "@powerlines/plugin-automd/types/plugin";
|
|
5
|
-
import { NodeJsPluginResolvedConfig } from "@powerlines/plugin-nodejs/types/plugin";
|
|
5
|
+
import { NodeJsPluginOptions, NodeJsPluginResolvedConfig, NodeJsPluginUserConfig } from "@powerlines/plugin-nodejs/types/plugin";
|
|
6
6
|
import { TsdownPluginResolvedConfig, TsdownPluginUserConfig } from "@powerlines/plugin-tsdown/types/plugin";
|
|
7
7
|
|
|
8
8
|
//#region src/types/config.d.ts
|
|
9
|
-
type
|
|
10
|
-
|
|
11
|
-
* The plugin options for Shell Shock.
|
|
12
|
-
*/
|
|
13
|
-
type Options = Partial<BaseConfig> & {
|
|
9
|
+
type BuildOptions = Pick<TsdownPluginUserConfig, "root" | "name" | "title" | "description" | "logLevel" | "mode" | "skipCache" | "autoInstall" | "entry" | "plugins" | "tsconfig" | "tsconfigRaw">;
|
|
10
|
+
type BaseOptions = Partial<BuildOptions> & {
|
|
14
11
|
/**
|
|
15
12
|
* A set of default command options to apply to each command.
|
|
16
13
|
*
|
|
@@ -46,6 +43,10 @@ type Options = Partial<BaseConfig> & {
|
|
|
46
43
|
*/
|
|
47
44
|
envPrefix?: string;
|
|
48
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* The plugin options for Shell Shock.
|
|
48
|
+
*/
|
|
49
|
+
type Options = BaseOptions & NodeJsPluginOptions;
|
|
49
50
|
/**
|
|
50
51
|
* The output configuration options for Shell Shock.
|
|
51
52
|
*/
|
|
@@ -58,7 +59,7 @@ type OutputConfig = Pick<OutputConfig$1, "outputPath" | "assets" | "storage"> &
|
|
|
58
59
|
/**
|
|
59
60
|
* The user configuration options for Shell Shock.
|
|
60
61
|
*/
|
|
61
|
-
type UserConfig =
|
|
62
|
+
type UserConfig = BaseOptions & NodeJsPluginUserConfig & {
|
|
62
63
|
/**
|
|
63
64
|
* Configuration for the output of the build process
|
|
64
65
|
*/
|
|
@@ -67,7 +68,7 @@ type UserConfig = Options & {
|
|
|
67
68
|
/**
|
|
68
69
|
* The resolved configuration options for Shell Shock.
|
|
69
70
|
*/
|
|
70
|
-
type ResolvedConfig = TsdownPluginResolvedConfig &
|
|
71
|
+
type ResolvedConfig = TsdownPluginResolvedConfig & AutoMDPluginResolvedConfig & NodeJsPluginResolvedConfig & Required<Omit<Options, "bin">> & {
|
|
71
72
|
/**
|
|
72
73
|
* 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
|
*
|
|
@@ -82,8 +83,8 @@ type ResolvedConfig = TsdownPluginResolvedConfig & NodeJsPluginResolvedConfig &
|
|
|
82
83
|
/**
|
|
83
84
|
* The user configuration for the Shell Shock process.
|
|
84
85
|
*/
|
|
85
|
-
userConfig: UserConfig
|
|
86
|
+
userConfig: UserConfig;
|
|
86
87
|
};
|
|
87
88
|
//#endregion
|
|
88
|
-
export {
|
|
89
|
+
export { Options, OutputConfig, ResolvedConfig, UserConfig };
|
|
89
90
|
//# sourceMappingURL=config.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.mts","names":[],"sources":["../../src/types/config.ts"],"sourcesContent":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"config.d.mts","names":[],"sources":["../../src/types/config.ts"],"sourcesContent":[],"mappings":";;;;;;;;KAgCK,YAAA,GAAe,KAClB;KAeG,WAAA,GAAc,QAAQ;EAhBtB;AAAmB;;;;;EAyBS,cAAA,CAAA,EAD3B,aAC2B,EAAA,GAAA,CAAA,CAAA,OAAA,EAAhB,OAAgB,EAAA,KAAA,EAAA,WAAA,EAAA,GAAgB,aAAhB,EAAA,CAAA,GAAA,KAAA;EAAgB;;AAqCjD;AAKA;AAaA;EAAyB,eAAA,CAAA,EAAA,OAAA;EACvB;;;AAUF;;;;;;;EAcS,GAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA;EAKO;;;;;;;;;;;;;;KAhDJ,OAAA,GAAU,cAAc;;;;KAKxB,YAAA,GAAe,KACzB;;;;;;;;;KAYU,UAAA,GAAa,cACvB;;;;WAIW;;;;;KAMD,cAAA,GAAiB,6BAC3B,6BACA,6BACA,SAAS,KAAK;;;;;;;;;;;OAWP;;;;cAKO"}
|
package/dist/types/config.mjs
CHANGED
|
@@ -1 +1,110 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/types/config.ts
|
|
2
|
+
const __ΩPick = [
|
|
3
|
+
"T",
|
|
4
|
+
"K",
|
|
5
|
+
"Pick",
|
|
6
|
+
"l+e#!e\"!fRb!b\"Pde\"\"N#!w#y"
|
|
7
|
+
];
|
|
8
|
+
const __ΩPartial = [
|
|
9
|
+
"T",
|
|
10
|
+
"Partial",
|
|
11
|
+
"l+e#!e\"!fRb!Pde\"!gN#\"w\"y"
|
|
12
|
+
];
|
|
13
|
+
const __ΩRequired = [
|
|
14
|
+
"T",
|
|
15
|
+
"Required",
|
|
16
|
+
"l+e#!e\"!fRb!Pde\"!gN##w\"y"
|
|
17
|
+
];
|
|
18
|
+
const __ΩOmit = [
|
|
19
|
+
"T",
|
|
20
|
+
"K",
|
|
21
|
+
() => __ΩPick,
|
|
22
|
+
() => __ΩExclude,
|
|
23
|
+
"Omit",
|
|
24
|
+
"b!b\"e!!e!!ge!\"o$#o##w%y"
|
|
25
|
+
];
|
|
26
|
+
const __ΩRecord = [
|
|
27
|
+
"K",
|
|
28
|
+
"T",
|
|
29
|
+
"Record",
|
|
30
|
+
"l'e#\"Rb!b\"Pde\"!N#!w#y"
|
|
31
|
+
];
|
|
32
|
+
const __ΩExclude = [
|
|
33
|
+
"T",
|
|
34
|
+
"U",
|
|
35
|
+
"Exclude",
|
|
36
|
+
"l6!Re$!RPe#!e$\"qk#%QRb!b\"Pde\"!p)w#y"
|
|
37
|
+
];
|
|
38
|
+
const __ΩBuildOptions = [
|
|
39
|
+
() => __ΩPick,
|
|
40
|
+
"root",
|
|
41
|
+
"name",
|
|
42
|
+
"title",
|
|
43
|
+
"description",
|
|
44
|
+
"logLevel",
|
|
45
|
+
"mode",
|
|
46
|
+
"skipCache",
|
|
47
|
+
"autoInstall",
|
|
48
|
+
"entry",
|
|
49
|
+
"plugins",
|
|
50
|
+
"tsconfig",
|
|
51
|
+
"tsconfigRaw",
|
|
52
|
+
"BuildOptions",
|
|
53
|
+
"!P.\".#.$.%.&.'.(.).*.+.,.-Jo!#w.y"
|
|
54
|
+
];
|
|
55
|
+
const __ΩBaseOptions = [
|
|
56
|
+
() => __ΩPartial,
|
|
57
|
+
() => __ΩBuildOptions,
|
|
58
|
+
"CommandOption",
|
|
59
|
+
"Context",
|
|
60
|
+
"context",
|
|
61
|
+
"CommandBase",
|
|
62
|
+
"input",
|
|
63
|
+
"",
|
|
64
|
+
false,
|
|
65
|
+
"defaultOptions",
|
|
66
|
+
"isCaseSensitive",
|
|
67
|
+
true,
|
|
68
|
+
"bin",
|
|
69
|
+
"envPrefix",
|
|
70
|
+
"BaseOptions",
|
|
71
|
+
"Pn\"o!\"PP\"w#FP\"w$2%\"w&2'\"w#F/(.)J4*8)4+8>,P&&FJ4-8&4.8MKw/y"
|
|
72
|
+
];
|
|
73
|
+
const __ΩOptions = [
|
|
74
|
+
() => __ΩBaseOptions,
|
|
75
|
+
"Options",
|
|
76
|
+
"Pn!!Kw\"y"
|
|
77
|
+
];
|
|
78
|
+
const __ΩOutputConfig = [
|
|
79
|
+
() => __ΩPick,
|
|
80
|
+
"outputPath",
|
|
81
|
+
"assets",
|
|
82
|
+
"storage",
|
|
83
|
+
false,
|
|
84
|
+
"dts",
|
|
85
|
+
"OutputConfig",
|
|
86
|
+
"P!P.\".#.$Jo!#P.%4&8MKw'y"
|
|
87
|
+
];
|
|
88
|
+
const __ΩUserConfig = [
|
|
89
|
+
() => __ΩBaseOptions,
|
|
90
|
+
() => __ΩOutputConfig,
|
|
91
|
+
"output",
|
|
92
|
+
"UserConfig",
|
|
93
|
+
"Pn!!Pn\"4#8MKw$y"
|
|
94
|
+
];
|
|
95
|
+
const __ΩResolvedConfig = [
|
|
96
|
+
() => __ΩRequired,
|
|
97
|
+
() => __ΩOmit,
|
|
98
|
+
() => __ΩOptions,
|
|
99
|
+
"bin",
|
|
100
|
+
() => __ΩRecord,
|
|
101
|
+
"bin",
|
|
102
|
+
() => __ΩUserConfig,
|
|
103
|
+
"userConfig",
|
|
104
|
+
"ResolvedConfig",
|
|
105
|
+
"P!!!n#.$o\"#o!\"P&&o%#4&n'4(MKw)y"
|
|
106
|
+
];
|
|
107
|
+
|
|
108
|
+
//#endregion
|
|
109
|
+
export { __ΩOptions, __ΩOutputConfig, __ΩResolvedConfig, __ΩUserConfig };
|
|
110
|
+
//# sourceMappingURL=config.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.mjs","names":[],"sources":["../../src/types/config.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { AutoMDPluginResolvedConfig } from \"@powerlines/plugin-automd/types/plugin\";\nimport type {\n NodeJsPluginOptions,\n NodeJsPluginResolvedConfig,\n NodeJsPluginUserConfig\n} from \"@powerlines/plugin-nodejs/types/plugin\";\nimport type {\n TsdownPluginResolvedConfig,\n TsdownPluginUserConfig\n} from \"@powerlines/plugin-tsdown/types/plugin\";\nimport type { OutputConfig as PowerlinesOutputConfig } from \"powerlines/types/config\";\nimport type { CommandBase, CommandOption } from \"./command\";\nimport type { Context } from \"./context\";\n\ntype BuildOptions = Pick<\n TsdownPluginUserConfig,\n | \"root\"\n | \"name\"\n | \"title\"\n | \"description\"\n | \"logLevel\"\n | \"mode\"\n | \"skipCache\"\n | \"autoInstall\"\n | \"entry\"\n | \"plugins\"\n | \"tsconfig\"\n | \"tsconfigRaw\"\n>;\n\ntype BaseOptions = Partial<BuildOptions> & {\n /**\n * A set of default command options to apply to each command.\n *\n * @remarks\n * To disable the addition of these default options, set this property to `false`, or provide a custom set of options/a function that returns them.\n */\n defaultOptions?:\n | CommandOption[]\n | ((context: Context, input: CommandBase) => CommandOption[])\n | false;\n\n /**\n * Determines whether commands and option names are treated as case-sensitive.\n *\n * @defaultValue `false`\n */\n isCaseSensitive?: boolean;\n\n /**\n * 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).\n *\n * @remarks\n * 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.\n *\n * @see https://docs.npmjs.com/cli/v11/configuring-npm/package-json#bin\n * @see https://yarnpkg.com/cli/bin\n * @see https://pnpm.io/package_json#bin\n */\n bin?: string | string[];\n\n /**\n * An application specific prefix to check for environment variables.\n *\n * @remarks\n * 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).\n *\n * @see https://medium.com/chingu/an-introduction-to-environment-variables-and-how-to-use-them-f602f66d15fa\n * @see https://stringcase.org/cases/constant/\n */\n envPrefix?: string;\n};\n\n/**\n * The plugin options for Shell Shock.\n */\nexport type Options = BaseOptions & NodeJsPluginOptions;\n\n/**\n * The output configuration options for Shell Shock.\n */\nexport type OutputConfig = Pick<\n PowerlinesOutputConfig,\n \"outputPath\" | \"assets\" | \"storage\"\n> & {\n /**\n * An indicator specifying whether to generate TypeScript declaration files (.d.ts) during the build process.\n */\n dts?: false;\n};\n\n/**\n * The user configuration options for Shell Shock.\n */\nexport type UserConfig = BaseOptions &\n NodeJsPluginUserConfig & {\n /**\n * Configuration for the output of the build process\n */\n output?: OutputConfig;\n };\n\n/**\n * The resolved configuration options for Shell Shock.\n */\nexport type ResolvedConfig = TsdownPluginResolvedConfig &\n AutoMDPluginResolvedConfig &\n NodeJsPluginResolvedConfig &\n Required<Omit<Options, \"bin\">> & {\n /**\n * 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).\n *\n * @remarks\n * 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.\n *\n * @see https://docs.npmjs.com/cli/v11/configuring-npm/package-json#bin\n * @see https://yarnpkg.com/cli/bin\n * @see https://pnpm.io/package_json#bin\n */\n bin: Record<string, string>;\n\n /**\n * The user configuration for the Shell Shock process.\n */\n userConfig: UserConfig;\n };\n"],"mappings":";AAAA,MAAM,UAAU;CAAC;CAAK;CAAK;CAAQ;CAA4B;;;;;;AAE/D,MAAM,cAAc;CAAC;CAAK;CAAY;CAAS;;;;;;;;;AAE/C,MAAM,YAAY;CAAC;CAAK;CAAK;CAAU;CAAyB;AAChE,MAAM,aAAa;CAAC;CAAK;CAAK;CAAW;CAA2B;AACpE,MAAM,kBAAkB;OAAO;CAAS;CAAQ;CAAQ;CAAS;CAAM;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;AACvE,MAAM,iBAAiB;OAAO;OAAkB;CAAiB;CAAa;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;CAAA;;;;;;AAG9E,MAAM,kBAAkB;OAAO;CAAS;CAAc;CAAU;CAAO;CAAA;CAAA;CAAA;CAAA;AAEvE,MAAM,gBAAgB;OAAO;OAAsB;CAAQ;CAAA;CAAA;CAAA;AAE3D,MAAM,oBAAoB;OAAO;OAAG;OAAA;CAAA;OAAA;CAAA;OAAA;CAAA;CAAA;CAAA;CAAA"}
|
package/dist/types/context.cjs
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/types/context.ts
|
|
3
|
+
const __ΩRecord = [
|
|
4
|
+
"K",
|
|
5
|
+
"T",
|
|
6
|
+
"Record",
|
|
7
|
+
"l'e#\"Rb!b\"Pde\"!N#!w#y"
|
|
8
|
+
];
|
|
9
|
+
const __ΩContext = [
|
|
10
|
+
"ResolvedConfig",
|
|
11
|
+
"TResolvedConfig",
|
|
12
|
+
"commandsPath",
|
|
13
|
+
"CommandOption",
|
|
14
|
+
"options",
|
|
15
|
+
"CommandInput",
|
|
16
|
+
"inputs",
|
|
17
|
+
() => __ΩRecord,
|
|
18
|
+
"CommandTree",
|
|
19
|
+
"commands",
|
|
20
|
+
"Context",
|
|
21
|
+
"\"w!c\"P!!P&4#\"w$F4%\"w&F4'&\"w)o(#4*MKw+y"
|
|
22
|
+
];
|
|
23
|
+
const __ΩUnresolvedContext = [
|
|
24
|
+
"ResolvedConfig",
|
|
25
|
+
"TResolvedConfig",
|
|
26
|
+
"UnresolvedContext",
|
|
27
|
+
"\"w!c\"!w#y"
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.__ΩContext = __ΩContext;
|
|
32
|
+
exports.__ΩUnresolvedContext = __ΩUnresolvedContext;
|
|
33
|
+
//# sourceMappingURL=context.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.cjs","names":[],"sources":["../../src/types/context.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { NodeJsPluginContext } from \"@powerlines/plugin-nodejs/types/plugin\";\nimport type { TsdownPluginContext } from \"@powerlines/plugin-tsdown/types/plugin\";\nimport type { UnresolvedContext as PowerlinesUnresolvedContext } from \"powerlines/types/context\";\nimport type { CommandInput, CommandOption, CommandTree } from \"./command\";\nimport type { ResolvedConfig } from \"./config\";\n\nexport type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> =\n TsdownPluginContext<TResolvedConfig> &\n NodeJsPluginContext<TResolvedConfig> & {\n /**\n * The root path where commands are located.\n */\n commandsPath: string;\n\n /**\n * The default command arguments to apply to all application commands.\n */\n options: CommandOption[];\n\n /**\n * The list of commands discovered in the project.\n */\n inputs: CommandInput[];\n\n /**\n * The command-line application structure.\n */\n commands: Record<string, CommandTree>;\n };\n\nexport type UnresolvedContext<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig\n> = PowerlinesUnresolvedContext<TResolvedConfig>;\n"],"mappings":";;AAAA,MAAM,YAAY;CAAC;CAAK;CAAK;CAAU;CAAyB"}
|
package/dist/types/context.mjs
CHANGED
|
@@ -1 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/types/context.ts
|
|
2
|
+
const __ΩRecord = [
|
|
3
|
+
"K",
|
|
4
|
+
"T",
|
|
5
|
+
"Record",
|
|
6
|
+
"l'e#\"Rb!b\"Pde\"!N#!w#y"
|
|
7
|
+
];
|
|
8
|
+
const __ΩContext = [
|
|
9
|
+
"ResolvedConfig",
|
|
10
|
+
"TResolvedConfig",
|
|
11
|
+
"commandsPath",
|
|
12
|
+
"CommandOption",
|
|
13
|
+
"options",
|
|
14
|
+
"CommandInput",
|
|
15
|
+
"inputs",
|
|
16
|
+
() => __ΩRecord,
|
|
17
|
+
"CommandTree",
|
|
18
|
+
"commands",
|
|
19
|
+
"Context",
|
|
20
|
+
"\"w!c\"P!!P&4#\"w$F4%\"w&F4'&\"w)o(#4*MKw+y"
|
|
21
|
+
];
|
|
22
|
+
const __ΩUnresolvedContext = [
|
|
23
|
+
"ResolvedConfig",
|
|
24
|
+
"TResolvedConfig",
|
|
25
|
+
"UnresolvedContext",
|
|
26
|
+
"\"w!c\"!w#y"
|
|
27
|
+
];
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { __ΩContext, __ΩUnresolvedContext };
|
|
31
|
+
//# sourceMappingURL=context.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.mjs","names":[],"sources":["../../src/types/context.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { NodeJsPluginContext } from \"@powerlines/plugin-nodejs/types/plugin\";\nimport type { TsdownPluginContext } from \"@powerlines/plugin-tsdown/types/plugin\";\nimport type { UnresolvedContext as PowerlinesUnresolvedContext } from \"powerlines/types/context\";\nimport type { CommandInput, CommandOption, CommandTree } from \"./command\";\nimport type { ResolvedConfig } from \"./config\";\n\nexport type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> =\n TsdownPluginContext<TResolvedConfig> &\n NodeJsPluginContext<TResolvedConfig> & {\n /**\n * The root path where commands are located.\n */\n commandsPath: string;\n\n /**\n * The default command arguments to apply to all application commands.\n */\n options: CommandOption[];\n\n /**\n * The list of commands discovered in the project.\n */\n inputs: CommandInput[];\n\n /**\n * The command-line application structure.\n */\n commands: Record<string, CommandTree>;\n };\n\nexport type UnresolvedContext<\n TResolvedConfig extends ResolvedConfig = ResolvedConfig\n> = PowerlinesUnresolvedContext<TResolvedConfig>;\n"],"mappings":";AAAA,MAAM,YAAY;CAAC;CAAK;CAAK;CAAU;CAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.cjs","names":[],"sources":["../../src/types/env.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport interface ShellShockEnv {\n /**\n * The system PATHEXT variable, used to determine which file extensions are considered executable on Windows.\n *\n * @remarks\n * If not provided, it will default to '.EXE;.CMD;.BAT;.COM' on Windows, and will be ignored on other platforms. This variable is used to locate executable files when running commands, and is only relevant on Windows platforms. On non-Windows platforms, the system's executable file resolution will be used, and this variable will have no effect.\n */\n PATHEXT?: string;\n\n /**\n * The system PATH variable, used to locate executable files.\n */\n PATH?: string;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/types/env.d.ts
|
|
2
|
+
interface ShellShockEnv {
|
|
3
|
+
/**
|
|
4
|
+
* The system PATHEXT variable, used to determine which file extensions are considered executable on Windows.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* If not provided, it will default to '.EXE;.CMD;.BAT;.COM' on Windows, and will be ignored on other platforms. This variable is used to locate executable files when running commands, and is only relevant on Windows platforms. On non-Windows platforms, the system's executable file resolution will be used, and this variable will have no effect.
|
|
8
|
+
*/
|
|
9
|
+
PATHEXT?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The system PATH variable, used to locate executable files.
|
|
12
|
+
*/
|
|
13
|
+
PATH?: string;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ShellShockEnv };
|
|
17
|
+
//# sourceMappingURL=env.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.cts","names":[],"sources":["../../src/types/env.ts"],"sourcesContent":[],"mappings":";UAkBiB,aAAA;EAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/types/env.d.ts
|
|
2
|
+
interface ShellShockEnv {
|
|
3
|
+
/**
|
|
4
|
+
* The system PATHEXT variable, used to determine which file extensions are considered executable on Windows.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* If not provided, it will default to '.EXE;.CMD;.BAT;.COM' on Windows, and will be ignored on other platforms. This variable is used to locate executable files when running commands, and is only relevant on Windows platforms. On non-Windows platforms, the system's executable file resolution will be used, and this variable will have no effect.
|
|
8
|
+
*/
|
|
9
|
+
PATHEXT?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The system PATH variable, used to locate executable files.
|
|
12
|
+
*/
|
|
13
|
+
PATH?: string;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ShellShockEnv };
|
|
17
|
+
//# sourceMappingURL=env.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.mts","names":[],"sources":["../../src/types/env.ts"],"sourcesContent":[],"mappings":";UAkBiB,aAAA;EAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.mjs","names":[],"sources":["../../src/types/env.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport interface ShellShockEnv {\n /**\n * The system PATHEXT variable, used to determine which file extensions are considered executable on Windows.\n *\n * @remarks\n * If not provided, it will default to '.EXE;.CMD;.BAT;.COM' on Windows, and will be ignored on other platforms. This variable is used to locate executable files when running commands, and is only relevant on Windows platforms. On non-Windows platforms, the system's executable file resolution will be used, and this variable will have no effect.\n */\n PATHEXT?: string;\n\n /**\n * The system PATH variable, used to locate executable files.\n */\n PATH?: string;\n}\n"],"mappings":""}
|
package/dist/types/index.cjs
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_types_command = require('./command.cjs');
|
|
2
|
+
const require_types_config = require('./config.cjs');
|
|
3
|
+
const require_types_context = require('./context.cjs');
|
|
4
|
+
const require_types_options = require('./options.cjs');
|
|
5
|
+
const require_types_runtime = require('./runtime.cjs');
|
|
6
|
+
|
|
7
|
+
exports.__ΩBaseCommandOptions = require_types_options.__ΩBaseCommandOptions;
|
|
8
|
+
exports.__ΩBaseCommandParameter = require_types_command.__ΩBaseCommandParameter;
|
|
9
|
+
exports.__ΩBooleanCommandArgument = require_types_command.__ΩBooleanCommandArgument;
|
|
10
|
+
exports.__ΩBooleanCommandOption = require_types_command.__ΩBooleanCommandOption;
|
|
11
|
+
exports.__ΩBooleanCommandParameter = require_types_command.__ΩBooleanCommandParameter;
|
|
12
|
+
exports.__ΩCommandArgument = require_types_command.__ΩCommandArgument;
|
|
13
|
+
exports.__ΩCommandBase = require_types_command.__ΩCommandBase;
|
|
14
|
+
exports.__ΩCommandContext = require_types_runtime.__ΩCommandContext;
|
|
15
|
+
exports.__ΩCommandInput = require_types_command.__ΩCommandInput;
|
|
16
|
+
exports.__ΩCommandModule = require_types_command.__ΩCommandModule;
|
|
17
|
+
exports.__ΩCommandOption = require_types_command.__ΩCommandOption;
|
|
18
|
+
exports.__ΩCommandTree = require_types_command.__ΩCommandTree;
|
|
19
|
+
exports.__ΩContext = require_types_context.__ΩContext;
|
|
20
|
+
exports.__ΩMetadata = require_types_command.__ΩMetadata;
|
|
21
|
+
exports.__ΩNumberCommandArgument = require_types_command.__ΩNumberCommandArgument;
|
|
22
|
+
exports.__ΩNumberCommandOption = require_types_command.__ΩNumberCommandOption;
|
|
23
|
+
exports.__ΩNumberCommandParameter = require_types_command.__ΩNumberCommandParameter;
|
|
24
|
+
exports.__ΩOptions = require_types_config.__ΩOptions;
|
|
25
|
+
exports.__ΩOutputConfig = require_types_config.__ΩOutputConfig;
|
|
26
|
+
exports.__ΩResolvedConfig = require_types_config.__ΩResolvedConfig;
|
|
27
|
+
exports.__ΩSerializedCommandArgument = require_types_command.__ΩSerializedCommandArgument;
|
|
28
|
+
exports.__ΩSerializedCommandOption = require_types_command.__ΩSerializedCommandOption;
|
|
29
|
+
exports.__ΩSerializedCommandTree = require_types_command.__ΩSerializedCommandTree;
|
|
30
|
+
exports.__ΩStringCommandArgument = require_types_command.__ΩStringCommandArgument;
|
|
31
|
+
exports.__ΩStringCommandOption = require_types_command.__ΩStringCommandOption;
|
|
32
|
+
exports.__ΩStringCommandParameter = require_types_command.__ΩStringCommandParameter;
|
|
33
|
+
exports.__ΩUnresolvedContext = require_types_context.__ΩUnresolvedContext;
|
|
34
|
+
exports.__ΩUserConfig = require_types_config.__ΩUserConfig;
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseCommandParameter, BooleanCommandArgument, BooleanCommandOption, BooleanCommandParameter, CommandArgument, CommandBase, CommandInput, CommandModule, CommandOption, CommandTree, Metadata, NumberCommandArgument, NumberCommandOption, NumberCommandParameter, SerializedCommandArgument, SerializedCommandOption, SerializedCommandTree, StringCommandArgument, StringCommandOption, StringCommandParameter } from "./command.cjs";
|
|
2
2
|
import { Context, UnresolvedContext } from "./context.cjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Options, OutputConfig, ResolvedConfig, UserConfig } from "./config.cjs";
|
|
4
4
|
import { BaseCommandOptions } from "./options.cjs";
|
|
5
5
|
import { CommandContext } from "./runtime.cjs";
|
|
6
|
-
export { BaseCommandOptions, BaseCommandParameter,
|
|
6
|
+
export { BaseCommandOptions, BaseCommandParameter, BooleanCommandArgument, BooleanCommandOption, BooleanCommandParameter, CommandArgument, CommandBase, CommandContext, CommandInput, CommandModule, CommandOption, CommandTree, Context, Metadata, NumberCommandArgument, NumberCommandOption, NumberCommandParameter, Options, OutputConfig, ResolvedConfig, SerializedCommandArgument, SerializedCommandOption, SerializedCommandTree, StringCommandArgument, StringCommandOption, StringCommandParameter, UnresolvedContext, UserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseCommandParameter, BooleanCommandArgument, BooleanCommandOption, BooleanCommandParameter, CommandArgument, CommandBase, CommandInput, CommandModule, CommandOption, CommandTree, Metadata, NumberCommandArgument, NumberCommandOption, NumberCommandParameter, SerializedCommandArgument, SerializedCommandOption, SerializedCommandTree, StringCommandArgument, StringCommandOption, StringCommandParameter } from "./command.mjs";
|
|
2
2
|
import { Context, UnresolvedContext } from "./context.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Options, OutputConfig, ResolvedConfig, UserConfig } from "./config.mjs";
|
|
4
4
|
import { BaseCommandOptions } from "./options.mjs";
|
|
5
5
|
import { CommandContext } from "./runtime.mjs";
|
|
6
|
-
export { BaseCommandOptions, BaseCommandParameter,
|
|
6
|
+
export { BaseCommandOptions, BaseCommandParameter, BooleanCommandArgument, BooleanCommandOption, BooleanCommandParameter, CommandArgument, CommandBase, CommandContext, CommandInput, CommandModule, CommandOption, CommandTree, Context, Metadata, NumberCommandArgument, NumberCommandOption, NumberCommandParameter, Options, OutputConfig, ResolvedConfig, SerializedCommandArgument, SerializedCommandOption, SerializedCommandTree, StringCommandArgument, StringCommandOption, StringCommandParameter, UnresolvedContext, UserConfig };
|
package/dist/types/index.mjs
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { __ΩBaseCommandParameter, __ΩBooleanCommandArgument, __ΩBooleanCommandOption, __ΩBooleanCommandParameter, __ΩCommandArgument, __ΩCommandBase, __ΩCommandInput, __ΩCommandModule, __ΩCommandOption, __ΩCommandTree, __ΩMetadata, __ΩNumberCommandArgument, __ΩNumberCommandOption, __ΩNumberCommandParameter, __ΩSerializedCommandArgument, __ΩSerializedCommandOption, __ΩSerializedCommandTree, __ΩStringCommandArgument, __ΩStringCommandOption, __ΩStringCommandParameter } from "./command.mjs";
|
|
2
|
+
import { __ΩOptions, __ΩOutputConfig, __ΩResolvedConfig, __ΩUserConfig } from "./config.mjs";
|
|
3
|
+
import { __ΩContext, __ΩUnresolvedContext } from "./context.mjs";
|
|
4
|
+
import { __ΩBaseCommandOptions } from "./options.mjs";
|
|
5
|
+
import { __ΩCommandContext } from "./runtime.mjs";
|
|
6
|
+
|
|
7
|
+
export { __ΩBaseCommandOptions, __ΩBaseCommandParameter, __ΩBooleanCommandArgument, __ΩBooleanCommandOption, __ΩBooleanCommandParameter, __ΩCommandArgument, __ΩCommandBase, __ΩCommandContext, __ΩCommandInput, __ΩCommandModule, __ΩCommandOption, __ΩCommandTree, __ΩContext, __ΩMetadata, __ΩNumberCommandArgument, __ΩNumberCommandOption, __ΩNumberCommandParameter, __ΩOptions, __ΩOutputConfig, __ΩResolvedConfig, __ΩSerializedCommandArgument, __ΩSerializedCommandOption, __ΩSerializedCommandTree, __ΩStringCommandArgument, __ΩStringCommandOption, __ΩStringCommandParameter, __ΩUnresolvedContext, __ΩUserConfig };
|
package/dist/types/options.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.cjs","names":[],"sources":["../../src/types/options.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport interface BaseCommandOptions {\n help: boolean;\n version: boolean;\n}\n"],"mappings":""}
|
package/dist/types/options.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.mjs","names":[],"sources":["../../src/types/options.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport interface BaseCommandOptions {\n help: boolean;\n version: boolean;\n}\n"],"mappings":""}
|
package/dist/types/runtime.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.cjs","names":[],"sources":["../../src/types/runtime.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport interface CommandContext {\n /**\n * The current command path within the runtime context.\n */\n path: string;\n\n /**\n * The individual segments that make up the path.\n */\n segments: string[];\n}\n"],"mappings":""}
|
package/dist/types/runtime.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.mjs","names":[],"sources":["../../src/types/runtime.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport interface CommandContext {\n /**\n * The current command path within the runtime context.\n */\n path: string;\n\n /**\n * The individual segments that make up the path.\n */\n segments: string[];\n}\n"],"mappings":""}
|