@shell-shock/preset-script 0.6.21 → 0.6.22

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.
Files changed (58) hide show
  1. package/dist/components/banner-function-declaration.cjs +5 -5
  2. package/dist/components/banner-function-declaration.cjs.map +1 -1
  3. package/dist/components/banner-function-declaration.d.cts.map +1 -1
  4. package/dist/components/banner-function-declaration.d.mts.map +1 -1
  5. package/dist/components/banner-function-declaration.mjs +1 -1
  6. package/dist/components/banner-function-declaration.mjs.map +1 -1
  7. package/dist/components/bin-entry.cjs +3 -2
  8. package/dist/components/bin-entry.cjs.map +1 -1
  9. package/dist/components/bin-entry.mjs +2 -1
  10. package/dist/components/bin-entry.mjs.map +1 -1
  11. package/dist/components/command-entry.cjs +13 -13
  12. package/dist/components/command-entry.cjs.map +1 -1
  13. package/dist/components/command-entry.d.cts +1 -1
  14. package/dist/components/command-entry.d.cts.map +1 -1
  15. package/dist/components/command-entry.d.mts +1 -1
  16. package/dist/components/command-entry.d.mts.map +1 -1
  17. package/dist/components/command-entry.mjs +10 -10
  18. package/dist/components/command-entry.mjs.map +1 -1
  19. package/dist/components/command-router.cjs +2 -2
  20. package/dist/components/command-router.cjs.map +1 -1
  21. package/dist/components/command-router.mjs +1 -1
  22. package/dist/components/command-router.mjs.map +1 -1
  23. package/dist/components/exit-function-declaration.cjs +4 -4
  24. package/dist/components/exit-function-declaration.cjs.map +1 -1
  25. package/dist/components/exit-function-declaration.d.cts +2 -2
  26. package/dist/components/exit-function-declaration.d.mts +2 -2
  27. package/dist/components/exit-function-declaration.mjs +1 -1
  28. package/dist/components/exit-function-declaration.mjs.map +1 -1
  29. package/dist/components/help.cjs +9 -10
  30. package/dist/components/help.cjs.map +1 -1
  31. package/dist/components/help.d.cts +8 -8
  32. package/dist/components/help.d.cts.map +1 -1
  33. package/dist/components/help.d.mts +1 -1
  34. package/dist/components/help.d.mts.map +1 -1
  35. package/dist/components/help.mjs +6 -7
  36. package/dist/components/help.mjs.map +1 -1
  37. package/dist/components/virtual-command-entry.cjs +4 -3
  38. package/dist/components/virtual-command-entry.cjs.map +1 -1
  39. package/dist/components/virtual-command-entry.mjs +2 -1
  40. package/dist/components/virtual-command-entry.mjs.map +1 -1
  41. package/dist/helpers/get-default-options.cjs +6 -6
  42. package/dist/helpers/get-default-options.cjs.map +1 -1
  43. package/dist/helpers/get-default-options.mjs +6 -6
  44. package/dist/helpers/get-default-options.mjs.map +1 -1
  45. package/dist/index.cjs +5 -1
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.mjs +5 -1
  48. package/dist/index.mjs.map +1 -1
  49. package/dist/types/plugin.d.mts.map +1 -1
  50. package/package.json +13 -27
  51. package/dist/components/helpers.cjs +0 -54
  52. package/dist/components/helpers.cjs.map +0 -1
  53. package/dist/components/helpers.d.cts +0 -29
  54. package/dist/components/helpers.d.cts.map +0 -1
  55. package/dist/components/helpers.d.mts +0 -29
  56. package/dist/components/helpers.d.mts.map +0 -1
  57. package/dist/components/helpers.mjs +0 -50
  58. package/dist/components/helpers.mjs.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/preset-script",
3
- "version": "0.6.21",
3
+ "version": "0.6.22",
4
4
  "private": false,
5
5
  "description": "A Shell Shock preset that generates a fully-featured script application.",
6
6
  "keywords": [
@@ -158,20 +158,6 @@
158
158
  "default": "./dist/components/help.mjs"
159
159
  }
160
160
  },
161
- "./components/helpers": {
162
- "require": {
163
- "types": "./dist/components/helpers.d.cts",
164
- "default": "./dist/components/helpers.cjs"
165
- },
166
- "import": {
167
- "types": "./dist/components/helpers.d.mts",
168
- "default": "./dist/components/helpers.mjs"
169
- },
170
- "default": {
171
- "types": "./dist/components/helpers.d.mts",
172
- "default": "./dist/components/helpers.mjs"
173
- }
174
- },
175
161
  "./components/virtual-command-entry": {
176
162
  "require": {
177
163
  "types": "./dist/components/virtual-command-entry.d.cts",
@@ -237,23 +223,23 @@
237
223
  "dependencies": {
238
224
  "@alloy-js/core": "0.23.0-dev.8",
239
225
  "@alloy-js/typescript": "0.23.0-dev.4",
240
- "@powerlines/deepkit": "^0.6.88",
241
- "@powerlines/plugin-alloy": "^0.23.40",
242
- "@powerlines/plugin-plugin": "^0.12.260",
243
- "@shell-shock/core": "^0.10.0",
244
- "@shell-shock/plugin-console": "^0.1.6",
245
- "@shell-shock/plugin-theme": "^0.3.10",
246
- "@stryke/helpers": "^0.9.42",
247
- "@stryke/path": "^0.26.6",
248
- "@stryke/string-format": "^0.14.2",
226
+ "@powerlines/deepkit": "^0.6.90",
227
+ "@powerlines/plugin-alloy": "^0.24.2",
228
+ "@powerlines/plugin-plugin": "^0.12.262",
229
+ "@shell-shock/core": "^0.11.0",
230
+ "@shell-shock/plugin-console": "^0.1.7",
231
+ "@shell-shock/plugin-theme": "^0.3.11",
232
+ "@stryke/helpers": "^0.9.48",
233
+ "@stryke/path": "^0.26.12",
234
+ "@stryke/string-format": "^0.14.8",
249
235
  "defu": "^6.1.4",
250
- "powerlines": "^0.39.17"
236
+ "powerlines": "^0.39.19"
251
237
  },
252
238
  "devDependencies": {
253
239
  "@babel/core": "^7.29.0",
254
- "@powerlines/plugin-alloy": "^0.23.40",
240
+ "@powerlines/plugin-alloy": "^0.24.2",
255
241
  "@types/node": "^25.3.3"
256
242
  },
257
243
  "publishConfig": { "access": "public" },
258
- "gitHead": "d0abdaa95b5e40df2157d393f0ba8499589140ca"
244
+ "gitHead": "6fbda1ffc234bdd12b5d0fd0a32e59727b369c5c"
259
245
  }
@@ -1,54 +0,0 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
3
- let __alloy_js_core = require("@alloy-js/core");
4
-
5
- //#region src/components/helpers.tsx
6
- /**
7
- * Write the logic to determine if the application is running in debug mode.
8
- *
9
- * @remarks
10
- * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.
11
- */
12
- function IsDebug() {
13
- return __alloy_js_core.code`isDevelopment || isDebug || env.LOG_LEVEL === "debug"`;
14
- }
15
- /**
16
- * Write the logic to determine if the application is **not** running in debug mode.
17
- */
18
- function IsNotDebug() {
19
- return [
20
- __alloy_js_core.code`!(`,
21
- (0, __alloy_js_core_jsx_runtime.createComponent)(IsDebug, {}),
22
- __alloy_js_core.code`)`
23
- ];
24
- }
25
- /**
26
- * Write the logic to determine if the application is running in verbose mode.
27
- *
28
- * @remarks
29
- * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.
30
- */
31
- function IsVerbose() {
32
- return [
33
- __alloy_js_core.code`( `,
34
- (0, __alloy_js_core_jsx_runtime.createComponent)(IsDebug, {}),
35
- __alloy_js_core.code`|| hasFlag(["verbose", "verbose=true", "verbose=always"]))`
36
- ];
37
- }
38
- /**
39
- * Write the logic to determine if the application is **not** running in verbose mode.
40
- */
41
- function IsNotVerbose() {
42
- return [
43
- __alloy_js_core.code`!(`,
44
- (0, __alloy_js_core_jsx_runtime.createComponent)(IsVerbose, {}),
45
- __alloy_js_core.code`)`
46
- ];
47
- }
48
-
49
- //#endregion
50
- exports.IsDebug = IsDebug;
51
- exports.IsNotDebug = IsNotDebug;
52
- exports.IsNotVerbose = IsNotVerbose;
53
- exports.IsVerbose = IsVerbose;
54
- //# sourceMappingURL=helpers.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.cjs","names":["code","IsDebug","IsNotDebug","_$createComponent","IsVerbose","IsNotVerbose"],"sources":["../../src/components/helpers.tsx"],"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 { code } from \"@alloy-js/core\";\n\n/**\n * Write the logic to determine if the application is running in debug mode.\n *\n * @remarks\n * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.\n */\nexport function IsDebug() {\n return code`isDevelopment || isDebug || env.LOG_LEVEL === \"debug\"`;\n}\n\n/**\n * Write the logic to determine if the application is **not** running in debug mode.\n */\nexport function IsNotDebug() {\n return (\n <>\n {code`!(`}\n <IsDebug />\n {code`)`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is running in verbose mode.\n *\n * @remarks\n * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.\n */\nexport function IsVerbose() {\n return (\n <>\n {code`( `}\n <IsDebug />\n {code`|| hasFlag([\"verbose\", \"verbose=true\", \"verbose=always\"]))`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is **not** running in verbose mode.\n */\nexport function IsNotVerbose() {\n return (\n <>\n {code`!(`}\n <IsVerbose />\n {code`)`}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;AA0BA,SAAgBC,UAAU;AACxB,QAAOD,oBAAI;;;;;AAMb,SAAgBE,aAAa;AAC3B,QAAA;EAEKF,oBAAI;mDACJC,SAAO,EAAA,CAAA;EACPD,oBAAI;EAAG;;;;;;;;AAWd,SAAgBI,YAAY;AAC1B,QAAA;EAEKJ,oBAAI;mDACJC,SAAO,EAAA,CAAA;EACPD,oBAAI;EAA4D;;;;;AAQvE,SAAgBK,eAAe;AAC7B,QAAA;EAEKL,oBAAI;mDACJI,WAAS,EAAA,CAAA;EACTJ,oBAAI;EAAG"}
@@ -1,29 +0,0 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
2
-
3
- //#region src/components/helpers.d.ts
4
-
5
- /**
6
- * Write the logic to determine if the application is running in debug mode.
7
- *
8
- * @remarks
9
- * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.
10
- */
11
- declare function IsDebug(): _alloy_js_core0.Children;
12
- /**
13
- * Write the logic to determine if the application is **not** running in debug mode.
14
- */
15
- declare function IsNotDebug(): _alloy_js_core0.Children;
16
- /**
17
- * Write the logic to determine if the application is running in verbose mode.
18
- *
19
- * @remarks
20
- * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.
21
- */
22
- declare function IsVerbose(): _alloy_js_core0.Children;
23
- /**
24
- * Write the logic to determine if the application is **not** running in verbose mode.
25
- */
26
- declare function IsNotVerbose(): _alloy_js_core0.Children;
27
- //#endregion
28
- export { IsDebug, IsNotDebug, IsNotVerbose, IsVerbose };
29
- //# sourceMappingURL=helpers.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/components/helpers.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA0BA;AAOA;AAgBA;AAagB,iBApCA,OAAA,CAAA,CAoCY,EApCL,eAAA,CAAA,QAoCK;;;;iBA7BZ,UAAA,CAAA,GAAU,eAAA,CAAA;;;;;;;iBAgBV,SAAA,CAAA,GAAS,eAAA,CAAA;;;;iBAaT,YAAA,CAAA,GAAY,eAAA,CAAA"}
@@ -1,29 +0,0 @@
1
- import * as _alloy_js_core6 from "@alloy-js/core";
2
-
3
- //#region src/components/helpers.d.ts
4
-
5
- /**
6
- * Write the logic to determine if the application is running in debug mode.
7
- *
8
- * @remarks
9
- * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.
10
- */
11
- declare function IsDebug(): _alloy_js_core6.Children;
12
- /**
13
- * Write the logic to determine if the application is **not** running in debug mode.
14
- */
15
- declare function IsNotDebug(): _alloy_js_core6.Children;
16
- /**
17
- * Write the logic to determine if the application is running in verbose mode.
18
- *
19
- * @remarks
20
- * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.
21
- */
22
- declare function IsVerbose(): _alloy_js_core6.Children;
23
- /**
24
- * Write the logic to determine if the application is **not** running in verbose mode.
25
- */
26
- declare function IsNotVerbose(): _alloy_js_core6.Children;
27
- //#endregion
28
- export { IsDebug, IsNotDebug, IsNotVerbose, IsVerbose };
29
- //# sourceMappingURL=helpers.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/components/helpers.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA0BA;AAOA;AAgBA;AAagB,iBApCA,OAAA,CAAA,CAoCY,EApCL,eAAA,CAAA,QAoCK;;;;iBA7BZ,UAAA,CAAA,GAAU,eAAA,CAAA;;;;;;;iBAgBV,SAAA,CAAA,GAAS,eAAA,CAAA;;;;iBAaT,YAAA,CAAA,GAAY,eAAA,CAAA"}
@@ -1,50 +0,0 @@
1
- import { createComponent } from "@alloy-js/core/jsx-runtime";
2
- import { code } from "@alloy-js/core";
3
-
4
- //#region src/components/helpers.tsx
5
- /**
6
- * Write the logic to determine if the application is running in debug mode.
7
- *
8
- * @remarks
9
- * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.
10
- */
11
- function IsDebug() {
12
- return code`isDevelopment || isDebug || env.LOG_LEVEL === "debug"`;
13
- }
14
- /**
15
- * Write the logic to determine if the application is **not** running in debug mode.
16
- */
17
- function IsNotDebug() {
18
- return [
19
- code`!(`,
20
- createComponent(IsDebug, {}),
21
- code`)`
22
- ];
23
- }
24
- /**
25
- * Write the logic to determine if the application is running in verbose mode.
26
- *
27
- * @remarks
28
- * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.
29
- */
30
- function IsVerbose() {
31
- return [
32
- code`( `,
33
- createComponent(IsDebug, {}),
34
- code`|| hasFlag(["verbose", "verbose=true", "verbose=always"]))`
35
- ];
36
- }
37
- /**
38
- * Write the logic to determine if the application is **not** running in verbose mode.
39
- */
40
- function IsNotVerbose() {
41
- return [
42
- code`!(`,
43
- createComponent(IsVerbose, {}),
44
- code`)`
45
- ];
46
- }
47
-
48
- //#endregion
49
- export { IsDebug, IsNotDebug, IsNotVerbose, IsVerbose };
50
- //# sourceMappingURL=helpers.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.mjs","names":["code","IsDebug","IsNotDebug","_$createComponent","IsVerbose","IsNotVerbose"],"sources":["../../src/components/helpers.tsx"],"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 { code } from \"@alloy-js/core\";\n\n/**\n * Write the logic to determine if the application is running in debug mode.\n *\n * @remarks\n * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.\n */\nexport function IsDebug() {\n return code`isDevelopment || isDebug || env.LOG_LEVEL === \"debug\"`;\n}\n\n/**\n * Write the logic to determine if the application is **not** running in debug mode.\n */\nexport function IsNotDebug() {\n return (\n <>\n {code`!(`}\n <IsDebug />\n {code`)`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is running in verbose mode.\n *\n * @remarks\n * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.\n */\nexport function IsVerbose() {\n return (\n <>\n {code`( `}\n <IsDebug />\n {code`|| hasFlag([\"verbose\", \"verbose=true\", \"verbose=always\"]))`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is **not** running in verbose mode.\n */\nexport function IsNotVerbose() {\n return (\n <>\n {code`!(`}\n <IsVerbose />\n {code`)`}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;AA0BA,SAAgBC,UAAU;AACxB,QAAOD,IAAI;;;;;AAMb,SAAgBE,aAAa;AAC3B,QAAA;EAEKF,IAAI;EAAIG,gBACRF,SAAO,EAAA,CAAA;EACPD,IAAI;EAAG;;;;;;;;AAWd,SAAgBI,YAAY;AAC1B,QAAA;EAEKJ,IAAI;EAAIG,gBACRF,SAAO,EAAA,CAAA;EACPD,IAAI;EAA4D;;;;;AAQvE,SAAgBK,eAAe;AAC7B,QAAA;EAEKL,IAAI;EAAIG,gBACRC,WAAS,EAAA,CAAA;EACTJ,IAAI;EAAG"}