@shell-shock/core 0.17.21 → 0.17.23
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 +16 -7
- package/dist/api.cjs +4 -5
- package/dist/api.d.cts +1 -1
- package/dist/api.d.mts +1 -1
- package/dist/api.mjs +2 -2
- package/dist/command-B6KYexlV.d.mts +308 -0
- package/dist/command-B6KYexlV.d.mts.map +1 -0
- package/dist/command-CtfR7hKM.d.cts +308 -0
- package/dist/command-CtfR7hKM.d.cts.map +1 -0
- package/dist/components/command-validation-logic.cjs +153 -216
- package/dist/components/command-validation-logic.d.cts +2 -1
- package/dist/components/command-validation-logic.d.cts.map +1 -1
- package/dist/components/command-validation-logic.d.mts +2 -1
- package/dist/components/command-validation-logic.mjs +153 -214
- package/dist/components/docs.cjs +6 -364
- package/dist/components/docs.d.cts +2 -3
- package/dist/components/docs.d.cts.map +1 -1
- package/dist/components/docs.d.mts +2 -3
- package/dist/components/docs.mjs +2 -356
- package/dist/components/exec-builtin.cjs +63 -100
- 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.mjs +7 -41
- package/dist/components/helpers.cjs +2 -52
- package/dist/components/helpers.d.cts +2 -1
- package/dist/components/helpers.d.cts.map +1 -1
- package/dist/components/helpers.d.mts +2 -1
- package/dist/components/helpers.mjs +2 -50
- package/dist/components/index.cjs +7 -23
- package/dist/components/index.mjs +9 -9
- package/dist/components/options-parser-logic.cjs +198 -420
- package/dist/components/options-parser-logic.d.cts +2 -5
- package/dist/components/options-parser-logic.d.cts.map +1 -1
- package/dist/components/options-parser-logic.d.mts +2 -5
- package/dist/components/options-parser-logic.mjs +192 -407
- package/dist/components/state-builtin.cjs +106 -164
- package/dist/components/state-builtin.d.cts +1 -2
- package/dist/components/state-builtin.d.cts.map +1 -1
- package/dist/components/state-builtin.d.mts +1 -2
- package/dist/components/state-builtin.mjs +12 -68
- package/dist/components/usage.cjs +4 -48
- 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.mjs +4 -46
- package/dist/components/utils-builtin.cjs +77 -144
- package/dist/components/utils-builtin.d.cts +1 -2
- package/dist/components/utils-builtin.d.cts.map +1 -1
- package/dist/components/utils-builtin.d.mts +1 -2
- package/dist/components/utils-builtin.mjs +9 -74
- package/dist/config-BIF9mEz0.d.cts +157 -0
- package/dist/config-BIF9mEz0.d.cts.map +1 -0
- package/dist/config-CnNYdfsL.d.mts +157 -0
- package/dist/config-CnNYdfsL.d.mts.map +1 -0
- package/dist/config.cjs +24 -58
- package/dist/config.d.cts +1 -2
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +1 -2
- package/dist/config.mjs +23 -55
- package/dist/{plugin-utils/context-helpers.mjs → context-helpers-D3EJxwbq.mjs} +5 -83
- package/dist/context-helpers-D3EJxwbq.mjs.map +1 -0
- package/dist/{plugin-utils/context-helpers.cjs → context-helpers-_wUuFRB8.cjs} +63 -92
- package/dist/contexts/command.cjs +3 -9
- package/dist/contexts/command.d.cts +1 -2
- package/dist/contexts/command.d.cts.map +1 -1
- package/dist/contexts/command.d.mts +1 -2
- package/dist/contexts/command.mjs +2 -7
- package/dist/contexts/index.cjs +19 -1
- package/dist/contexts/index.d.cts +2 -1
- package/dist/contexts/index.d.mts +2 -1
- package/dist/contexts/index.mjs +2 -1
- package/dist/contexts/options.cjs +7 -30
- package/dist/contexts/options.d.cts +1 -2
- package/dist/contexts/options.d.cts.map +1 -1
- package/dist/contexts/options.d.mts +1 -2
- package/dist/contexts/options.mjs +7 -27
- package/dist/contexts/power-plant.cjs +19 -0
- package/dist/contexts/power-plant.d.cts +2 -0
- package/dist/contexts/power-plant.d.mts +2 -0
- package/dist/contexts/power-plant.mjs +5 -0
- package/dist/docs-C6ZvsVMu.cjs +278 -0
- package/dist/docs-CGQ2HtEY.mjs +249 -0
- package/dist/docs-CGQ2HtEY.mjs.map +1 -0
- package/dist/engine.cjs +5 -39
- package/dist/engine.d.cts +1 -2
- package/dist/engine.d.cts.map +1 -1
- package/dist/engine.d.mts +1 -2
- package/dist/engine.mjs +4 -37
- package/dist/generator.cjs +68 -0
- package/dist/generator.d.cts +15 -0
- package/dist/generator.d.cts.map +1 -0
- package/dist/generator.d.mts +15 -0
- package/dist/generator.d.mts.map +1 -0
- package/dist/generator.mjs +66 -0
- package/dist/generator.mjs.map +1 -0
- package/dist/{helpers/get-framework.cjs → get-framework-CxZc2krd.cjs} +7 -8
- package/dist/{helpers/get-framework.mjs → get-framework-Dlqz2hVZ.mjs} +3 -8
- package/dist/get-framework-Dlqz2hVZ.mjs.map +1 -0
- package/dist/helpers/power-plant.cjs +102 -0
- package/dist/helpers/power-plant.d.cts +61 -0
- package/dist/helpers/power-plant.d.cts.map +1 -0
- package/dist/helpers/power-plant.d.mts +61 -0
- package/dist/helpers/power-plant.d.mts.map +1 -0
- package/dist/helpers/power-plant.mjs +99 -0
- package/dist/helpers/power-plant.mjs.map +1 -0
- package/dist/index-D4klH_pj.d.mts +2 -0
- package/dist/index-DYOBadKY.d.cts +2 -0
- package/dist/index.cjs +1 -37
- package/dist/index.d.cts +4 -6
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -6
- package/dist/index.mjs +0 -35
- package/dist/package-B7Vu265G.mjs +6 -0
- package/dist/package-B7Vu265G.mjs.map +1 -0
- package/dist/{package.cjs → package-BLC4qc8t.cjs} +2 -4
- package/dist/plugin-B-hM2twc.mjs +1458 -0
- package/dist/plugin-B-hM2twc.mjs.map +1 -0
- package/dist/plugin-Bhfq0DMC.cjs +1490 -0
- package/dist/plugin-utils/index.cjs +359 -26
- package/dist/plugin-utils/index.d.cts +273 -9
- package/dist/plugin-utils/index.d.cts.map +1 -0
- package/dist/plugin-utils/index.d.mts +273 -9
- package/dist/plugin-utils/index.d.mts.map +1 -0
- package/dist/plugin-utils/index.mjs +346 -10
- package/dist/plugin-utils/index.mjs.map +1 -0
- package/dist/plugin.cjs +3 -496
- package/dist/plugin.d.cts +1 -3
- package/dist/plugin.d.cts.map +1 -1
- package/dist/plugin.d.mts +1 -3
- package/dist/plugin.mjs +2 -491
- package/dist/power-plant-LgxcvlMN.d.cts +4 -0
- package/dist/power-plant-LgxcvlMN.d.mts +4 -0
- package/dist/reflect-CSiffeL9.cjs +27 -0
- package/dist/reflect-DXKSFgvS.mjs +23 -0
- package/dist/reflect-DXKSFgvS.mjs.map +1 -0
- package/dist/schemas/env.cjs +91 -0
- package/dist/schemas/env.d.cts +145 -0
- package/dist/schemas/env.d.cts.map +1 -0
- package/dist/schemas/env.d.mts +145 -0
- package/dist/{types → schemas}/env.d.mts.map +1 -1
- package/dist/schemas/env.mjs +91 -0
- package/dist/schemas/index.cjs +4 -0
- package/dist/schemas/index.d.cts +2 -0
- package/dist/schemas/index.d.mts +2 -0
- package/dist/schemas/index.mjs +3 -0
- package/dist/types/command.cjs +0 -402
- package/dist/types/command.d.cts +2 -309
- package/dist/types/command.d.mts +2 -309
- package/dist/types/command.mjs +1 -368
- package/dist/types/config.cjs +0 -175
- package/dist/types/config.d.cts +2 -126
- package/dist/types/config.d.mts +2 -126
- package/dist/types/config.mjs +1 -164
- package/dist/types/context.cjs +0 -45
- package/dist/types/context.d.cts +2 -31
- package/dist/types/context.d.mts +2 -31
- package/dist/types/context.mjs +1 -41
- package/dist/types/index.cjs +3 -53
- package/dist/types/index.d.cts +4 -5
- package/dist/types/index.d.mts +4 -5
- package/dist/types/index.mjs +4 -5
- package/package.json +106 -42
- package/dist/_virtual/_rolldown/runtime.cjs +0 -29
- package/dist/api.cjs.map +0 -1
- package/dist/components/command-validation-logic.cjs.map +0 -1
- package/dist/components/docs.cjs.map +0 -1
- package/dist/components/docs.mjs.map +0 -1
- package/dist/components/exec-builtin.cjs.map +0 -1
- package/dist/components/helpers.cjs.map +0 -1
- package/dist/components/options-parser-logic.cjs.map +0 -1
- package/dist/components/state-builtin.cjs.map +0 -1
- package/dist/components/usage.cjs.map +0 -1
- package/dist/components/utils-builtin.cjs.map +0 -1
- package/dist/config.cjs.map +0 -1
- package/dist/contexts/command.cjs.map +0 -1
- package/dist/contexts/options.cjs.map +0 -1
- package/dist/engine.cjs.map +0 -1
- package/dist/helpers/automd.cjs +0 -193
- package/dist/helpers/automd.cjs.map +0 -1
- package/dist/helpers/automd.mjs +0 -190
- package/dist/helpers/automd.mjs.map +0 -1
- package/dist/helpers/docs-helpers.cjs +0 -24
- package/dist/helpers/docs-helpers.cjs.map +0 -1
- package/dist/helpers/docs-helpers.mjs +0 -24
- package/dist/helpers/docs-helpers.mjs.map +0 -1
- package/dist/helpers/get-framework.cjs.map +0 -1
- package/dist/helpers/get-framework.mjs.map +0 -1
- package/dist/helpers/paths.cjs +0 -137
- package/dist/helpers/paths.cjs.map +0 -1
- package/dist/helpers/paths.mjs +0 -134
- package/dist/helpers/paths.mjs.map +0 -1
- package/dist/helpers/persistence.cjs +0 -114
- package/dist/helpers/persistence.cjs.map +0 -1
- package/dist/helpers/persistence.mjs +0 -113
- package/dist/helpers/persistence.mjs.map +0 -1
- package/dist/helpers/update-package-json.cjs +0 -65
- package/dist/helpers/update-package-json.cjs.map +0 -1
- package/dist/helpers/update-package-json.mjs +0 -64
- package/dist/helpers/update-package-json.mjs.map +0 -1
- package/dist/helpers/utilities.cjs +0 -95
- package/dist/helpers/utilities.cjs.map +0 -1
- package/dist/helpers/utilities.mjs +0 -94
- package/dist/helpers/utilities.mjs.map +0 -1
- package/dist/helpers/validations.cjs +0 -71
- package/dist/helpers/validations.cjs.map +0 -1
- package/dist/helpers/validations.mjs +0 -70
- package/dist/helpers/validations.mjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/package.cjs.map +0 -1
- package/dist/package.mjs +0 -6
- package/dist/package.mjs.map +0 -1
- package/dist/plugin-utils/compute-bin.cjs +0 -49
- package/dist/plugin-utils/compute-bin.cjs.map +0 -1
- package/dist/plugin-utils/compute-bin.d.cts +0 -13
- package/dist/plugin-utils/compute-bin.d.cts.map +0 -1
- package/dist/plugin-utils/compute-bin.d.mts +0 -13
- package/dist/plugin-utils/compute-bin.d.mts.map +0 -1
- package/dist/plugin-utils/compute-bin.mjs +0 -49
- package/dist/plugin-utils/compute-bin.mjs.map +0 -1
- package/dist/plugin-utils/context-helpers.cjs.map +0 -1
- package/dist/plugin-utils/context-helpers.d.cts +0 -106
- package/dist/plugin-utils/context-helpers.d.cts.map +0 -1
- package/dist/plugin-utils/context-helpers.d.mts +0 -106
- package/dist/plugin-utils/context-helpers.d.mts.map +0 -1
- package/dist/plugin-utils/context-helpers.mjs.map +0 -1
- package/dist/plugin-utils/deepkit.cjs +0 -70
- package/dist/plugin-utils/deepkit.cjs.map +0 -1
- package/dist/plugin-utils/deepkit.d.cts +0 -23
- package/dist/plugin-utils/deepkit.d.cts.map +0 -1
- package/dist/plugin-utils/deepkit.d.mts +0 -23
- package/dist/plugin-utils/deepkit.d.mts.map +0 -1
- package/dist/plugin-utils/deepkit.mjs +0 -69
- package/dist/plugin-utils/deepkit.mjs.map +0 -1
- package/dist/plugin-utils/description-helpers.cjs +0 -112
- package/dist/plugin-utils/description-helpers.cjs.map +0 -1
- package/dist/plugin-utils/description-helpers.d.cts +0 -44
- package/dist/plugin-utils/description-helpers.d.cts.map +0 -1
- package/dist/plugin-utils/description-helpers.d.mts +0 -44
- package/dist/plugin-utils/description-helpers.d.mts.map +0 -1
- package/dist/plugin-utils/description-helpers.mjs +0 -108
- package/dist/plugin-utils/description-helpers.mjs.map +0 -1
- package/dist/plugin-utils/get-command-tree.cjs +0 -118
- package/dist/plugin-utils/get-command-tree.cjs.map +0 -1
- package/dist/plugin-utils/get-command-tree.d.cts +0 -36
- package/dist/plugin-utils/get-command-tree.d.cts.map +0 -1
- package/dist/plugin-utils/get-command-tree.d.mts +0 -36
- package/dist/plugin-utils/get-command-tree.d.mts.map +0 -1
- package/dist/plugin-utils/get-command-tree.mjs +0 -115
- package/dist/plugin-utils/get-command-tree.mjs.map +0 -1
- package/dist/plugin-utils/reflect.cjs +0 -54
- package/dist/plugin-utils/reflect.cjs.map +0 -1
- package/dist/plugin-utils/reflect.d.cts +0 -14
- package/dist/plugin-utils/reflect.d.cts.map +0 -1
- package/dist/plugin-utils/reflect.d.mts +0 -14
- package/dist/plugin-utils/reflect.d.mts.map +0 -1
- package/dist/plugin-utils/reflect.mjs +0 -53
- package/dist/plugin-utils/reflect.mjs.map +0 -1
- package/dist/plugin-utils/traverse-command-tree.cjs +0 -65
- package/dist/plugin-utils/traverse-command-tree.cjs.map +0 -1
- package/dist/plugin-utils/traverse-command-tree.d.cts +0 -22
- package/dist/plugin-utils/traverse-command-tree.d.cts.map +0 -1
- package/dist/plugin-utils/traverse-command-tree.d.mts +0 -22
- package/dist/plugin-utils/traverse-command-tree.d.mts.map +0 -1
- package/dist/plugin-utils/traverse-command-tree.mjs +0 -63
- package/dist/plugin-utils/traverse-command-tree.mjs.map +0 -1
- package/dist/plugin-utils/type-checks.cjs +0 -222
- package/dist/plugin-utils/type-checks.cjs.map +0 -1
- package/dist/plugin-utils/type-checks.d.cts +0 -41
- package/dist/plugin-utils/type-checks.d.cts.map +0 -1
- package/dist/plugin-utils/type-checks.d.mts +0 -41
- package/dist/plugin-utils/type-checks.d.mts.map +0 -1
- package/dist/plugin-utils/type-checks.mjs +0 -218
- package/dist/plugin-utils/type-checks.mjs.map +0 -1
- package/dist/plugin.cjs.map +0 -1
- package/dist/plugin.mjs.map +0 -1
- package/dist/resolver/deepkit.cjs +0 -110
- package/dist/resolver/deepkit.cjs.map +0 -1
- package/dist/resolver/deepkit.mjs +0 -109
- package/dist/resolver/deepkit.mjs.map +0 -1
- package/dist/resolver/helpers.cjs +0 -184
- package/dist/resolver/helpers.cjs.map +0 -1
- package/dist/resolver/helpers.mjs +0 -180
- package/dist/resolver/helpers.mjs.map +0 -1
- package/dist/resolver/resolve.cjs +0 -473
- package/dist/resolver/resolve.cjs.map +0 -1
- package/dist/resolver/resolve.mjs +0 -473
- package/dist/resolver/resolve.mjs.map +0 -1
- package/dist/types/command.cjs.map +0 -1
- package/dist/types/command.d.cts.map +0 -1
- package/dist/types/command.d.mts.map +0 -1
- package/dist/types/command.mjs.map +0 -1
- package/dist/types/config.cjs.map +0 -1
- package/dist/types/config.d.cts.map +0 -1
- package/dist/types/config.d.mts.map +0 -1
- package/dist/types/config.mjs.map +0 -1
- package/dist/types/context.cjs.map +0 -1
- package/dist/types/context.d.cts.map +0 -1
- package/dist/types/context.d.mts.map +0 -1
- package/dist/types/context.mjs.map +0 -1
- package/dist/types/env.cjs +0 -53
- package/dist/types/env.cjs.map +0 -1
- package/dist/types/env.d.cts +0 -71
- package/dist/types/env.d.cts.map +0 -1
- package/dist/types/env.d.mts +0 -71
- package/dist/types/env.mjs +0 -51
- /package/dist/{types → schemas}/env.mjs.map +0 -0
package/dist/plugin.cjs
CHANGED
|
@@ -1,498 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const
|
|
3
|
-
const require_context_helpers = require('./plugin-utils/context-helpers.cjs');
|
|
4
|
-
const require_components_docs = require('./components/docs.cjs');
|
|
5
|
-
const require_components_exec_builtin = require('./components/exec-builtin.cjs');
|
|
6
|
-
const require_traverse_command_tree = require('./plugin-utils/traverse-command-tree.cjs');
|
|
7
|
-
const require_get_command_tree = require('./plugin-utils/get-command-tree.cjs');
|
|
8
|
-
const require_components_state_builtin = require('./components/state-builtin.cjs');
|
|
9
|
-
const require_components_utils_builtin = require('./components/utils-builtin.cjs');
|
|
10
|
-
const require_automd = require('./helpers/automd.cjs');
|
|
11
|
-
const require_get_framework = require('./helpers/get-framework.cjs');
|
|
12
|
-
const require_paths = require('./helpers/paths.cjs');
|
|
13
|
-
const require_persistence = require('./helpers/persistence.cjs');
|
|
14
|
-
const require_update_package_json = require('./helpers/update-package-json.cjs');
|
|
15
|
-
const require_utilities = require('./helpers/utilities.cjs');
|
|
16
|
-
const require_validations = require('./helpers/validations.cjs');
|
|
17
|
-
const require_resolve = require('./resolver/resolve.cjs');
|
|
18
|
-
let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
19
|
-
let _alloy_js_core = require("@alloy-js/core");
|
|
20
|
-
let _powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
|
|
21
|
-
let _powerlines_plugin_automd = require("@powerlines/plugin-automd");
|
|
22
|
-
_powerlines_plugin_automd = require_runtime.__toESM(_powerlines_plugin_automd, 1);
|
|
23
|
-
let _powerlines_plugin_env_helpers_schema = require("@powerlines/plugin-env/helpers/schema");
|
|
24
|
-
let _powerlines_plugin_nodejs = require("@powerlines/plugin-nodejs");
|
|
25
|
-
_powerlines_plugin_nodejs = require_runtime.__toESM(_powerlines_plugin_nodejs, 1);
|
|
26
|
-
let _powerlines_plugin_tsdown = require("@powerlines/plugin-tsdown");
|
|
27
|
-
_powerlines_plugin_tsdown = require_runtime.__toESM(_powerlines_plugin_tsdown, 1);
|
|
28
|
-
let _powerlines_schema = require("@powerlines/schema");
|
|
29
|
-
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
30
|
-
let _stryke_fs_chmod_x = require("@stryke/fs/chmod-x");
|
|
31
|
-
let _stryke_path_append = require("@stryke/path/append");
|
|
32
|
-
let _stryke_path_find = require("@stryke/path/find");
|
|
33
|
-
let _stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
|
|
34
|
-
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
35
|
-
let _stryke_path_replace = require("@stryke/path/replace");
|
|
36
|
-
let _stryke_path_resolve_parent_path = require("@stryke/path/resolve-parent-path");
|
|
37
|
-
let _stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
38
|
-
let _stryke_string_format_constant_case = require("@stryke/string-format/constant-case");
|
|
39
|
-
let _stryke_string_format_kebab_case = require("@stryke/string-format/kebab-case");
|
|
40
|
-
let _stryke_type_checks_is_object = require("@stryke/type-checks/is-object");
|
|
41
|
-
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
42
|
-
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
43
|
-
let defu = require("defu");
|
|
44
|
-
let powerlines = require("powerlines");
|
|
45
|
-
let powerlines_utils = require("powerlines/utils");
|
|
2
|
+
const require_plugin = require('./plugin-Bhfq0DMC.cjs');
|
|
46
3
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
fn.__type = args;
|
|
50
|
-
return fn;
|
|
51
|
-
}
|
|
52
|
-
const MAX_DEPTH = 50;
|
|
53
|
-
/**
|
|
54
|
-
* The core Powerlines plugin to build Shell Shock projects.
|
|
55
|
-
*/
|
|
56
|
-
const plugin = __assignType((options$1 = {}) => {
|
|
57
|
-
return [
|
|
58
|
-
(_powerlines_plugin_tsdown.default.Ω = [["Context", "\"w!"]], (0, _powerlines_plugin_tsdown.default)()),
|
|
59
|
-
(_powerlines_plugin_automd.default.Ω = [["Context", "\"w!"]], (0, _powerlines_plugin_automd.default)()),
|
|
60
|
-
{
|
|
61
|
-
name: "shell-shock/core:config",
|
|
62
|
-
config: __assignType(async function config() {
|
|
63
|
-
this.debug("Resolving the Shell Shock configuration.");
|
|
64
|
-
return (0, defu.defu)(options$1, {
|
|
65
|
-
name: require_context_helpers.getAppName(this),
|
|
66
|
-
title: require_context_helpers.getAppTitle(this),
|
|
67
|
-
description: require_context_helpers.getAppDescription(this),
|
|
68
|
-
platform: "node",
|
|
69
|
-
projectType: "application",
|
|
70
|
-
framework: require_get_framework.getFramework(),
|
|
71
|
-
isCaseSensitive: false,
|
|
72
|
-
output: {
|
|
73
|
-
format: "esm",
|
|
74
|
-
dts: false
|
|
75
|
-
},
|
|
76
|
-
input: !this.config.input || Array.isArray(this.config.input) && this.config.input.length === 0 || (0, _stryke_type_checks_is_object.isObject)(this.config.input) && Object.keys(this.config.input).length === 0 ? ["src/**/command.ts", "src/**/command.tsx"] : void 0,
|
|
77
|
-
resolve: {
|
|
78
|
-
external: ["@powerlines/deepkit"],
|
|
79
|
-
skipNodeModulesBundle: true
|
|
80
|
-
},
|
|
81
|
-
tsdown: {
|
|
82
|
-
dts: false,
|
|
83
|
-
nodeProtocol: true,
|
|
84
|
-
unbundle: false
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
}, ["config", "P\"/!"]),
|
|
88
|
-
configResolved: {
|
|
89
|
-
order: "pre",
|
|
90
|
-
async handler() {
|
|
91
|
-
this.debug("Shell Shock configuration has been resolved.");
|
|
92
|
-
await require_update_package_json.updatePackageJsonBinary(this);
|
|
93
|
-
this.config.appSpecificEnvPrefix = (0, _stryke_type_checks_is_set_string.isSetString)(this.config.autoAssignEnv) ? this.config.autoAssignEnv : (0, _stryke_string_format_constant_case.constantCase)(require_context_helpers.getAppName(this));
|
|
94
|
-
if (!this.config.env.prefix || !Array.isArray(this.config.env.prefix)) this.config.env.prefix = (0, _stryke_convert_to_array.toArray)(this.config.env.prefix);
|
|
95
|
-
if (!this.config.env.prefix.includes(this.config.appSpecificEnvPrefix)) this.config.env.prefix.push(this.config.appSpecificEnvPrefix);
|
|
96
|
-
this.config.bin = ((0, _stryke_type_checks_is_set_string.isSetString)(this.packageJson.bin) ? { [(0, _stryke_string_format_kebab_case.kebabCase)(this.config.name)]: this.packageJson.bin } : this.packageJson.bin) ?? { [(0, _stryke_string_format_kebab_case.kebabCase)(this.config.name)]: require_update_package_json.formatBinaryPath(this.config.output.format) };
|
|
97
|
-
if ((0, _stryke_type_checks_is_set_string.isSetString)(this.config.docs)) {
|
|
98
|
-
const docsWithoutCommandPath = this.config.docs.replace(/\/?\{(?:command|cmd)\}.*$/, "");
|
|
99
|
-
this.config.docs = {
|
|
100
|
-
commands: this.config.docs,
|
|
101
|
-
app: this.config.docs.endsWith("/") ? docsWithoutCommandPath.endsWith("/") ? docsWithoutCommandPath : `${docsWithoutCommandPath}/` : docsWithoutCommandPath
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
this.inputs ??= [];
|
|
105
|
-
this.globalOptions = Object.values(require_utilities.getGlobalOptions(this, {
|
|
106
|
-
id: null,
|
|
107
|
-
name: this.config.name,
|
|
108
|
-
path: null,
|
|
109
|
-
segments: [],
|
|
110
|
-
title: this.config.title,
|
|
111
|
-
description: this.config.description,
|
|
112
|
-
alias: [],
|
|
113
|
-
virtual: false
|
|
114
|
-
})).map(__assignType((option) => ({
|
|
115
|
-
...option,
|
|
116
|
-
name: (0, _stryke_string_format_camel_case.camelCase)(option.name),
|
|
117
|
-
alias: option.alias ?? [],
|
|
118
|
-
required: option.required ?? true
|
|
119
|
-
}), [
|
|
120
|
-
"option",
|
|
121
|
-
"",
|
|
122
|
-
"P\"2!\"/\""
|
|
123
|
-
]));
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
...(_powerlines_plugin_nodejs.default.Ω = [["Context", "\"w!"]], (0, _powerlines_plugin_nodejs.default)((0, defu.defu)(options$1 ?? {}, { env: {
|
|
128
|
-
config: "@shell-shock/core/types/env#ShellShockEnv",
|
|
129
|
-
validate: false
|
|
130
|
-
} }))),
|
|
131
|
-
{
|
|
132
|
-
name: "shell-shock/core:inputs",
|
|
133
|
-
async configResolved() {
|
|
134
|
-
const toInputLocation = __assignType((value) => {
|
|
135
|
-
if ((0, _stryke_type_checks_is_set_string.isSetString)(value)) return value;
|
|
136
|
-
if ((0, _stryke_type_checks_is_set_object.isSetObject)(value) && (0, powerlines.isFileReference)(value)) return String(value.file);
|
|
137
|
-
return null;
|
|
138
|
-
}, [
|
|
139
|
-
"value",
|
|
140
|
-
"",
|
|
141
|
-
"P#2!P&,J/\""
|
|
142
|
-
]);
|
|
143
|
-
const configuredInputs = [];
|
|
144
|
-
if (Array.isArray(this.config.input)) configuredInputs.push(...this.config.input.map(toInputLocation).filter(__assignType((value) => (0, _stryke_type_checks_is_set_string.isSetString)(value), [
|
|
145
|
-
"value",
|
|
146
|
-
"",
|
|
147
|
-
"P\"2!!/\""
|
|
148
|
-
])));
|
|
149
|
-
else if ((0, _stryke_type_checks_is_set_string.isSetString)(this.config.input)) configuredInputs.push(this.config.input);
|
|
150
|
-
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(this.config.input) && (0, powerlines.isFileReference)(this.config.input)) configuredInputs.push(String(this.config.input.file));
|
|
151
|
-
else if ((0, _stryke_type_checks_is_set_object.isSetObject)(this.config.input)) configuredInputs.push(...Object.values(this.config.input).map(toInputLocation).filter(__assignType((value) => (0, _stryke_type_checks_is_set_string.isSetString)(value), [
|
|
152
|
-
"value",
|
|
153
|
-
"",
|
|
154
|
-
"P\"2!!/\""
|
|
155
|
-
])));
|
|
156
|
-
this.debug(configuredInputs.length <= 1 ? `Checking for command modules in the following location: ${configuredInputs[0] ?? "(none configured)"}.` : `Checking for command modules in the following locations:\n${configuredInputs.map(__assignType((input) => ` - ${input}`, [
|
|
157
|
-
"input",
|
|
158
|
-
"",
|
|
159
|
-
"P\"2!\"/\""
|
|
160
|
-
])).join("\n")}`);
|
|
161
|
-
this.commandsPath = await require_paths.findCommandsRoot(this);
|
|
162
|
-
this.debug(`Resolved commands root path: ${this.commandsPath}`);
|
|
163
|
-
const inputs = await (0, powerlines_utils.resolveInputs)(this, this.config.input);
|
|
164
|
-
this.debug(`Found ${inputs.length} entry points specified in the configuration options.`);
|
|
165
|
-
this.inputs = inputs.reduce(__assignType((ret, entry) => {
|
|
166
|
-
if (entry.file !== this.commandsPath && !(0, _stryke_path_is_parent_path.isParentPath)(entry.file, this.commandsPath)) throw new Error(`Command entry point "${entry.file}" is not located within the commands root "${this.commandsPath}". Please ensure that all command entry points are located within the current project.`);
|
|
167
|
-
const id = require_paths.resolveCommandId(this, entry.file);
|
|
168
|
-
if (!ret.some(__assignType((existing) => existing.id === id, [
|
|
169
|
-
"existing",
|
|
170
|
-
"",
|
|
171
|
-
"P\"2!\"/\""
|
|
172
|
-
]))) {
|
|
173
|
-
const name = require_paths.resolveCommandName(entry.file);
|
|
174
|
-
let segments = require_paths.resolveCommandPath(this, entry.file).split("/").filter(Boolean);
|
|
175
|
-
segments = segments.map(__assignType((segment, index) => {
|
|
176
|
-
const found = segments.findIndex(__assignType((existing) => existing === segment, [
|
|
177
|
-
"existing",
|
|
178
|
-
"",
|
|
179
|
-
"P\"2!\"/\""
|
|
180
|
-
]));
|
|
181
|
-
if (found !== -1 && found !== index) segment += `_${segments.filter(__assignType((segment) => require_context_helpers.isDynamicPathSegment(segment) && require_context_helpers.getDynamicPathSegmentName(segment).replace(/_\d+$/, "") === segment, [
|
|
182
|
-
"segment",
|
|
183
|
-
"",
|
|
184
|
-
"P\"2!\"/\""
|
|
185
|
-
])).length}`;
|
|
186
|
-
return segment;
|
|
187
|
-
}, [
|
|
188
|
-
"segment",
|
|
189
|
-
"index",
|
|
190
|
-
"",
|
|
191
|
-
"P\"2!\"2\"\"/#"
|
|
192
|
-
]));
|
|
193
|
-
ret.push({
|
|
194
|
-
id,
|
|
195
|
-
path: segments.join("/"),
|
|
196
|
-
segments,
|
|
197
|
-
name,
|
|
198
|
-
alias: [],
|
|
199
|
-
tags: [],
|
|
200
|
-
virtual: false,
|
|
201
|
-
entry: {
|
|
202
|
-
...entry,
|
|
203
|
-
input: {
|
|
204
|
-
file: entry.file,
|
|
205
|
-
export: entry.export
|
|
206
|
-
},
|
|
207
|
-
output: name
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
return ret;
|
|
212
|
-
}, [
|
|
213
|
-
"ret",
|
|
214
|
-
"entry",
|
|
215
|
-
"",
|
|
216
|
-
"P\"2!\"2\"\"/#"
|
|
217
|
-
]), this.inputs);
|
|
218
|
-
this.debug(`Shell Shock will process ${this.inputs.length} command entry files: \n${this.inputs.map(__assignType((command) => ` - ${command.id}: ${(0, _stryke_path_replace.replacePath)(command.entry.file, this.commandsPath)}`, [
|
|
219
|
-
"command",
|
|
220
|
-
"",
|
|
221
|
-
"P\"2!\"/\""
|
|
222
|
-
])).join("\n")}`);
|
|
223
|
-
},
|
|
224
|
-
prepare: __assignType(async function prepare() {
|
|
225
|
-
this.debug("Rendering base built-in modules for the Shell Shock application.");
|
|
226
|
-
return (0, _powerlines_plugin_alloy_render.render)(this, [
|
|
227
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_state_builtin.StateBuiltin, {}),
|
|
228
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_utils_builtin.UtilsBuiltin, {}),
|
|
229
|
-
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_exec_builtin.ExecBuiltin, {})
|
|
230
|
-
]);
|
|
231
|
-
}, ["prepare", "P\"/!"])
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
name: "shell-shock/core:virtual-inputs",
|
|
235
|
-
configResolved: {
|
|
236
|
-
order: "post",
|
|
237
|
-
async handler() {
|
|
238
|
-
if (this.inputs.length === 0) this.warn("No commands were found in the project. Please ensure at least one command exists.");
|
|
239
|
-
else {
|
|
240
|
-
this.debug("Finding and adding virtual command inputs for each command previously found.");
|
|
241
|
-
this.inputs = this.inputs.reduce(__assignType((ret, command) => {
|
|
242
|
-
let depth = 0;
|
|
243
|
-
let parentPath = (0, _stryke_path_resolve_parent_path.resolveParentPath)((0, _stryke_path_find.findFilePath)(command.entry.file));
|
|
244
|
-
if ((0, _stryke_path_is_parent_path.isParentPath)(parentPath, this.commandsPath)) while (parentPath !== this.commandsPath) {
|
|
245
|
-
if (depth++ > MAX_DEPTH) throw new Error(`Unable to process virtual commands for ${command.name} \n\nPlease ensure ${command.entry.file} is a valid command entry file and does not have an invalid path.`);
|
|
246
|
-
if (!ret.some(__assignType((existing) => (0, _stryke_path_find.findFilePath)(existing.entry.file) === parentPath, [
|
|
247
|
-
"existing",
|
|
248
|
-
"",
|
|
249
|
-
"P\"2!\"/\""
|
|
250
|
-
]))) {
|
|
251
|
-
const file = (0, _stryke_path_join_paths.joinPaths)(parentPath, "command.ts");
|
|
252
|
-
const id = require_paths.resolveCommandId(this, file);
|
|
253
|
-
if (!ret.some(__assignType((existing) => existing.id === id, [
|
|
254
|
-
"existing",
|
|
255
|
-
"",
|
|
256
|
-
"P\"2!\"/\""
|
|
257
|
-
]))) {
|
|
258
|
-
const name = require_paths.resolveCommandName(file);
|
|
259
|
-
let segments = require_paths.resolveCommandPath(this, file).split("/").filter(Boolean);
|
|
260
|
-
segments = segments.map(__assignType((segment, index) => {
|
|
261
|
-
const found = segments.findIndex(__assignType((existing) => existing === segment, [
|
|
262
|
-
"existing",
|
|
263
|
-
"",
|
|
264
|
-
"P\"2!\"/\""
|
|
265
|
-
]));
|
|
266
|
-
if (found !== -1 && found !== index) segment += `_${segments.filter(__assignType((segment) => require_context_helpers.isDynamicPathSegment(segment) && require_context_helpers.getDynamicPathSegmentName(segment).replace(/_\d+$/, "") === segment, [
|
|
267
|
-
"segment",
|
|
268
|
-
"",
|
|
269
|
-
"P\"2!\"/\""
|
|
270
|
-
])).length}`;
|
|
271
|
-
return segment;
|
|
272
|
-
}, [
|
|
273
|
-
"segment",
|
|
274
|
-
"index",
|
|
275
|
-
"",
|
|
276
|
-
"P\"2!\"2\"\"/#"
|
|
277
|
-
]));
|
|
278
|
-
ret.push({
|
|
279
|
-
id,
|
|
280
|
-
path: segments.join("/"),
|
|
281
|
-
segments,
|
|
282
|
-
name,
|
|
283
|
-
alias: [],
|
|
284
|
-
tags: [],
|
|
285
|
-
virtual: true,
|
|
286
|
-
entry: { file }
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
parentPath = (0, _stryke_path_resolve_parent_path.resolveParentPath)(parentPath);
|
|
291
|
-
}
|
|
292
|
-
return ret;
|
|
293
|
-
}, [
|
|
294
|
-
"ret",
|
|
295
|
-
"command",
|
|
296
|
-
"",
|
|
297
|
-
"P\"2!\"2\"\"/#"
|
|
298
|
-
]), this.inputs).sort(__assignType((a, b) => a.segments.length - b.segments.length, [
|
|
299
|
-
"a",
|
|
300
|
-
"b",
|
|
301
|
-
"",
|
|
302
|
-
"P\"2!\"2\"\"/#"
|
|
303
|
-
]));
|
|
304
|
-
this.debug(`Final command input list: \n${this.inputs.map(__assignType((command) => ` - ${command.id}${command.virtual ? " (virtual)" : ""}`, [
|
|
305
|
-
"command",
|
|
306
|
-
"",
|
|
307
|
-
"P\"2!\"/\""
|
|
308
|
-
])).join("\n")}`);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
name: "shell-shock/core:update-env",
|
|
315
|
-
configResolved: {
|
|
316
|
-
order: "post",
|
|
317
|
-
async handler() {
|
|
318
|
-
this.debug("Adding global options to the CLI application's environment variables.");
|
|
319
|
-
if (!this.env.config) {
|
|
320
|
-
this.debug("Environment variable schema not found in plugin context. Extracting environment variable schema from type definitions provided in plugin options.");
|
|
321
|
-
await (0, _powerlines_plugin_env_helpers_schema.extractEnv)(this);
|
|
322
|
-
if (!this.env.config) throw new Error("Failed to extract environment variable schema from type definitions provided in plugin options. Please ensure the `env.types` option is correctly specified and points to a valid TypeScript type definition file.");
|
|
323
|
-
}
|
|
324
|
-
if (!(0, _powerlines_schema.isJsonSchemaObject)(this.env.config.schema)) throw new Error("Invalid environment variable schema extracted.");
|
|
325
|
-
const env = (0, _powerlines_schema.getProperties)(this.env.config);
|
|
326
|
-
this.globalOptions.filter(__assignType((option) => (0, _stryke_type_checks_is_set_string.isSetString)(option.env) && !env[option.env], [
|
|
327
|
-
"option",
|
|
328
|
-
"",
|
|
329
|
-
"P\"2!\"/\""
|
|
330
|
-
])).forEach(__assignType((option) => {
|
|
331
|
-
(0, _powerlines_schema.addProperty)(this.env.config, option.env, {
|
|
332
|
-
...option,
|
|
333
|
-
name: option.env,
|
|
334
|
-
alias: option.alias.filter(__assignType((alias) => alias.length > 1, [
|
|
335
|
-
"alias",
|
|
336
|
-
"",
|
|
337
|
-
"P\"2!\"/\""
|
|
338
|
-
])).map(__assignType((alias) => (0, _stryke_string_format_constant_case.constantCase)(alias), [
|
|
339
|
-
"alias",
|
|
340
|
-
"",
|
|
341
|
-
"P\"2!\"/\""
|
|
342
|
-
]))
|
|
343
|
-
});
|
|
344
|
-
}, [
|
|
345
|
-
"option",
|
|
346
|
-
"",
|
|
347
|
-
"P\"2!\"/\""
|
|
348
|
-
]));
|
|
349
|
-
await (0, _powerlines_plugin_env_helpers_schema.writeEnv)(this);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
name: "shell-shock/core:resolve-commands",
|
|
355
|
-
prepare: {
|
|
356
|
-
order: "post",
|
|
357
|
-
async handler() {
|
|
358
|
-
this.debug("Initializing the CLI application's command tree.");
|
|
359
|
-
this.commands = {};
|
|
360
|
-
if (this.config.command !== "prepare" && this.config.skipCache !== true && this.persistedMeta?.checksum === this.meta.checksum && this.fs.existsSync((0, _powerlines_schema.getCacheFilePath)(this, this.env.config))) {
|
|
361
|
-
this.debug(`Skipping command resolution as the meta checksum has not changed.`);
|
|
362
|
-
await (0, _powerlines_plugin_env_helpers_schema.extractEnv)(this);
|
|
363
|
-
await require_persistence.readCommandsPersistence(this);
|
|
364
|
-
} else {
|
|
365
|
-
for (const input of this.inputs.filter(__assignType((input) => input.segments.filter(__assignType((segment) => !require_context_helpers.isDynamicPathSegment(segment) && !require_context_helpers.isPathSegmentGroup(segment), [
|
|
366
|
-
"segment",
|
|
367
|
-
"",
|
|
368
|
-
"P\"2!\"/\""
|
|
369
|
-
])).length === 1, [
|
|
370
|
-
"input",
|
|
371
|
-
"",
|
|
372
|
-
"P\"2!\"/\""
|
|
373
|
-
]))) this.commands[input.name] = await require_resolve.resolve({
|
|
374
|
-
context: this,
|
|
375
|
-
command: input
|
|
376
|
-
});
|
|
377
|
-
this.debug("Post-processing commands to ensure proper reflection.");
|
|
378
|
-
await require_traverse_command_tree.traverseCommands(this, __assignType((command) => {
|
|
379
|
-
command.options = Object.fromEntries(Object.entries(command.options).map(__assignType(([name, option]) => [(0, _stryke_string_format_camel_case.camelCase)(name), {
|
|
380
|
-
...option,
|
|
381
|
-
name: (0, _stryke_string_format_camel_case.camelCase)(name),
|
|
382
|
-
alias: option.alias ?? [],
|
|
383
|
-
required: option.required ?? true
|
|
384
|
-
}], [
|
|
385
|
-
"param0",
|
|
386
|
-
"",
|
|
387
|
-
"P\"2!\"/\""
|
|
388
|
-
])));
|
|
389
|
-
}, [
|
|
390
|
-
"command",
|
|
391
|
-
"",
|
|
392
|
-
"P\"2!\"/\""
|
|
393
|
-
]));
|
|
394
|
-
await require_persistence.writeCommandsPersistence(this);
|
|
395
|
-
}
|
|
396
|
-
this.debug("Validating the CLI applications command tree.");
|
|
397
|
-
let isValid = true;
|
|
398
|
-
await require_traverse_command_tree.traverseCommands(this, __assignType((command) => {
|
|
399
|
-
const failures = require_validations.validateCommand(command);
|
|
400
|
-
if (failures.length > 0) {
|
|
401
|
-
this.error(`Found ${failures.length} issue${failures.length > 1 ? "s" : ""} with the ${command.title} command: \n${failures.map(__assignType((failure) => ` - ${failure.code}: ${failure.details}`, [
|
|
402
|
-
"failure",
|
|
403
|
-
"",
|
|
404
|
-
"P\"2!\"/\""
|
|
405
|
-
])).join("\n")}\n`);
|
|
406
|
-
isValid = false;
|
|
407
|
-
}
|
|
408
|
-
}, [
|
|
409
|
-
"command",
|
|
410
|
-
"",
|
|
411
|
-
"P\"2!\"/\""
|
|
412
|
-
]));
|
|
413
|
-
if (!isValid) throw new Error(`One or more commands in the command tree are invalid. Please review the errors above and correct them before proceeding.`);
|
|
414
|
-
this.info(`\nCreating an application with the following command tree: \n${require_utilities.formatCommandTree(this)}\n`);
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
name: "shell-shock/core:chmod+x",
|
|
420
|
-
configResolved() {
|
|
421
|
-
this.config.tsdown.hooks ??= {};
|
|
422
|
-
this.config.tsdown.hooks["build:done"] = __assignType(async (_) => {
|
|
423
|
-
await Promise.all(Object.values(this.config.bin).map(__assignType(async (bin) => {
|
|
424
|
-
const path = (0, _stryke_path_append.appendPath)(bin, (0, _stryke_path_join_paths.joinPaths)(this.config.cwd, this.config.root));
|
|
425
|
-
if (this.fs.existsSync(path)) {
|
|
426
|
-
this.debug(`Adding hashbang to binary executable output file: ${path}`);
|
|
427
|
-
const content = await this.fs.read(path);
|
|
428
|
-
if (content && !content.startsWith("#!")) await this.fs.write(path, `#!/usr/bin/env ${this.config.mode === "development" ? "-S NODE_OPTIONS=--enable-source-maps" : ""} node\n\n${content}`);
|
|
429
|
-
this.debug(`Adding executable permissions (chmod+x) to binary executable output file: ${path}`);
|
|
430
|
-
await (0, _stryke_fs_chmod_x.chmodX)(path);
|
|
431
|
-
} else this.warn(`Expected binary output file not found at path: ${path}. Skipping adding hashbang and executable permissions (chmod+x).`);
|
|
432
|
-
}, [
|
|
433
|
-
"bin",
|
|
434
|
-
"",
|
|
435
|
-
"P\"2!\"/\""
|
|
436
|
-
])));
|
|
437
|
-
}, [
|
|
438
|
-
"chunks",
|
|
439
|
-
"_",
|
|
440
|
-
"",
|
|
441
|
-
"PP!P!F4!MK2\"\"/#"
|
|
442
|
-
]);
|
|
443
|
-
}
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
name: "shell-shock/core:docs",
|
|
447
|
-
configResolved: __assignType(function configResolved() {
|
|
448
|
-
this.config.automd ??= {};
|
|
449
|
-
this.config.automd.generators = {
|
|
450
|
-
...this.config.automd.generators ?? {},
|
|
451
|
-
commands: require_automd.commands(this),
|
|
452
|
-
usage: require_automd.usage(this),
|
|
453
|
-
options: require_automd.options(this),
|
|
454
|
-
args: require_automd.args(this)
|
|
455
|
-
};
|
|
456
|
-
}, ["configResolved", "P\"/!"]),
|
|
457
|
-
async docs() {
|
|
458
|
-
this.debug("Rendering CLI command reference documentation and writing to the output directory.");
|
|
459
|
-
const commands = this.inputs.map(__assignType((input) => require_get_command_tree.getCommandTree(this, input.segments), [
|
|
460
|
-
"input",
|
|
461
|
-
"",
|
|
462
|
-
"P\"2!\"/\""
|
|
463
|
-
])).filter(Boolean);
|
|
464
|
-
return (0, _powerlines_plugin_alloy_render.render)(this, (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
|
|
465
|
-
get each() {
|
|
466
|
-
return Object.values(commands);
|
|
467
|
-
},
|
|
468
|
-
doubleHardline: true,
|
|
469
|
-
get children() {
|
|
470
|
-
return __assignType((child) => (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
|
|
471
|
-
get when() {
|
|
472
|
-
return !child.virtual;
|
|
473
|
-
},
|
|
474
|
-
get children() {
|
|
475
|
-
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_components_docs.CommandDocsFile, { command: child });
|
|
476
|
-
}
|
|
477
|
-
}), [
|
|
478
|
-
"child",
|
|
479
|
-
"",
|
|
480
|
-
"P\"2!\"/\""
|
|
481
|
-
]);
|
|
482
|
-
}
|
|
483
|
-
}));
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
];
|
|
487
|
-
}, [
|
|
488
|
-
"Options",
|
|
489
|
-
"options",
|
|
490
|
-
() => ({}),
|
|
491
|
-
"",
|
|
492
|
-
"P\"w!2\">#!F/$"
|
|
493
|
-
]);
|
|
494
|
-
|
|
495
|
-
//#endregion
|
|
496
|
-
exports.default = plugin;
|
|
497
|
-
exports.plugin = plugin;
|
|
498
|
-
//# sourceMappingURL=plugin.cjs.map
|
|
4
|
+
exports.default = require_plugin.plugin;
|
|
5
|
+
exports.plugin = require_plugin.plugin;
|
package/dist/plugin.d.cts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { Context } from "./
|
|
2
|
-
import { Options } from "./types/config.cjs";
|
|
1
|
+
import { f as Context, r as Options } from "./config-BIF9mEz0.cjs";
|
|
3
2
|
import { Plugin } from "powerlines";
|
|
4
|
-
|
|
5
3
|
//#region src/plugin.d.ts
|
|
6
4
|
/**
|
|
7
5
|
* The core Powerlines plugin to build Shell Shock projects.
|
package/dist/plugin.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../src/plugin.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../src/plugin.tsx"],"mappings":";;;;;;cA8Fa,SAAU,iBAAiB,UAAU,SAChD,UAAS,YACR,OAAO"}
|
package/dist/plugin.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { Context } from "./
|
|
2
|
-
import { Options } from "./types/config.mjs";
|
|
1
|
+
import { f as Context, r as Options } from "./config-CnNYdfsL.mjs";
|
|
3
2
|
import { Plugin } from "powerlines";
|
|
4
|
-
|
|
5
3
|
//#region src/plugin.d.ts
|
|
6
4
|
/**
|
|
7
5
|
* The core Powerlines plugin to build Shell Shock projects.
|