@shell-shock/core 0.17.4 → 0.17.6
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/components/command-validation-logic.cjs +214 -152
- package/dist/components/command-validation-logic.mjs +213 -152
- package/dist/components/command-validation-logic.mjs.map +1 -1
- package/dist/components/docs.cjs +113 -9
- package/dist/components/docs.mjs +109 -9
- package/dist/components/docs.mjs.map +1 -1
- package/dist/components/exec-builtin.cjs +36 -1
- package/dist/components/exec-builtin.d.cts.map +1 -1
- package/dist/components/exec-builtin.d.mts.map +1 -1
- package/dist/components/exec-builtin.mjs +35 -1
- package/dist/components/exec-builtin.mjs.map +1 -1
- package/dist/components/helpers.cjs +51 -2
- package/dist/components/helpers.mjs +50 -2
- package/dist/components/helpers.mjs.map +1 -1
- package/dist/components/index.cjs +17 -1
- package/dist/components/index.mjs +9 -9
- package/dist/components/options-parser-logic.cjs +411 -174
- package/dist/components/options-parser-logic.d.cts.map +1 -1
- package/dist/components/options-parser-logic.d.mts.map +1 -1
- package/dist/components/options-parser-logic.mjs +405 -174
- package/dist/components/options-parser-logic.mjs.map +1 -1
- package/dist/components/state-builtin.cjs +61 -5
- package/dist/components/state-builtin.mjs +60 -5
- package/dist/components/state-builtin.mjs.map +1 -1
- package/dist/components/usage.cjs +46 -3
- package/dist/components/usage.mjs +45 -3
- package/dist/components/usage.mjs.map +1 -1
- package/dist/components/utils-builtin.cjs +68 -3
- package/dist/components/utils-builtin.mjs +67 -3
- package/dist/components/utils-builtin.mjs.map +1 -1
- package/dist/helpers/automd.cjs +28 -13
- package/dist/helpers/automd.mjs +28 -13
- package/dist/helpers/automd.mjs.map +1 -1
- package/dist/index.cjs +11 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/plugin-utils/compute-bin.cjs +50 -0
- package/dist/plugin-utils/compute-bin.d.cts +13 -0
- package/dist/plugin-utils/compute-bin.d.cts.map +1 -0
- package/dist/plugin-utils/compute-bin.d.mts +13 -0
- package/dist/plugin-utils/compute-bin.d.mts.map +1 -0
- package/dist/plugin-utils/compute-bin.mjs +50 -0
- package/dist/plugin-utils/compute-bin.mjs.map +1 -0
- package/dist/plugin-utils/get-command-tree.cjs +50 -0
- package/dist/plugin-utils/get-command-tree.d.cts +15 -1
- package/dist/plugin-utils/get-command-tree.d.cts.map +1 -1
- package/dist/plugin-utils/get-command-tree.d.mts +15 -1
- package/dist/plugin-utils/get-command-tree.d.mts.map +1 -1
- package/dist/plugin-utils/get-command-tree.mjs +49 -1
- package/dist/plugin-utils/get-command-tree.mjs.map +1 -1
- package/dist/plugin-utils/index.cjs +4 -0
- package/dist/plugin-utils/index.d.cts +3 -2
- package/dist/plugin-utils/index.d.mts +3 -2
- package/dist/plugin-utils/index.mjs +3 -2
- package/dist/plugin.cjs +170 -55
- package/dist/plugin.d.cts.map +1 -1
- package/dist/plugin.d.mts.map +1 -1
- package/dist/plugin.mjs +170 -54
- package/dist/plugin.mjs.map +1 -1
- package/dist/resolver/deepkit.cjs +1 -1
- package/dist/resolver/deepkit.mjs +1 -1
- package/dist/resolver/deepkit.mjs.map +1 -1
- package/dist/types/command.cjs +120 -10
- package/dist/types/command.d.cts +95 -8
- package/dist/types/command.d.cts.map +1 -1
- package/dist/types/command.d.mts +95 -8
- package/dist/types/command.d.mts.map +1 -1
- package/dist/types/command.mjs +109 -10
- package/dist/types/command.mjs.map +1 -1
- package/dist/types/config.cjs +2 -3
- package/dist/types/config.d.cts +2 -3
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +2 -3
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/config.mjs +2 -3
- package/dist/types/config.mjs.map +1 -1
- package/dist/types/index.cjs +12 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.mjs +2 -2
- package/package.json +10 -10
package/dist/plugin.cjs
CHANGED
|
@@ -19,8 +19,6 @@ let _alloy_js_core_components = require("@alloy-js/core/components");
|
|
|
19
19
|
let _powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
|
|
20
20
|
let _powerlines_plugin_automd = require("@powerlines/plugin-automd");
|
|
21
21
|
_powerlines_plugin_automd = require_runtime.__toESM(_powerlines_plugin_automd);
|
|
22
|
-
let _powerlines_plugin_deepkit = require("@powerlines/plugin-deepkit");
|
|
23
|
-
_powerlines_plugin_deepkit = require_runtime.__toESM(_powerlines_plugin_deepkit);
|
|
24
22
|
let _powerlines_plugin_nodejs = require("@powerlines/plugin-nodejs");
|
|
25
23
|
_powerlines_plugin_nodejs = require_runtime.__toESM(_powerlines_plugin_nodejs);
|
|
26
24
|
let _powerlines_plugin_tsdown = require("@powerlines/plugin-tsdown");
|
|
@@ -42,18 +40,21 @@ let defu = require("defu");
|
|
|
42
40
|
let powerlines_utils = require("powerlines/utils");
|
|
43
41
|
|
|
44
42
|
//#region src/plugin.tsx
|
|
43
|
+
function __assignType(fn, args) {
|
|
44
|
+
fn.__type = args;
|
|
45
|
+
return fn;
|
|
46
|
+
}
|
|
45
47
|
const MAX_DEPTH = 50;
|
|
46
48
|
/**
|
|
47
49
|
* The core Powerlines plugin to build Shell Shock projects.
|
|
48
50
|
*/
|
|
49
|
-
const plugin = (options = {}) => {
|
|
51
|
+
const plugin = __assignType((options = {}) => {
|
|
50
52
|
return [
|
|
51
|
-
|
|
52
|
-
(0,
|
|
53
|
-
(0, _powerlines_plugin_automd.default)(),
|
|
53
|
+
(_powerlines_plugin_tsdown.default.Ω = [["Context", "\"w!"]], (0, _powerlines_plugin_tsdown.default)()),
|
|
54
|
+
(_powerlines_plugin_automd.default.Ω = [["Context", "\"w!"]], (0, _powerlines_plugin_automd.default)()),
|
|
54
55
|
{
|
|
55
56
|
name: "shell-shock:config",
|
|
56
|
-
async config() {
|
|
57
|
+
config: __assignType(async function config() {
|
|
57
58
|
this.debug("Resolving the Shell Shock configuration.");
|
|
58
59
|
await require_update_package_json.updatePackageJsonBinary(this);
|
|
59
60
|
return (0, defu.defu)({ output: { path: (0, _stryke_path_join_paths.joinPaths)(this.config.root, "dist") } }, options, {
|
|
@@ -79,7 +80,7 @@ const plugin = (options = {}) => {
|
|
|
79
80
|
unbundle: false
|
|
80
81
|
}
|
|
81
82
|
});
|
|
82
|
-
},
|
|
83
|
+
}, ["config", "P\"/!"]),
|
|
83
84
|
configResolved: {
|
|
84
85
|
order: "pre",
|
|
85
86
|
async handler() {
|
|
@@ -108,19 +109,23 @@ const plugin = (options = {}) => {
|
|
|
108
109
|
alias: [],
|
|
109
110
|
isVirtual: false
|
|
110
111
|
}));
|
|
111
|
-
this.options = this.options.map((option) => ({
|
|
112
|
+
this.options = this.options.map(__assignType((option) => ({
|
|
112
113
|
...option,
|
|
113
114
|
name: (0, _stryke_string_format_camel_case.camelCase)(option.name),
|
|
114
115
|
alias: option.alias ?? [],
|
|
115
116
|
optional: option.optional ?? false
|
|
116
|
-
})
|
|
117
|
+
}), [
|
|
118
|
+
"option",
|
|
119
|
+
"",
|
|
120
|
+
"P\"2!\"/\""
|
|
121
|
+
]));
|
|
117
122
|
}
|
|
118
123
|
}
|
|
119
124
|
},
|
|
120
|
-
...(0, _powerlines_plugin_nodejs.default)((0, defu.defu)(options ?? {}, { env: {
|
|
125
|
+
...(_powerlines_plugin_nodejs.default.Ω = [["Context", "\"w!"]], (0, _powerlines_plugin_nodejs.default)((0, defu.defu)(options ?? {}, { env: {
|
|
121
126
|
types: "@shell-shock/core/types/env#ShellShockEnv",
|
|
122
127
|
validate: false
|
|
123
|
-
} })),
|
|
128
|
+
} }))),
|
|
124
129
|
{
|
|
125
130
|
name: "shell-shock:inputs",
|
|
126
131
|
async configResolved() {
|
|
@@ -130,17 +135,34 @@ const plugin = (options = {}) => {
|
|
|
130
135
|
this.debug(`Resolved commands root path: ${this.commandsPath}`);
|
|
131
136
|
const inputs = await (0, powerlines_utils.resolveInputs)(this, this.config.input);
|
|
132
137
|
this.debug(`Found ${inputs.length} entry points specified in the configuration options.`);
|
|
133
|
-
this.inputs = inputs.reduce((ret, entry) => {
|
|
138
|
+
this.inputs = inputs.reduce(__assignType((ret, entry) => {
|
|
134
139
|
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.`);
|
|
135
140
|
const id = require_paths.resolveCommandId(this, entry.file);
|
|
136
|
-
if (!ret.some((existing) => existing.id === id
|
|
141
|
+
if (!ret.some(__assignType((existing) => existing.id === id, [
|
|
142
|
+
"existing",
|
|
143
|
+
"",
|
|
144
|
+
"P\"2!\"/\""
|
|
145
|
+
]))) {
|
|
137
146
|
const name = require_paths.resolveCommandName(entry.file);
|
|
138
147
|
let segments = require_paths.resolveCommandPath(this, entry.file).split("/").filter(Boolean);
|
|
139
|
-
segments = segments.map((segment, index) => {
|
|
140
|
-
const found = segments.findIndex((existing) => existing === segment
|
|
141
|
-
|
|
148
|
+
segments = segments.map(__assignType((segment, index) => {
|
|
149
|
+
const found = segments.findIndex(__assignType((existing) => existing === segment, [
|
|
150
|
+
"existing",
|
|
151
|
+
"",
|
|
152
|
+
"P\"2!\"/\""
|
|
153
|
+
]));
|
|
154
|
+
if (found !== -1 && found !== index) segment += `_${segments.filter(__assignType((segment) => require_context_helpers.isDynamicPathSegment(segment) && require_context_helpers.getDynamicPathSegmentName(segment).replace(/_\d+$/, "") === segment, [
|
|
155
|
+
"segment",
|
|
156
|
+
"",
|
|
157
|
+
"P\"2!\"/\""
|
|
158
|
+
])).length}`;
|
|
142
159
|
return segment;
|
|
143
|
-
}
|
|
160
|
+
}, [
|
|
161
|
+
"segment",
|
|
162
|
+
"index",
|
|
163
|
+
"",
|
|
164
|
+
"P\"2!\"2\"\"/#"
|
|
165
|
+
]));
|
|
144
166
|
ret.push({
|
|
145
167
|
id,
|
|
146
168
|
path: segments.join("/"),
|
|
@@ -162,17 +184,26 @@ const plugin = (options = {}) => {
|
|
|
162
184
|
});
|
|
163
185
|
}
|
|
164
186
|
return ret;
|
|
165
|
-
},
|
|
166
|
-
|
|
187
|
+
}, [
|
|
188
|
+
"ret",
|
|
189
|
+
"entry",
|
|
190
|
+
"",
|
|
191
|
+
"P\"2!\"2\"\"/#"
|
|
192
|
+
]), this.inputs);
|
|
193
|
+
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)}`, [
|
|
194
|
+
"command",
|
|
195
|
+
"",
|
|
196
|
+
"P\"2!\"/\""
|
|
197
|
+
])).join("\n")}`);
|
|
167
198
|
},
|
|
168
|
-
async prepare() {
|
|
199
|
+
prepare: __assignType(async function prepare() {
|
|
169
200
|
this.debug("Rendering base built-in modules for the Shell Shock application.");
|
|
170
201
|
return (0, _powerlines_plugin_alloy_render.render)(this, [
|
|
171
202
|
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_state_builtin.StateBuiltin, {}),
|
|
172
203
|
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_utils_builtin.UtilsBuiltin, {}),
|
|
173
204
|
(0, _alloy_js_core_jsx_runtime.createComponent)(require_components_exec_builtin.ExecBuiltin, {})
|
|
174
205
|
]);
|
|
175
|
-
}
|
|
206
|
+
}, ["prepare", "P\"/!"])
|
|
176
207
|
},
|
|
177
208
|
{
|
|
178
209
|
name: "shell-shock:virtual-inputs",
|
|
@@ -182,22 +213,43 @@ const plugin = (options = {}) => {
|
|
|
182
213
|
if (this.inputs.length === 0) this.warn("No commands were found in the project. Please ensure at least one command exists.");
|
|
183
214
|
else {
|
|
184
215
|
this.debug("Finding and adding virtual command inputs for each command previously found.");
|
|
185
|
-
this.inputs = this.inputs.reduce((ret, command) => {
|
|
216
|
+
this.inputs = this.inputs.reduce(__assignType((ret, command) => {
|
|
186
217
|
let depth = 0;
|
|
187
218
|
let parentPath = (0, _stryke_path_resolve_parent_path.resolveParentPath)((0, _stryke_path_file_path_fns.findFilePath)(command.entry.file));
|
|
188
219
|
if ((0, _stryke_path_is_parent_path.isParentPath)(parentPath, this.commandsPath)) while (parentPath !== this.commandsPath) {
|
|
189
220
|
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.`);
|
|
190
|
-
if (!ret.some((existing) => (0, _stryke_path_file_path_fns.findFilePath)(existing.entry.file) === parentPath
|
|
221
|
+
if (!ret.some(__assignType((existing) => (0, _stryke_path_file_path_fns.findFilePath)(existing.entry.file) === parentPath, [
|
|
222
|
+
"existing",
|
|
223
|
+
"",
|
|
224
|
+
"P\"2!\"/\""
|
|
225
|
+
]))) {
|
|
191
226
|
const file = (0, _stryke_path_join_paths.joinPaths)(parentPath, "command.ts");
|
|
192
227
|
const id = require_paths.resolveCommandId(this, file);
|
|
193
|
-
if (!ret.some((existing) => existing.id === id
|
|
228
|
+
if (!ret.some(__assignType((existing) => existing.id === id, [
|
|
229
|
+
"existing",
|
|
230
|
+
"",
|
|
231
|
+
"P\"2!\"/\""
|
|
232
|
+
]))) {
|
|
194
233
|
const name = require_paths.resolveCommandName(file);
|
|
195
234
|
let segments = require_paths.resolveCommandPath(this, file).split("/").filter(Boolean);
|
|
196
|
-
segments = segments.map((segment, index) => {
|
|
197
|
-
const found = segments.findIndex((existing) => existing === segment
|
|
198
|
-
|
|
235
|
+
segments = segments.map(__assignType((segment, index) => {
|
|
236
|
+
const found = segments.findIndex(__assignType((existing) => existing === segment, [
|
|
237
|
+
"existing",
|
|
238
|
+
"",
|
|
239
|
+
"P\"2!\"/\""
|
|
240
|
+
]));
|
|
241
|
+
if (found !== -1 && found !== index) segment += `_${segments.filter(__assignType((segment) => require_context_helpers.isDynamicPathSegment(segment) && require_context_helpers.getDynamicPathSegmentName(segment).replace(/_\d+$/, "") === segment, [
|
|
242
|
+
"segment",
|
|
243
|
+
"",
|
|
244
|
+
"P\"2!\"/\""
|
|
245
|
+
])).length}`;
|
|
199
246
|
return segment;
|
|
200
|
-
}
|
|
247
|
+
}, [
|
|
248
|
+
"segment",
|
|
249
|
+
"index",
|
|
250
|
+
"",
|
|
251
|
+
"P\"2!\"2\"\"/#"
|
|
252
|
+
]));
|
|
201
253
|
ret.push({
|
|
202
254
|
id,
|
|
203
255
|
path: segments.join("/"),
|
|
@@ -214,8 +266,22 @@ const plugin = (options = {}) => {
|
|
|
214
266
|
parentPath = (0, _stryke_path_resolve_parent_path.resolveParentPath)(parentPath);
|
|
215
267
|
}
|
|
216
268
|
return ret;
|
|
217
|
-
},
|
|
218
|
-
|
|
269
|
+
}, [
|
|
270
|
+
"ret",
|
|
271
|
+
"command",
|
|
272
|
+
"",
|
|
273
|
+
"P\"2!\"2\"\"/#"
|
|
274
|
+
]), this.inputs).sort(__assignType((a, b) => a.segments.length - b.segments.length, [
|
|
275
|
+
"a",
|
|
276
|
+
"b",
|
|
277
|
+
"",
|
|
278
|
+
"P\"2!\"2\"\"/#"
|
|
279
|
+
]));
|
|
280
|
+
this.debug(`Final command input list: \n${this.inputs.map(__assignType((command) => ` - ${command.id}${command.isVirtual ? " (virtual)" : ""}: ${command.source === "file" ? (0, _stryke_path_replace.replacePath)(command.entry.file, this.commandsPath) : `added by ${command.source}`}`, [
|
|
281
|
+
"command",
|
|
282
|
+
"",
|
|
283
|
+
"P\"2!\"/\""
|
|
284
|
+
])).join("\n")}`);
|
|
219
285
|
}
|
|
220
286
|
}
|
|
221
287
|
}
|
|
@@ -231,30 +297,54 @@ const plugin = (options = {}) => {
|
|
|
231
297
|
this.debug(`Skipping command resolution as the meta checksum has not changed.`);
|
|
232
298
|
await require_persistence.readCommandsPersistence(this);
|
|
233
299
|
} else {
|
|
234
|
-
for (const input of this.inputs.filter((input) => input.segments.filter((segment) => !require_context_helpers.isDynamicPathSegment(segment) && !require_context_helpers.isPathSegmentGroup(segment)
|
|
300
|
+
for (const input of this.inputs.filter(__assignType((input) => input.segments.filter(__assignType((segment) => !require_context_helpers.isDynamicPathSegment(segment) && !require_context_helpers.isPathSegmentGroup(segment), [
|
|
301
|
+
"segment",
|
|
302
|
+
"",
|
|
303
|
+
"P\"2!\"/\""
|
|
304
|
+
])).length === 1, [
|
|
305
|
+
"input",
|
|
306
|
+
"",
|
|
307
|
+
"P\"2!\"/\""
|
|
308
|
+
]))) this.commands[input.name] = await require_resolve.resolve({
|
|
235
309
|
context: this,
|
|
236
310
|
command: input
|
|
237
311
|
});
|
|
238
312
|
this.debug("Post-processing commands to ensure proper reflection.");
|
|
239
|
-
await require_traverse_command_tree.traverseCommands(this, (command) => {
|
|
240
|
-
command.options = Object.fromEntries(Object.entries(command.options).map(([name, option]) => [(0, _stryke_string_format_camel_case.camelCase)(name), {
|
|
313
|
+
await require_traverse_command_tree.traverseCommands(this, __assignType((command) => {
|
|
314
|
+
command.options = Object.fromEntries(Object.entries(command.options).map(__assignType(([name, option]) => [(0, _stryke_string_format_camel_case.camelCase)(name), {
|
|
241
315
|
...option,
|
|
242
316
|
name: (0, _stryke_string_format_camel_case.camelCase)(name),
|
|
243
317
|
alias: option.alias ?? [],
|
|
244
318
|
optional: option.optional ?? false
|
|
245
|
-
}]
|
|
246
|
-
|
|
319
|
+
}], [
|
|
320
|
+
"param0",
|
|
321
|
+
"",
|
|
322
|
+
"P\"2!\"/\""
|
|
323
|
+
])));
|
|
324
|
+
}, [
|
|
325
|
+
"command",
|
|
326
|
+
"",
|
|
327
|
+
"P\"2!\"/\""
|
|
328
|
+
]));
|
|
247
329
|
await require_persistence.writeCommandsPersistence(this);
|
|
248
330
|
}
|
|
249
331
|
this.debug("Validating the CLI applications command tree.");
|
|
250
332
|
let isValid = true;
|
|
251
|
-
await require_traverse_command_tree.traverseCommands(this, (command) => {
|
|
333
|
+
await require_traverse_command_tree.traverseCommands(this, __assignType((command) => {
|
|
252
334
|
const failures = require_validations.validateCommand(command);
|
|
253
335
|
if (failures.length > 0) {
|
|
254
|
-
this.error(`Found ${failures.length} issue${failures.length > 1 ? "s" : ""} with the ${command.title} command: \n${failures.map((failure) => ` - ${failure.code}: ${failure.details}
|
|
336
|
+
this.error(`Found ${failures.length} issue${failures.length > 1 ? "s" : ""} with the ${command.title} command: \n${failures.map(__assignType((failure) => ` - ${failure.code}: ${failure.details}`, [
|
|
337
|
+
"failure",
|
|
338
|
+
"",
|
|
339
|
+
"P\"2!\"/\""
|
|
340
|
+
])).join("\n")}\n`);
|
|
255
341
|
isValid = false;
|
|
256
342
|
}
|
|
257
|
-
}
|
|
343
|
+
}, [
|
|
344
|
+
"command",
|
|
345
|
+
"",
|
|
346
|
+
"P\"2!\"/\""
|
|
347
|
+
]));
|
|
258
348
|
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.`);
|
|
259
349
|
this.info(`\nCreating an application with the following command tree: \n${require_utilities.formatCommandTree(this)}\n`);
|
|
260
350
|
}
|
|
@@ -264,8 +354,8 @@ const plugin = (options = {}) => {
|
|
|
264
354
|
name: "shell-shock:chmod+x",
|
|
265
355
|
configResolved() {
|
|
266
356
|
this.config.tsdown.hooks ??= {};
|
|
267
|
-
this.config.tsdown.hooks["build:done"] = async (_) => {
|
|
268
|
-
await Promise.all(Object.values(this.config.bin).map(async (bin) => {
|
|
357
|
+
this.config.tsdown.hooks["build:done"] = __assignType(async (_) => {
|
|
358
|
+
await Promise.all(Object.values(this.config.bin).map(__assignType(async (bin) => {
|
|
269
359
|
const path = (0, _stryke_path_append.appendPath)(bin, (0, _stryke_path_join_paths.joinPaths)(this.workspaceConfig.workspaceRoot, this.config.root));
|
|
270
360
|
if (this.fs.existsSync(path)) {
|
|
271
361
|
this.debug(`Adding hashbang to binary executable output file: ${path}`);
|
|
@@ -274,40 +364,65 @@ const plugin = (options = {}) => {
|
|
|
274
364
|
this.debug(`Adding executable permissions (chmod+x) to binary executable output file: ${path}`);
|
|
275
365
|
await (0, _stryke_fs_chmod_x.chmodX)(path);
|
|
276
366
|
} else this.warn(`Expected binary output file not found at path: ${path}. Skipping adding hashbang and executable permissions (chmod+x).`);
|
|
277
|
-
}
|
|
278
|
-
|
|
367
|
+
}, [
|
|
368
|
+
"bin",
|
|
369
|
+
"",
|
|
370
|
+
"P\"2!\"/\""
|
|
371
|
+
])));
|
|
372
|
+
}, [
|
|
373
|
+
"chunks",
|
|
374
|
+
"_",
|
|
375
|
+
"",
|
|
376
|
+
"PP!P!F4!MK2\"\"/#"
|
|
377
|
+
]);
|
|
279
378
|
}
|
|
280
379
|
},
|
|
281
380
|
{
|
|
282
381
|
name: "shell-shock:docs",
|
|
283
|
-
configResolved() {
|
|
382
|
+
configResolved: __assignType(function configResolved() {
|
|
284
383
|
this.config.automd ??= {};
|
|
285
384
|
this.config.automd.generators = {
|
|
286
385
|
...this.config.automd.generators ?? {},
|
|
287
386
|
commands: require_automd.commands(this)
|
|
288
387
|
};
|
|
289
|
-
},
|
|
388
|
+
}, ["configResolved", "P\"/!"]),
|
|
290
389
|
async docs() {
|
|
291
390
|
this.debug("Rendering entrypoint modules for the Shell Shock `script` preset.");
|
|
292
|
-
const commands = this.inputs.map((input) => require_get_command_tree.getCommandTree(this, input.segments)
|
|
391
|
+
const commands = this.inputs.map(__assignType((input) => require_get_command_tree.getCommandTree(this, input.segments), [
|
|
392
|
+
"input",
|
|
393
|
+
"",
|
|
394
|
+
"P\"2!\"/\""
|
|
395
|
+
])).filter(Boolean);
|
|
293
396
|
return (0, _powerlines_plugin_alloy_render.render)(this, (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core_components.For, {
|
|
294
397
|
get each() {
|
|
295
398
|
return Object.values(commands);
|
|
296
399
|
},
|
|
297
400
|
doubleHardline: true,
|
|
298
|
-
children
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
401
|
+
get children() {
|
|
402
|
+
return __assignType((child) => (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core_components.Show, {
|
|
403
|
+
get when() {
|
|
404
|
+
return !child.isVirtual;
|
|
405
|
+
},
|
|
406
|
+
get children() {
|
|
407
|
+
return (0, _alloy_js_core_jsx_runtime.createComponent)(require_components_docs.CommandDocsFile, { command: child });
|
|
408
|
+
}
|
|
409
|
+
}), [
|
|
410
|
+
"child",
|
|
411
|
+
"",
|
|
412
|
+
"P\"2!\"/\""
|
|
413
|
+
]);
|
|
414
|
+
}
|
|
306
415
|
}));
|
|
307
416
|
}
|
|
308
417
|
}
|
|
309
418
|
];
|
|
310
|
-
}
|
|
419
|
+
}, [
|
|
420
|
+
"Options",
|
|
421
|
+
"options",
|
|
422
|
+
() => ({}),
|
|
423
|
+
"",
|
|
424
|
+
"P\"w!2\">#!F/$"
|
|
425
|
+
]);
|
|
311
426
|
|
|
312
427
|
//#endregion
|
|
313
428
|
exports.default = plugin;
|
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":";;;;;;;AAkFA;cAAa,MAAA,oBAA2B,OAAA,GAAU,OAAA,EAChD,OAAA,GAAS,OAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/plugin.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../src/plugin.tsx"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../src/plugin.tsx"],"mappings":";;;;;;;AAkFA;cAAa,MAAA,oBAA2B,OAAA,GAAU,OAAA,EAChD,OAAA,GAAS,OAAA,KACR,MAAA,CAAO,QAAA"}
|