@shell-shock/core 0.17.11 → 0.17.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/usage.cjs +0 -1
- package/dist/components/usage.mjs +0 -1
- package/dist/package.cjs +1 -1
- package/dist/package.mjs +1 -1
- package/dist/resolver/resolve.cjs +3 -2
- package/dist/resolver/resolve.mjs +3 -2
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.mts +1 -1
- package/package.json +14 -14
|
@@ -30,7 +30,6 @@ const __ΩUsageProps = [
|
|
|
30
30
|
function Usage(props) {
|
|
31
31
|
const { command, bin, packageManager } = props;
|
|
32
32
|
return [
|
|
33
|
-
_alloy_js_core.code`$ `,
|
|
34
33
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Switch, { get children() {
|
|
35
34
|
return [
|
|
36
35
|
(0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Match, {
|
package/dist/package.cjs
CHANGED
package/dist/package.mjs
CHANGED
|
@@ -3,6 +3,7 @@ const require_utilities = require('../helpers/utilities.cjs');
|
|
|
3
3
|
const require_helpers = require('./helpers.cjs');
|
|
4
4
|
let _powerlines_schema = require("@powerlines/schema");
|
|
5
5
|
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
6
|
+
let _stryke_path_replace = require("@stryke/path/replace");
|
|
6
7
|
let _stryke_string_format_constant_case = require("@stryke/string-format/constant-case");
|
|
7
8
|
let _stryke_type_checks_is_set_object = require("@stryke/type-checks/is-set-object");
|
|
8
9
|
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
@@ -280,9 +281,9 @@ async function preprocess(input) {
|
|
|
280
281
|
};
|
|
281
282
|
if (!command.virtual) {
|
|
282
283
|
if (!command.entry.input?.file || !context.fs.existsSync(command.entry.input.file)) throw new Error(`${!command.entry.input?.file ? "Missing" : "Non-existent"} command entry file for "${command.name}"`);
|
|
283
|
-
context.debug(`Adding reflection for CLI command: ${command.id} (file: ${command.entry.input.file})`);
|
|
284
|
+
context.debug(`Adding reflection for CLI command: ${command.id} (file: ${(0, _stryke_path_replace.replacePath)(command.entry.input.file, context.config.cwd)})`);
|
|
284
285
|
result.module = await (_powerlines_schema.resolveModule.Ω = [["CommandModule", "\"w!"]], (0, _powerlines_schema.resolveModule)(context, command.entry.input, {
|
|
285
|
-
name: command.title || (0, _stryke_string_format_title_case.titleCase)(command.name)
|
|
286
|
+
name: `${command.title || (0, _stryke_string_format_title_case.titleCase)(command.name)} Command Bundler`,
|
|
286
287
|
plugins: [(0, _powerlines_deepkit_esbuild_plugin.esbuildPlugin)(context, {
|
|
287
288
|
reflection: "default",
|
|
288
289
|
level: "all"
|
|
@@ -3,6 +3,7 @@ import { getGlobalOptions } from "../helpers/utilities.mjs";
|
|
|
3
3
|
import { applyArgsDefaults, applyDefaults, applyOptionsDefaults, resolveVirtualCommand } from "./helpers.mjs";
|
|
4
4
|
import { addProperty, extract, getPropertiesList, resolveModule } from "@powerlines/schema";
|
|
5
5
|
import { toArray } from "@stryke/convert/to-array";
|
|
6
|
+
import { replacePath } from "@stryke/path/replace";
|
|
6
7
|
import { constantCase } from "@stryke/string-format/constant-case";
|
|
7
8
|
import { isSetObject } from "@stryke/type-checks/is-set-object";
|
|
8
9
|
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
@@ -280,9 +281,9 @@ async function preprocess(input) {
|
|
|
280
281
|
};
|
|
281
282
|
if (!command.virtual) {
|
|
282
283
|
if (!command.entry.input?.file || !context.fs.existsSync(command.entry.input.file)) throw new Error(`${!command.entry.input?.file ? "Missing" : "Non-existent"} command entry file for "${command.name}"`);
|
|
283
|
-
context.debug(`Adding reflection for CLI command: ${command.id} (file: ${command.entry.input.file})`);
|
|
284
|
+
context.debug(`Adding reflection for CLI command: ${command.id} (file: ${replacePath(command.entry.input.file, context.config.cwd)})`);
|
|
284
285
|
result.module = await (resolveModule.Ω = [["CommandModule", "\"w!"]], resolveModule(context, command.entry.input, {
|
|
285
|
-
name: command.title || titleCase(command.name)
|
|
286
|
+
name: `${command.title || titleCase(command.name)} Command Bundler`,
|
|
286
287
|
plugins: [esbuildPlugin(context, {
|
|
287
288
|
reflection: "default",
|
|
288
289
|
level: "all"
|
package/dist/types/config.d.cts
CHANGED
|
@@ -52,7 +52,7 @@ interface BaseOptions {
|
|
|
52
52
|
* Should Shell Shock attempt to automatically assign environment variables to manipulate default values for command options based on the option name?
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* If set to a string, Shell Shock will use the provided string as an application specific environment variable prefix, convert the option name to {@link https://stringcase.org/cases/constant/ | constant case}, and prepend the provided `string` value to determine the corresponding environment variable name. For example, if an option is named `"configPath"` and the `autoAssignEnv` is `"
|
|
55
|
+
* If set to a string, Shell Shock will use the provided string as an application specific environment variable prefix, convert the option name to {@link https://stringcase.org/cases/constant/ | constant case}, and prepend the provided `string` value to determine the corresponding environment variable name. For example, if an option is named `"configPath"` and the `autoAssignEnv` is `"MY_APP"`, Shell Shock will look for an environment variable named `"MY_APP_CONFIG_PATH"` and assign its value to the option if it exists. If set to `true`, Shell Shock will use a default environment variable prefix derived from the {@link Options.name | application name}.
|
|
56
56
|
*
|
|
57
57
|
* @see https://medium.com/chingu/an-introduction-to-environment-variables-and-how-to-use-them-f602f66d15fa
|
|
58
58
|
* @see https://stringcase.org/cases/constant/
|
package/dist/types/config.d.mts
CHANGED
|
@@ -52,7 +52,7 @@ interface BaseOptions {
|
|
|
52
52
|
* Should Shell Shock attempt to automatically assign environment variables to manipulate default values for command options based on the option name?
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* If set to a string, Shell Shock will use the provided string as an application specific environment variable prefix, convert the option name to {@link https://stringcase.org/cases/constant/ | constant case}, and prepend the provided `string` value to determine the corresponding environment variable name. For example, if an option is named `"configPath"` and the `autoAssignEnv` is `"
|
|
55
|
+
* If set to a string, Shell Shock will use the provided string as an application specific environment variable prefix, convert the option name to {@link https://stringcase.org/cases/constant/ | constant case}, and prepend the provided `string` value to determine the corresponding environment variable name. For example, if an option is named `"configPath"` and the `autoAssignEnv` is `"MY_APP"`, Shell Shock will look for an environment variable named `"MY_APP_CONFIG_PATH"` and assign its value to the option if it exists. If set to `true`, Shell Shock will use a default environment variable prefix derived from the {@link Options.name | application name}.
|
|
56
56
|
*
|
|
57
57
|
* @see https://medium.com/chingu/an-introduction-to-environment-variables-and-how-to-use-them-f602f66d15fa
|
|
58
58
|
* @see https://stringcase.org/cases/constant/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/core",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing the core Shell Shock functionality used to build and manage a command-line application.",
|
|
6
6
|
"keywords": ["shell-shock", "powerlines", "storm-software"],
|
|
@@ -378,15 +378,15 @@
|
|
|
378
378
|
"@alloy-js/core": "^0.23.1",
|
|
379
379
|
"@alloy-js/markdown": "^0.23.0",
|
|
380
380
|
"@alloy-js/typescript": "^0.23.0",
|
|
381
|
-
"@powerlines/core": "^0.48.
|
|
382
|
-
"@powerlines/deepkit": "^0.9.
|
|
383
|
-
"@powerlines/engine": "^0.49.
|
|
384
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
385
|
-
"@powerlines/plugin-automd": "^0.1.
|
|
386
|
-
"@powerlines/plugin-deepkit": "^0.11.
|
|
387
|
-
"@powerlines/plugin-nodejs": "^0.1.
|
|
388
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
389
|
-
"@powerlines/schema": "^0.11.
|
|
381
|
+
"@powerlines/core": "^0.48.48",
|
|
382
|
+
"@powerlines/deepkit": "^0.9.80",
|
|
383
|
+
"@powerlines/engine": "^0.49.50",
|
|
384
|
+
"@powerlines/plugin-alloy": "^0.26.219",
|
|
385
|
+
"@powerlines/plugin-automd": "^0.1.587",
|
|
386
|
+
"@powerlines/plugin-deepkit": "^0.11.469",
|
|
387
|
+
"@powerlines/plugin-nodejs": "^0.1.531",
|
|
388
|
+
"@powerlines/plugin-tsdown": "^0.1.527",
|
|
389
|
+
"@powerlines/schema": "^0.11.108",
|
|
390
390
|
"@stryke/cli": "^0.13.57",
|
|
391
391
|
"@stryke/convert": "^0.7.15",
|
|
392
392
|
"@stryke/fs": "^0.33.85",
|
|
@@ -398,14 +398,14 @@
|
|
|
398
398
|
"@stryke/types": "^0.12.12",
|
|
399
399
|
"automd": "^0.4.3",
|
|
400
400
|
"defu": "^6.1.7",
|
|
401
|
-
"powerlines": "^0.47.
|
|
402
|
-
"tsdown": "^0.22.
|
|
401
|
+
"powerlines": "^0.47.126",
|
|
402
|
+
"tsdown": "^0.22.2"
|
|
403
403
|
},
|
|
404
404
|
"devDependencies": {
|
|
405
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
405
|
+
"@powerlines/plugin-plugin": "^0.12.538",
|
|
406
406
|
"@types/node": "^25.9.1",
|
|
407
407
|
"typescript": "^6.0.3"
|
|
408
408
|
},
|
|
409
409
|
"publishConfig": { "access": "public" },
|
|
410
|
-
"gitHead": "
|
|
410
|
+
"gitHead": "3c10901dd3fbbc3c9d6d1a3373f01cc5f56d3321"
|
|
411
411
|
}
|