@shell-shock/nx 0.0.42 → 0.0.43

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 (106) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{base-executor-FX7YJl7f.d.ts → base-executor-5IKYZdSK.d.mts} +1 -13
  3. package/dist/base-executor-5IKYZdSK.d.mts.map +1 -0
  4. package/dist/{src/base-executor-CkaF97Xd.js → base-executor-B_1n4Nst.js} +6 -6
  5. package/dist/{src/base-executor-FX7YJl7f.d.ts → base-executor-D8wAP52R.d.ts} +1 -13
  6. package/dist/base-executor-D8wAP52R.d.ts.map +1 -0
  7. package/dist/{src/base-executor-DUf5AdoE.mjs → base-executor-Tb7NcSc4.mjs} +1 -1
  8. package/dist/{base-executor-DUf5AdoE.mjs.map → base-executor-Tb7NcSc4.mjs.map} +1 -1
  9. package/dist/executors/build/executor.d.mts +1 -15
  10. package/dist/executors/build/executor.d.mts.map +1 -1
  11. package/dist/executors/build/executor.d.ts +1 -15
  12. package/dist/executors/build/executor.d.ts.map +1 -1
  13. package/dist/executors/build/executor.js +3 -4
  14. package/dist/executors/build/executor.mjs +2 -3
  15. package/dist/executors/build/executor.mjs.map +1 -1
  16. package/dist/executors/clean/executor.d.mts +1 -15
  17. package/dist/executors/clean/executor.d.mts.map +1 -1
  18. package/dist/executors/clean/executor.d.ts +1 -15
  19. package/dist/executors/clean/executor.d.ts.map +1 -1
  20. package/dist/executors/clean/executor.js +3 -4
  21. package/dist/executors/clean/executor.mjs +2 -3
  22. package/dist/executors/clean/executor.mjs.map +1 -1
  23. package/dist/executors/docs/executor.d.mts +1 -15
  24. package/dist/executors/docs/executor.d.mts.map +1 -1
  25. package/dist/executors/docs/executor.d.ts +1 -15
  26. package/dist/executors/docs/executor.d.ts.map +1 -1
  27. package/dist/executors/docs/executor.js +3 -4
  28. package/dist/executors/docs/executor.mjs +2 -3
  29. package/dist/executors/docs/executor.mjs.map +1 -1
  30. package/dist/executors/lint/executor.d.mts +1 -15
  31. package/dist/executors/lint/executor.d.mts.map +1 -1
  32. package/dist/executors/lint/executor.d.ts +1 -15
  33. package/dist/executors/lint/executor.d.ts.map +1 -1
  34. package/dist/executors/lint/executor.js +3 -4
  35. package/dist/executors/lint/executor.mjs +2 -3
  36. package/dist/executors/lint/executor.mjs.map +1 -1
  37. package/dist/executors/prepare/executor.d.mts +1 -15
  38. package/dist/executors/prepare/executor.d.mts.map +1 -1
  39. package/dist/executors/prepare/executor.d.ts +1 -15
  40. package/dist/executors/prepare/executor.d.ts.map +1 -1
  41. package/dist/executors/prepare/executor.js +3 -4
  42. package/dist/executors/prepare/executor.mjs +2 -3
  43. package/dist/executors/prepare/executor.mjs.map +1 -1
  44. package/dist/index.d.mts +1 -2
  45. package/dist/index.d.ts +1 -1
  46. package/dist/index.js +5 -4
  47. package/dist/index.mjs +1 -1
  48. package/dist/plugin/index.d.mts.map +1 -1
  49. package/dist/plugin/index.d.ts.map +1 -1
  50. package/dist/plugin/index.js +4 -3
  51. package/dist/plugin/index.mjs.map +1 -1
  52. package/dist/{base-executor-BkNTl-jk.d.mts → src/base-executor-5IKYZdSK.d.mts} +1 -13
  53. package/dist/src/base-executor-5IKYZdSK.d.mts.map +1 -0
  54. package/dist/{base-executor-CkaF97Xd.js → src/base-executor-B_1n4Nst.js} +6 -6
  55. package/dist/src/{base-executor-BkNTl-jk.d.mts → base-executor-D8wAP52R.d.ts} +1 -13
  56. package/dist/src/base-executor-D8wAP52R.d.ts.map +1 -0
  57. package/dist/{base-executor-DUf5AdoE.mjs → src/base-executor-Tb7NcSc4.mjs} +1 -1
  58. package/dist/src/{base-executor-DUf5AdoE.mjs.map → base-executor-Tb7NcSc4.mjs.map} +1 -1
  59. package/dist/src/executors/build/executor.d.mts +1 -15
  60. package/dist/src/executors/build/executor.d.mts.map +1 -1
  61. package/dist/src/executors/build/executor.d.ts +1 -15
  62. package/dist/src/executors/build/executor.d.ts.map +1 -1
  63. package/dist/src/executors/build/executor.js +3 -4
  64. package/dist/src/executors/build/executor.mjs +2 -3
  65. package/dist/src/executors/build/executor.mjs.map +1 -1
  66. package/dist/src/executors/clean/executor.d.mts +1 -15
  67. package/dist/src/executors/clean/executor.d.mts.map +1 -1
  68. package/dist/src/executors/clean/executor.d.ts +1 -15
  69. package/dist/src/executors/clean/executor.d.ts.map +1 -1
  70. package/dist/src/executors/clean/executor.js +3 -4
  71. package/dist/src/executors/clean/executor.mjs +2 -3
  72. package/dist/src/executors/clean/executor.mjs.map +1 -1
  73. package/dist/src/executors/docs/executor.d.mts +1 -15
  74. package/dist/src/executors/docs/executor.d.mts.map +1 -1
  75. package/dist/src/executors/docs/executor.d.ts +1 -15
  76. package/dist/src/executors/docs/executor.d.ts.map +1 -1
  77. package/dist/src/executors/docs/executor.js +3 -4
  78. package/dist/src/executors/docs/executor.mjs +2 -3
  79. package/dist/src/executors/docs/executor.mjs.map +1 -1
  80. package/dist/src/executors/lint/executor.d.mts +1 -15
  81. package/dist/src/executors/lint/executor.d.mts.map +1 -1
  82. package/dist/src/executors/lint/executor.d.ts +1 -15
  83. package/dist/src/executors/lint/executor.d.ts.map +1 -1
  84. package/dist/src/executors/lint/executor.js +3 -4
  85. package/dist/src/executors/lint/executor.mjs +2 -3
  86. package/dist/src/executors/lint/executor.mjs.map +1 -1
  87. package/dist/src/executors/prepare/executor.d.mts +1 -15
  88. package/dist/src/executors/prepare/executor.d.mts.map +1 -1
  89. package/dist/src/executors/prepare/executor.d.ts +1 -15
  90. package/dist/src/executors/prepare/executor.d.ts.map +1 -1
  91. package/dist/src/executors/prepare/executor.js +3 -4
  92. package/dist/src/executors/prepare/executor.mjs +2 -3
  93. package/dist/src/executors/prepare/executor.mjs.map +1 -1
  94. package/dist/src/index.d.mts +1 -2
  95. package/dist/src/index.d.ts +1 -1
  96. package/dist/src/index.js +5 -4
  97. package/dist/src/index.mjs +1 -1
  98. package/dist/src/plugin/index.d.mts.map +1 -1
  99. package/dist/src/plugin/index.d.ts.map +1 -1
  100. package/dist/src/plugin/index.js +4 -3
  101. package/dist/src/plugin/index.mjs.map +1 -1
  102. package/package.json +13 -13
  103. package/dist/base-executor-BkNTl-jk.d.mts.map +0 -1
  104. package/dist/base-executor-FX7YJl7f.d.ts.map +0 -1
  105. package/dist/src/base-executor-BkNTl-jk.d.mts.map +0 -1
  106. package/dist/src/base-executor-FX7YJl7f.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  # Changelog for Shell Shock - Nx
4
4
 
5
+ ## [0.0.44](https://github.com/storm-software/shell-shock/releases/tag/nx%400.0.44) (03/16/2026)
6
+
7
+ ### Updated Dependencies
8
+
9
+ - Updated **core** to **v0.13.0**
10
+
5
11
  ## [0.0.43](https://github.com/storm-software/shell-shock/releases/tag/nx%400.0.43) (03/06/2026)
6
12
 
7
13
  ### Updated Dependencies
@@ -18,7 +18,6 @@ interface BaseExecutorSchema {
18
18
  * @format path
19
19
  */
20
20
  configFile?: string;
21
-
22
21
  /**
23
22
  * Input Entry File(s)
24
23
  *
@@ -28,7 +27,6 @@ interface BaseExecutorSchema {
28
27
  * @format path
29
28
  */
30
29
  input?: Array<string>;
31
-
32
30
  /**
33
31
  * TSConfig Path
34
32
  *
@@ -39,7 +37,6 @@ interface BaseExecutorSchema {
39
37
  * @format path
40
38
  */
41
39
  tsconfig?: string;
42
-
43
40
  /**
44
41
  * Output Path
45
42
  *
@@ -49,7 +46,6 @@ interface BaseExecutorSchema {
49
46
  * @format path
50
47
  */
51
48
  outputPath?: string;
52
-
53
49
  /**
54
50
  * Sourcemap
55
51
  *
@@ -57,7 +53,6 @@ interface BaseExecutorSchema {
57
53
  *
58
54
  */
59
55
  sourceMap?: boolean;
60
-
61
56
  /**
62
57
  * Format
63
58
  *
@@ -66,7 +61,6 @@ interface BaseExecutorSchema {
66
61
  * @default ["cjs","esm"]
67
62
  */
68
63
  format?: Array<string>;
69
-
70
64
  /**
71
65
  * Platform
72
66
  *
@@ -77,7 +71,6 @@ interface BaseExecutorSchema {
77
71
  * @enum neutral,node,browser
78
72
  */
79
73
  platform?: string;
80
-
81
74
  /**
82
75
  * External
83
76
  *
@@ -85,7 +78,6 @@ interface BaseExecutorSchema {
85
78
  *
86
79
  */
87
80
  external?: Array<any>;
88
-
89
81
  /**
90
82
  * No External
91
83
  *
@@ -93,7 +85,6 @@ interface BaseExecutorSchema {
93
85
  *
94
86
  */
95
87
  noExternal?: Array<any>;
96
-
97
88
  /**
98
89
  * Skip Node Modules Bundle
99
90
  *
@@ -101,7 +92,6 @@ interface BaseExecutorSchema {
101
92
  *
102
93
  */
103
94
  skipNodeModulesBundle?: boolean;
104
-
105
95
  /**
106
96
  * Mode
107
97
  *
@@ -111,7 +101,6 @@ interface BaseExecutorSchema {
111
101
  * @enum development,test,production
112
102
  */
113
103
  mode?: string;
114
-
115
104
  /**
116
105
  * Log Level
117
106
  *
@@ -121,7 +110,6 @@ interface BaseExecutorSchema {
121
110
  * @enum fatal,error,warn,success,info,debug,trace,silent
122
111
  */
123
112
  logLevel?: string;
124
-
125
113
  /**
126
114
  * Define
127
115
  *
@@ -152,4 +140,4 @@ type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCo
152
140
  declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: ShellShockExecutorContext<TCommand, TExecutorSchema>, api: ShellShockAPI) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined): PromiseExecutor<TExecutorSchema>;
153
141
  //#endregion
154
142
  export { withExecutor as n, ShellShockExecutorContext as t };
155
- //# sourceMappingURL=base-executor-FX7YJl7f.d.ts.map
143
+ //# sourceMappingURL=base-executor-5IKYZdSK.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-executor-5IKYZdSK.d.mts","names":["BaseExecutorSchema","Array","Record","configFile","input","tsconfig","outputPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define"],"sources":["../../src/base/base-executor.schema.d.ts","../../src/base/base-executor.ts"],"mappings":";;;;;;;;;UAIiBA,kBAAAA;;;AAAjB;;;;;;;EAUCG,UAAAA;EA+Ge;;;;;;;;EArGfC,KAAAA,GAAQH,KAAAA;;;;;;;;;;EAWRI,QAAAA;;;;ACLD;;;;;EDeCC,UAAAA;;;;;;;EAQAC,SAAAA;;;;;;;;EASAC,MAAAA,GAASP,KAAAA;;;;;;;;;ACXV;EDsBCQ,QAAAA;;;;;;;EAQAC,QAAAA,GAAWT,KAAAA;;;;;;;EAQXU,UAAAA,GAAaV,KAAAA;;;;;;;EAQbW,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASb,MAAAA;AAAAA;;;KC/FE,yBAAA,kBACO,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,IAC3C,eAAA;EACF,WAAA;EACA,OAAA,EAAS,QAAA;EACT,OAAA,EAAS,eAAA;EACT,YAAA,EAAc,YAAA;EACd,eAAA,EAAiB,oBAAA;AAAA;;;;;;;;;;;iBAaH,YAAA,kBACG,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,CAAA,CAE7C,OAAA,EAAS,QAAA,EACT,UAAA,GACE,OAAA,EAAS,yBAAA,CAA0B,QAAA,EAAU,eAAA,GAC7C,GAAA,EAAK,aAAA,KAEH,OAAA,CAAQ,kBAAA,uBACR,kBAAA,sBAGH,eAAA,CAAgB,eAAA"}
@@ -1,4 +1,4 @@
1
- //#region rolldown:runtime
1
+ //#region \0rolldown/runtime.js
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -25,9 +25,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
25
  }) : target, mod));
26
26
 
27
27
  //#endregion
28
- let __storm_software_config_tools_logger = require("@storm-software/config-tools/logger");
29
- let __storm_software_workspace_tools_base_base_executor = require("@storm-software/workspace-tools/base/base-executor");
30
- let __stryke_type_checks_is_error = require("@stryke/type-checks/is-error");
28
+ let _storm_software_config_tools_logger = require("@storm-software/config-tools/logger");
29
+ let _storm_software_workspace_tools_base_base_executor = require("@storm-software/workspace-tools/base/base-executor");
30
+ let _stryke_type_checks_is_error = require("@stryke/type-checks/is-error");
31
31
  let defu = require("defu");
32
32
  defu = __toESM(defu);
33
33
  let jiti = require("jiti");
@@ -44,7 +44,7 @@ let jiti = require("jiti");
44
44
  * @returns A Promise that resolves to the result of the executor function.
45
45
  */
46
46
  function withExecutor(command, executorFn) {
47
- return (0, __storm_software_workspace_tools_base_base_executor.withRunExecutor)(`Shell Shock ${command} command executor`, async (options, context, workspaceConfig) => {
47
+ return (0, _storm_software_workspace_tools_base_base_executor.withRunExecutor)(`Shell Shock ${command} command executor`, async (options, context, workspaceConfig) => {
48
48
  if (!context.projectName) throw new Error("The executor requires `projectName` on the context object.");
49
49
  if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) throw new Error("The executor requires `projectsConfigurations` on the context object.");
50
50
  const projectConfig = context.projectsConfigurations.projects[context.projectName];
@@ -72,7 +72,7 @@ function withExecutor(command, executorFn) {
72
72
  command
73
73
  }, context), api));
74
74
  } catch (error) {
75
- (0, __storm_software_config_tools_logger.writeError)(`An error occurred while executing the Shell Shock ${command} command executor: ${(0, __stryke_type_checks_is_error.isError)(error) ? `${error.message}
75
+ (0, _storm_software_config_tools_logger.writeError)(`An error occurred while executing the Shell Shock ${command} command executor: ${(0, _stryke_type_checks_is_error.isError)(error) ? `${error.message}
76
76
 
77
77
  ${error.stack}` : "Unknown error"}`);
78
78
  return { success: false };
@@ -18,7 +18,6 @@ interface BaseExecutorSchema {
18
18
  * @format path
19
19
  */
20
20
  configFile?: string;
21
-
22
21
  /**
23
22
  * Input Entry File(s)
24
23
  *
@@ -28,7 +27,6 @@ interface BaseExecutorSchema {
28
27
  * @format path
29
28
  */
30
29
  input?: Array<string>;
31
-
32
30
  /**
33
31
  * TSConfig Path
34
32
  *
@@ -39,7 +37,6 @@ interface BaseExecutorSchema {
39
37
  * @format path
40
38
  */
41
39
  tsconfig?: string;
42
-
43
40
  /**
44
41
  * Output Path
45
42
  *
@@ -49,7 +46,6 @@ interface BaseExecutorSchema {
49
46
  * @format path
50
47
  */
51
48
  outputPath?: string;
52
-
53
49
  /**
54
50
  * Sourcemap
55
51
  *
@@ -57,7 +53,6 @@ interface BaseExecutorSchema {
57
53
  *
58
54
  */
59
55
  sourceMap?: boolean;
60
-
61
56
  /**
62
57
  * Format
63
58
  *
@@ -66,7 +61,6 @@ interface BaseExecutorSchema {
66
61
  * @default ["cjs","esm"]
67
62
  */
68
63
  format?: Array<string>;
69
-
70
64
  /**
71
65
  * Platform
72
66
  *
@@ -77,7 +71,6 @@ interface BaseExecutorSchema {
77
71
  * @enum neutral,node,browser
78
72
  */
79
73
  platform?: string;
80
-
81
74
  /**
82
75
  * External
83
76
  *
@@ -85,7 +78,6 @@ interface BaseExecutorSchema {
85
78
  *
86
79
  */
87
80
  external?: Array<any>;
88
-
89
81
  /**
90
82
  * No External
91
83
  *
@@ -93,7 +85,6 @@ interface BaseExecutorSchema {
93
85
  *
94
86
  */
95
87
  noExternal?: Array<any>;
96
-
97
88
  /**
98
89
  * Skip Node Modules Bundle
99
90
  *
@@ -101,7 +92,6 @@ interface BaseExecutorSchema {
101
92
  *
102
93
  */
103
94
  skipNodeModulesBundle?: boolean;
104
-
105
95
  /**
106
96
  * Mode
107
97
  *
@@ -111,7 +101,6 @@ interface BaseExecutorSchema {
111
101
  * @enum development,test,production
112
102
  */
113
103
  mode?: string;
114
-
115
104
  /**
116
105
  * Log Level
117
106
  *
@@ -121,7 +110,6 @@ interface BaseExecutorSchema {
121
110
  * @enum fatal,error,warn,success,info,debug,trace,silent
122
111
  */
123
112
  logLevel?: string;
124
-
125
113
  /**
126
114
  * Define
127
115
  *
@@ -152,4 +140,4 @@ type ShellShockExecutorContext<TCommand extends PowerlinesCommand = PowerlinesCo
152
140
  declare function withExecutor<TCommand extends PowerlinesCommand = PowerlinesCommand, TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema>(command: TCommand, executorFn: (context: ShellShockExecutorContext<TCommand, TExecutorSchema>, api: ShellShockAPI) => Promise<BaseExecutorResult | null | undefined> | BaseExecutorResult | null | undefined): PromiseExecutor<TExecutorSchema>;
153
141
  //#endregion
154
142
  export { withExecutor as n, ShellShockExecutorContext as t };
155
- //# sourceMappingURL=base-executor-FX7YJl7f.d.ts.map
143
+ //# sourceMappingURL=base-executor-D8wAP52R.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-executor-D8wAP52R.d.ts","names":["BaseExecutorSchema","Array","Record","configFile","input","tsconfig","outputPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define"],"sources":["../../src/base/base-executor.schema.d.ts","../../src/base/base-executor.ts"],"mappings":";;;;;;;;;UAIiBA,kBAAAA;;;AAAjB;;;;;;;EAUCG,UAAAA;EA+Ge;;;;;;;;EArGfC,KAAAA,GAAQH,KAAAA;;;;;;;;;;EAWRI,QAAAA;;;;ACLD;;;;;EDeCC,UAAAA;;;;;;;EAQAC,SAAAA;;;;;;;;EASAC,MAAAA,GAASP,KAAAA;;;;;;;;;ACXV;EDsBCQ,QAAAA;;;;;;;EAQAC,QAAAA,GAAWT,KAAAA;;;;;;;EAQXU,UAAAA,GAAaV,KAAAA;;;;;;;EAQbW,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASb,MAAAA;AAAAA;;;KC/FE,yBAAA,kBACO,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,IAC3C,eAAA;EACF,WAAA;EACA,OAAA,EAAS,QAAA;EACT,OAAA,EAAS,eAAA;EACT,YAAA,EAAc,YAAA;EACd,eAAA,EAAiB,oBAAA;AAAA;;;;;;;;;;;iBAaH,YAAA,kBACG,iBAAA,GAAoB,iBAAA,0BACb,kBAAA,GAAqB,kBAAA,CAAA,CAE7C,OAAA,EAAS,QAAA,EACT,UAAA,GACE,OAAA,EAAS,yBAAA,CAA0B,QAAA,EAAU,eAAA,GAC7C,GAAA,EAAK,aAAA,KAEH,OAAA,CAAQ,kBAAA,uBACR,kBAAA,sBAGH,eAAA,CAAgB,eAAA"}
@@ -63,4 +63,4 @@ ${error.stack}` : "Unknown error"}`);
63
63
 
64
64
  //#endregion
65
65
  export { withExecutor as t };
66
- //# sourceMappingURL=base-executor-DUf5AdoE.mjs.map
66
+ //# sourceMappingURL=base-executor-Tb7NcSc4.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-executor-DUf5AdoE.mjs","names":[],"sources":["../../src/base/base-executor.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ExecutorContext, PromiseExecutor } from \"@nx/devkit\";\nimport type { ShellShockAPI, UserConfig } from \"@shell-shock/core\";\nimport { writeError } from \"@storm-software/config-tools/logger\";\nimport type { StormWorkspaceConfig } from \"@storm-software/config/types\";\nimport { withRunExecutor } from \"@storm-software/workspace-tools/base/base-executor\";\nimport type { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport defu from \"defu\";\nimport { createJiti } from \"jiti\";\nimport type { InlineConfig, PowerlinesCommand } from \"powerlines\";\nimport type { BaseExecutorSchema } from \"./base-executor.schema\";\n\nexport type ShellShockExecutorContext<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n> = ExecutorContext & {\n projectName: string;\n command: TCommand;\n options: TExecutorSchema;\n inlineConfig: InlineConfig;\n workspaceConfig: StormWorkspaceConfig;\n};\n\n/**\n * A utility function to create a Shell Shock executor that can be used with the `withRunExecutor` function.\n *\n * @remarks\n * This function is designed to simplify the creation of Shell Shock executors by providing a consistent interface and error handling.\n *\n * @param command - The command that the executor will handle (e.g., \"new\", \"prepare\", \"build\", etc.).\n * @param executorFn - The function that will be executed when the command is run.\n * @returns A Promise that resolves to the result of the executor function.\n */\nexport function withExecutor<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n>(\n command: TCommand,\n executorFn: (\n context: ShellShockExecutorContext<TCommand, TExecutorSchema>,\n api: ShellShockAPI\n ) =>\n | Promise<BaseExecutorResult | null | undefined>\n | BaseExecutorResult\n | null\n | undefined\n): PromiseExecutor<TExecutorSchema> {\n return withRunExecutor(\n `Shell Shock ${command} command executor`,\n async (\n options: TExecutorSchema,\n context: ExecutorContext,\n workspaceConfig: StormWorkspaceConfig\n ): Promise<BaseExecutorResult | null | undefined> => {\n if (!context.projectName) {\n throw new Error(\n \"The executor requires `projectName` on the context object.\"\n );\n }\n\n if (\n !context.projectName ||\n !context.projectsConfigurations?.projects ||\n !context.projectsConfigurations.projects[context.projectName] ||\n !context.projectsConfigurations.projects[context.projectName]?.root\n ) {\n throw new Error(\n \"The executor requires `projectsConfigurations` on the context object.\"\n );\n }\n\n const projectConfig =\n context.projectsConfigurations.projects[context.projectName]!;\n\n const jiti = createJiti(context.root, { cache: false });\n const { createShellShock } = await jiti.import<{\n createShellShock: typeof import(\"@shell-shock/core\").createShellShock;\n }>(\"@shell-shock/core\");\n\n const api = await createShellShock(\n defu(\n {\n name: projectConfig.name,\n root: projectConfig.root,\n sourceRoot: projectConfig.sourceRoot,\n tsconfig: options.tsconfig,\n logLevel: options.logLevel,\n description: projectConfig.metadata?.description,\n projectType: projectConfig.projectType,\n mode: options.mode,\n output: {\n outputPath:\n options.outputPath ??\n projectConfig.targets?.build?.options?.outputPath\n }\n },\n options\n ) as Partial<UserConfig>\n );\n\n try {\n return await Promise.resolve(\n executorFn(\n defu(\n {\n projectName: context.projectName,\n options,\n workspaceConfig,\n inlineConfig: {\n command,\n configFile: options.configFile\n },\n command\n },\n context\n ),\n api\n )\n );\n } catch (error) {\n writeError(\n `An error occurred while executing the Shell Shock ${\n command\n } command executor: ${\n isError(error)\n ? `${error.message}\n\n${error.stack}`\n : \"Unknown error\"\n }`\n );\n\n return { success: false };\n } finally {\n await api.finalize();\n }\n },\n {\n skipReadingConfig: false,\n hooks: {\n applyDefaultOptions: (options: Partial<TExecutorSchema>) => {\n options.outputPath ??= \"dist/{projectRoot}\";\n options.configFile ??= \"{projectRoot}/shell-shock.config.ts\";\n\n return options as TExecutorSchema;\n }\n }\n }\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAmDA,SAAgB,aAId,SACA,YAQkC;AAClC,QAAO,gBACL,eAAe,QAAQ,oBACvB,OACE,SACA,SACA,oBACmD;AACnD,MAAI,CAAC,QAAQ,YACX,OAAM,IAAI,MACR,6DACD;AAGH,MACE,CAAC,QAAQ,eACT,CAAC,QAAQ,wBAAwB,YACjC,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,gBACjD,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,cAAc,KAE/D,OAAM,IAAI,MACR,wEACD;EAGH,MAAM,gBACJ,QAAQ,uBAAuB,SAAS,QAAQ;EAGlD,MAAM,EAAE,qBAAqB,MADhB,WAAW,QAAQ,MAAM,EAAE,OAAO,OAAO,CAAC,CACf,OAErC,oBAAoB;EAEvB,MAAM,MAAM,MAAM,iBAChB,KACE;GACE,MAAM,cAAc;GACpB,MAAM,cAAc;GACpB,YAAY,cAAc;GAC1B,UAAU,QAAQ;GAClB,UAAU,QAAQ;GAClB,aAAa,cAAc,UAAU;GACrC,aAAa,cAAc;GAC3B,MAAM,QAAQ;GACd,QAAQ,EACN,YACE,QAAQ,cACR,cAAc,SAAS,OAAO,SAAS,YAC1C;GACF,EACD,QACD,CACF;AAED,MAAI;AACF,UAAO,MAAM,QAAQ,QACnB,WACE,KACE;IACE,aAAa,QAAQ;IACrB;IACA;IACA,cAAc;KACZ;KACA,YAAY,QAAQ;KACrB;IACD;IACD,EACD,QACD,EACD,IACD,CACF;WACM,OAAO;AACd,cACE,qDACE,QACD,qBACC,QAAQ,MAAM,GACV,GAAG,MAAM,QAAQ;;EAE/B,MAAM,UACQ,kBAEP;AAED,UAAO,EAAE,SAAS,OAAO;YACjB;AACR,SAAM,IAAI,UAAU;;IAGxB;EACE,mBAAmB;EACnB,OAAO,EACL,sBAAsB,YAAsC;AAC1D,WAAQ,eAAe;AACvB,WAAQ,eAAe;AAEvB,UAAO;KAEV;EACF,CACF"}
1
+ {"version":3,"file":"base-executor-Tb7NcSc4.mjs","names":[],"sources":["../../src/base/base-executor.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ExecutorContext, PromiseExecutor } from \"@nx/devkit\";\nimport type { ShellShockAPI, UserConfig } from \"@shell-shock/core\";\nimport { writeError } from \"@storm-software/config-tools/logger\";\nimport type { StormWorkspaceConfig } from \"@storm-software/config/types\";\nimport { withRunExecutor } from \"@storm-software/workspace-tools/base/base-executor\";\nimport type { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport { isError } from \"@stryke/type-checks/is-error\";\nimport defu from \"defu\";\nimport { createJiti } from \"jiti\";\nimport type { InlineConfig, PowerlinesCommand } from \"powerlines\";\nimport type { BaseExecutorSchema } from \"./base-executor.schema\";\n\nexport type ShellShockExecutorContext<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n> = ExecutorContext & {\n projectName: string;\n command: TCommand;\n options: TExecutorSchema;\n inlineConfig: InlineConfig;\n workspaceConfig: StormWorkspaceConfig;\n};\n\n/**\n * A utility function to create a Shell Shock executor that can be used with the `withRunExecutor` function.\n *\n * @remarks\n * This function is designed to simplify the creation of Shell Shock executors by providing a consistent interface and error handling.\n *\n * @param command - The command that the executor will handle (e.g., \"new\", \"prepare\", \"build\", etc.).\n * @param executorFn - The function that will be executed when the command is run.\n * @returns A Promise that resolves to the result of the executor function.\n */\nexport function withExecutor<\n TCommand extends PowerlinesCommand = PowerlinesCommand,\n TExecutorSchema extends BaseExecutorSchema = BaseExecutorSchema\n>(\n command: TCommand,\n executorFn: (\n context: ShellShockExecutorContext<TCommand, TExecutorSchema>,\n api: ShellShockAPI\n ) =>\n | Promise<BaseExecutorResult | null | undefined>\n | BaseExecutorResult\n | null\n | undefined\n): PromiseExecutor<TExecutorSchema> {\n return withRunExecutor(\n `Shell Shock ${command} command executor`,\n async (\n options: TExecutorSchema,\n context: ExecutorContext,\n workspaceConfig: StormWorkspaceConfig\n ): Promise<BaseExecutorResult | null | undefined> => {\n if (!context.projectName) {\n throw new Error(\n \"The executor requires `projectName` on the context object.\"\n );\n }\n\n if (\n !context.projectName ||\n !context.projectsConfigurations?.projects ||\n !context.projectsConfigurations.projects[context.projectName] ||\n !context.projectsConfigurations.projects[context.projectName]?.root\n ) {\n throw new Error(\n \"The executor requires `projectsConfigurations` on the context object.\"\n );\n }\n\n const projectConfig =\n context.projectsConfigurations.projects[context.projectName]!;\n\n const jiti = createJiti(context.root, { cache: false });\n const { createShellShock } = await jiti.import<{\n createShellShock: typeof import(\"@shell-shock/core\").createShellShock;\n }>(\"@shell-shock/core\");\n\n const api = await createShellShock(\n defu(\n {\n name: projectConfig.name,\n root: projectConfig.root,\n sourceRoot: projectConfig.sourceRoot,\n tsconfig: options.tsconfig,\n logLevel: options.logLevel,\n description: projectConfig.metadata?.description,\n projectType: projectConfig.projectType,\n mode: options.mode,\n output: {\n outputPath:\n options.outputPath ??\n projectConfig.targets?.build?.options?.outputPath\n }\n },\n options\n ) as Partial<UserConfig>\n );\n\n try {\n return await Promise.resolve(\n executorFn(\n defu(\n {\n projectName: context.projectName,\n options,\n workspaceConfig,\n inlineConfig: {\n command,\n configFile: options.configFile\n },\n command\n },\n context\n ),\n api\n )\n );\n } catch (error) {\n writeError(\n `An error occurred while executing the Shell Shock ${\n command\n } command executor: ${\n isError(error)\n ? `${error.message}\n\n${error.stack}`\n : \"Unknown error\"\n }`\n );\n\n return { success: false };\n } finally {\n await api.finalize();\n }\n },\n {\n skipReadingConfig: false,\n hooks: {\n applyDefaultOptions: (options: Partial<TExecutorSchema>) => {\n options.outputPath ??= \"dist/{projectRoot}\";\n options.configFile ??= \"{projectRoot}/shell-shock.config.ts\";\n\n return options as TExecutorSchema;\n }\n }\n }\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAmDA,SAAgB,aAId,SACA,YAQkC;AAClC,QAAO,gBACL,eAAe,QAAQ,oBACvB,OACE,SACA,SACA,oBACmD;AACnD,MAAI,CAAC,QAAQ,YACX,OAAM,IAAI,MACR,6DACD;AAGH,MACE,CAAC,QAAQ,eACT,CAAC,QAAQ,wBAAwB,YACjC,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,gBACjD,CAAC,QAAQ,uBAAuB,SAAS,QAAQ,cAAc,KAE/D,OAAM,IAAI,MACR,wEACD;EAGH,MAAM,gBACJ,QAAQ,uBAAuB,SAAS,QAAQ;EAGlD,MAAM,EAAE,qBAAqB,MADhB,WAAW,QAAQ,MAAM,EAAE,OAAO,OAAO,CAAC,CACf,OAErC,oBAAoB;EAEvB,MAAM,MAAM,MAAM,iBAChB,KACE;GACE,MAAM,cAAc;GACpB,MAAM,cAAc;GACpB,YAAY,cAAc;GAC1B,UAAU,QAAQ;GAClB,UAAU,QAAQ;GAClB,aAAa,cAAc,UAAU;GACrC,aAAa,cAAc;GAC3B,MAAM,QAAQ;GACd,QAAQ,EACN,YACE,QAAQ,cACR,cAAc,SAAS,OAAO,SAAS,YAC1C;GACF,EACD,QACD,CACF;AAED,MAAI;AACF,UAAO,MAAM,QAAQ,QACnB,WACE,KACE;IACE,aAAa,QAAQ;IACrB;IACA;IACA,cAAc;KACZ;KACA,YAAY,QAAQ;KACrB;IACD;IACD,EACD,QACD,EACD,IACD,CACF;WACM,OAAO;AACd,cACE,qDACE,QACD,qBACC,QAAQ,MAAM,GACV,GAAG,MAAM,QAAQ;;EAE/B,MAAM,UACQ,kBAEP;AAED,UAAO,EAAE,SAAS,OAAO;YACjB;AACR,SAAM,IAAI,UAAU;;IAGxB;EACE,mBAAmB;EACnB,OAAO,EACL,sBAAsB,YAAsC;AAC1D,WAAQ,eAAe;AACvB,WAAQ,eAAe;AAEvB,UAAO;KAEV;EACF,CACF"}
@@ -1,4 +1,4 @@
1
- import { t as ShellShockExecutorContext } from "../../base-executor-BkNTl-jk.mjs";
1
+ import { t as ShellShockExecutorContext } from "../../base-executor-5IKYZdSK.mjs";
2
2
  import { PromiseExecutor } from "@nx/devkit";
3
3
  import { ShellShockAPI } from "@shell-shock/core/api";
4
4
  import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
@@ -17,7 +17,6 @@ interface BuildExecutorSchema {
17
17
  * @format path
18
18
  */
19
19
  configFile?: string;
20
-
21
20
  /**
22
21
  * Input Entry File(s)
23
22
  *
@@ -27,7 +26,6 @@ interface BuildExecutorSchema {
27
26
  * @format path
28
27
  */
29
28
  input?: Array<string>;
30
-
31
29
  /**
32
30
  * TSConfig Path
33
31
  *
@@ -38,7 +36,6 @@ interface BuildExecutorSchema {
38
36
  * @format path
39
37
  */
40
38
  tsconfig?: string;
41
-
42
39
  /**
43
40
  * Output Path
44
41
  *
@@ -48,7 +45,6 @@ interface BuildExecutorSchema {
48
45
  * @format path
49
46
  */
50
47
  outputPath?: string;
51
-
52
48
  /**
53
49
  * Sourcemap
54
50
  *
@@ -56,7 +52,6 @@ interface BuildExecutorSchema {
56
52
  *
57
53
  */
58
54
  sourceMap?: boolean;
59
-
60
55
  /**
61
56
  * Format
62
57
  *
@@ -65,7 +60,6 @@ interface BuildExecutorSchema {
65
60
  * @default ["cjs","esm"]
66
61
  */
67
62
  format?: Array<string>;
68
-
69
63
  /**
70
64
  * Platform
71
65
  *
@@ -76,7 +70,6 @@ interface BuildExecutorSchema {
76
70
  * @enum neutral,node,browser
77
71
  */
78
72
  platform?: string;
79
-
80
73
  /**
81
74
  * External
82
75
  *
@@ -84,7 +77,6 @@ interface BuildExecutorSchema {
84
77
  *
85
78
  */
86
79
  external?: Array<any>;
87
-
88
80
  /**
89
81
  * No External
90
82
  *
@@ -92,7 +84,6 @@ interface BuildExecutorSchema {
92
84
  *
93
85
  */
94
86
  noExternal?: Array<any>;
95
-
96
87
  /**
97
88
  * Skip Node Modules Bundle
98
89
  *
@@ -100,7 +91,6 @@ interface BuildExecutorSchema {
100
91
  *
101
92
  */
102
93
  skipNodeModulesBundle?: boolean;
103
-
104
94
  /**
105
95
  * Mode
106
96
  *
@@ -110,7 +100,6 @@ interface BuildExecutorSchema {
110
100
  * @enum development,test,production
111
101
  */
112
102
  mode?: string;
113
-
114
103
  /**
115
104
  * Log Level
116
105
  *
@@ -120,7 +109,6 @@ interface BuildExecutorSchema {
120
109
  * @enum fatal,error,warn,success,info,debug,trace,silent
121
110
  */
122
111
  logLevel?: string;
123
-
124
112
  /**
125
113
  * Define
126
114
  *
@@ -128,7 +116,6 @@ interface BuildExecutorSchema {
128
116
  *
129
117
  */
130
118
  define?: Record<string, string>;
131
-
132
119
  /**
133
120
  * Auto Install
134
121
  *
@@ -136,7 +123,6 @@ interface BuildExecutorSchema {
136
123
  *
137
124
  */
138
125
  autoInstall?: boolean;
139
-
140
126
  /**
141
127
  * Skip Cache
142
128
  *
@@ -1 +1 @@
1
- {"version":3,"file":"executor.d.mts","names":["BuildExecutorSchema","Array","Record"],"sources":["../../../../src/executors/build/schema.d.ts","../../../../src/executors/build/executor.ts"],"sourcesContent":["\n// Generated by powerlines\n// Do not edit this file directly\n\nexport interface BuildExecutorSchema {\n /**\n * Powerlines Configuration File\n * \n * The path to the Powerlines configuration file\n * \n * @default \"{projectRoot}/powerlines.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Input Entry File(s)\n * \n * The entry file(s) that serve as the input for the project\n * \n * \n * @format path\n */\n input?: Array<string>,\n\n /**\n * TSConfig Path\n * \n * The path to the tsconfig file\n * \n * @default \"{projectRoot}/tsconfig.json\"\n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Output Path\n * \n * The path to the output directory for the build artifacts\n * \n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * Sourcemap\n * \n * Generate a sourcemap\n * \n */\n sourceMap?: boolean,\n\n /**\n * Format\n * \n * The format to build\n * \n * @default [\"cjs\",\"esm\"]\n */\n format?: Array<string>,\n\n /**\n * Platform\n * \n * The platform to build\n * \n * @default \"neutral\"\n * \n * @enum neutral,node,browser\n */\n platform?: string,\n\n /**\n * External\n * \n * The external dependencies\n * \n */\n external?: Array<any>,\n\n /**\n * No External\n * \n * The dependencies that should not be treated as external\n * \n */\n noExternal?: Array<any>,\n\n /**\n * Skip Node Modules Bundle\n * \n * Skip bundling node_modules during the build process (if required)\n * \n */\n skipNodeModulesBundle?: boolean,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Log Level\n * \n * The log level to use for the build process\n * \n * \n * @enum fatal,error,warn,success,info,debug,trace,silent\n */\n logLevel?: string,\n\n /**\n * Define\n * \n * The `define` values\n * \n */\n define?: Record<string, string>,\n\n /**\n * Auto Install\n * \n * Automatically install dependencies during prepare stage\n * \n */\n autoInstall?: boolean,\n\n /**\n * Skip Cache\n * \n * Skip the caching mechanism during the build process (if required)\n * \n */\n skipCache?: boolean,\n}\n\n"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;;;ECuBA;;;;;;;AAkBC;UDrBQC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAsCCA;;;;;;;;;;;;;;;;;;;aAmBEA;;;;;;;;eAQEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoCJC;;;;;;;;;;;;;;;;;;;;iBClGY,UAAA,UACX,mCAAmC,2BACvC,gBACJ,QAAQ;AD1BX,cC2CM,QD3CWF,EC2CD,eD3CoB,CC2CJ,mBD3CI,CAAA"}
1
+ {"version":3,"file":"executor.d.mts","names":["BuildExecutorSchema","Array","Record","configFile","input","tsconfig","outputPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","autoInstall","skipCache"],"sources":["../../../../src/executors/build/schema.d.ts","../../../../src/executors/build/executor.ts"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;EAUCG,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQH,KAAAA;;;;;;;;;;EAWRI,QAAAA;EA0GS;;;;AClHV;;;;EDkBCC,UAAAA;;;;;;;EAQAC,SAAAA;;;;;;ACRA;;EDiBAC,MAAAA,GAASP,KAAAA;ECfyC;;;;;;;;;ED0BlDQ,QAAAA;;;;;;;EAQAC,QAAAA,GAAWT,KAAAA;;;;;;;EAQXU,UAAAA,GAAaV,KAAAA;;;;;;;EAQbW,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASb,MAAAA;;;;;;;EAQTc,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBClHqB,UAAA,CACpB,OAAA,EAAS,yBAAA,UAAmC,mBAAA,GAC5C,GAAA,EAAK,aAAA,GACJ,OAAA,CAAQ,kBAAA;AAAA,cAiBL,QAAA,EAAU,eAAA,CAAgB,mBAAA"}
@@ -1,4 +1,4 @@
1
- import { t as ShellShockExecutorContext } from "../../base-executor-FX7YJl7f.js";
1
+ import { t as ShellShockExecutorContext } from "../../base-executor-D8wAP52R.js";
2
2
  import { PromiseExecutor } from "@nx/devkit";
3
3
  import { ShellShockAPI } from "@shell-shock/core/api";
4
4
  import { BaseExecutorResult } from "@storm-software/workspace-tools/types";
@@ -17,7 +17,6 @@ interface BuildExecutorSchema {
17
17
  * @format path
18
18
  */
19
19
  configFile?: string;
20
-
21
20
  /**
22
21
  * Input Entry File(s)
23
22
  *
@@ -27,7 +26,6 @@ interface BuildExecutorSchema {
27
26
  * @format path
28
27
  */
29
28
  input?: Array<string>;
30
-
31
29
  /**
32
30
  * TSConfig Path
33
31
  *
@@ -38,7 +36,6 @@ interface BuildExecutorSchema {
38
36
  * @format path
39
37
  */
40
38
  tsconfig?: string;
41
-
42
39
  /**
43
40
  * Output Path
44
41
  *
@@ -48,7 +45,6 @@ interface BuildExecutorSchema {
48
45
  * @format path
49
46
  */
50
47
  outputPath?: string;
51
-
52
48
  /**
53
49
  * Sourcemap
54
50
  *
@@ -56,7 +52,6 @@ interface BuildExecutorSchema {
56
52
  *
57
53
  */
58
54
  sourceMap?: boolean;
59
-
60
55
  /**
61
56
  * Format
62
57
  *
@@ -65,7 +60,6 @@ interface BuildExecutorSchema {
65
60
  * @default ["cjs","esm"]
66
61
  */
67
62
  format?: Array<string>;
68
-
69
63
  /**
70
64
  * Platform
71
65
  *
@@ -76,7 +70,6 @@ interface BuildExecutorSchema {
76
70
  * @enum neutral,node,browser
77
71
  */
78
72
  platform?: string;
79
-
80
73
  /**
81
74
  * External
82
75
  *
@@ -84,7 +77,6 @@ interface BuildExecutorSchema {
84
77
  *
85
78
  */
86
79
  external?: Array<any>;
87
-
88
80
  /**
89
81
  * No External
90
82
  *
@@ -92,7 +84,6 @@ interface BuildExecutorSchema {
92
84
  *
93
85
  */
94
86
  noExternal?: Array<any>;
95
-
96
87
  /**
97
88
  * Skip Node Modules Bundle
98
89
  *
@@ -100,7 +91,6 @@ interface BuildExecutorSchema {
100
91
  *
101
92
  */
102
93
  skipNodeModulesBundle?: boolean;
103
-
104
94
  /**
105
95
  * Mode
106
96
  *
@@ -110,7 +100,6 @@ interface BuildExecutorSchema {
110
100
  * @enum development,test,production
111
101
  */
112
102
  mode?: string;
113
-
114
103
  /**
115
104
  * Log Level
116
105
  *
@@ -120,7 +109,6 @@ interface BuildExecutorSchema {
120
109
  * @enum fatal,error,warn,success,info,debug,trace,silent
121
110
  */
122
111
  logLevel?: string;
123
-
124
112
  /**
125
113
  * Define
126
114
  *
@@ -128,7 +116,6 @@ interface BuildExecutorSchema {
128
116
  *
129
117
  */
130
118
  define?: Record<string, string>;
131
-
132
119
  /**
133
120
  * Auto Install
134
121
  *
@@ -136,7 +123,6 @@ interface BuildExecutorSchema {
136
123
  *
137
124
  */
138
125
  autoInstall?: boolean;
139
-
140
126
  /**
141
127
  * Skip Cache
142
128
  *
@@ -1 +1 @@
1
- {"version":3,"file":"executor.d.ts","names":["BuildExecutorSchema","Array","Record"],"sources":["../../../../src/executors/build/schema.d.ts","../../../../src/executors/build/executor.ts"],"sourcesContent":["\n// Generated by powerlines\n// Do not edit this file directly\n\nexport interface BuildExecutorSchema {\n /**\n * Powerlines Configuration File\n * \n * The path to the Powerlines configuration file\n * \n * @default \"{projectRoot}/powerlines.config.ts\"\n * \n * @format path\n */\n configFile?: string,\n\n /**\n * Input Entry File(s)\n * \n * The entry file(s) that serve as the input for the project\n * \n * \n * @format path\n */\n input?: Array<string>,\n\n /**\n * TSConfig Path\n * \n * The path to the tsconfig file\n * \n * @default \"{projectRoot}/tsconfig.json\"\n * \n * @format path\n */\n tsconfig?: string,\n\n /**\n * Output Path\n * \n * The path to the output directory for the build artifacts\n * \n * \n * @format path\n */\n outputPath?: string,\n\n /**\n * Sourcemap\n * \n * Generate a sourcemap\n * \n */\n sourceMap?: boolean,\n\n /**\n * Format\n * \n * The format to build\n * \n * @default [\"cjs\",\"esm\"]\n */\n format?: Array<string>,\n\n /**\n * Platform\n * \n * The platform to build\n * \n * @default \"neutral\"\n * \n * @enum neutral,node,browser\n */\n platform?: string,\n\n /**\n * External\n * \n * The external dependencies\n * \n */\n external?: Array<any>,\n\n /**\n * No External\n * \n * The dependencies that should not be treated as external\n * \n */\n noExternal?: Array<any>,\n\n /**\n * Skip Node Modules Bundle\n * \n * Skip bundling node_modules during the build process (if required)\n * \n */\n skipNodeModulesBundle?: boolean,\n\n /**\n * Mode\n * \n * The build mode\n * \n * \n * @enum development,test,production\n */\n mode?: string,\n\n /**\n * Log Level\n * \n * The log level to use for the build process\n * \n * \n * @enum fatal,error,warn,success,info,debug,trace,silent\n */\n logLevel?: string,\n\n /**\n * Define\n * \n * The `define` values\n * \n */\n define?: Record<string, string>,\n\n /**\n * Auto Install\n * \n * Automatically install dependencies during prepare stage\n * \n */\n autoInstall?: boolean,\n\n /**\n * Skip Cache\n * \n * Skip the caching mechanism during the build process (if required)\n * \n */\n skipCache?: boolean,\n}\n\n"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;;;ECuBA;;;;;;;AAkBC;UDrBQC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAsCCA;;;;;;;;;;;;;;;;;;;aAmBEA;;;;;;;;eAQEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoCJC;;;;;;;;;;;;;;;;;;;;iBClGY,UAAA,UACX,mCAAmC,2BACvC,gBACJ,QAAQ;AD1BX,cC2CM,QD3CWF,EC2CD,eD3CoB,CC2CJ,mBD3CI,CAAA"}
1
+ {"version":3,"file":"executor.d.ts","names":["BuildExecutorSchema","Array","Record","configFile","input","tsconfig","outputPath","sourceMap","format","platform","external","noExternal","skipNodeModulesBundle","mode","logLevel","define","autoInstall","skipCache"],"sources":["../../../../src/executors/build/schema.d.ts","../../../../src/executors/build/executor.ts"],"mappings":";;;;;;;;UAIiBA,mBAAAA;;AAAjB;;;;;;;;EAUCG,UAAAA;;;;;;;;;EAUAC,KAAAA,GAAQH,KAAAA;;;;;;;;;;EAWRI,QAAAA;EA0GS;;;;AClHV;;;;EDkBCC,UAAAA;;;;;;;EAQAC,SAAAA;;;;;;ACRA;;EDiBAC,MAAAA,GAASP,KAAAA;ECfyC;;;;;;;;;ED0BlDQ,QAAAA;;;;;;;EAQAC,QAAAA,GAAWT,KAAAA;;;;;;;EAQXU,UAAAA,GAAaV,KAAAA;;;;;;;EAQbW,qBAAAA;;;;;;;;;EAUAC,IAAAA;;;;;;;;;EAUAC,QAAAA;;;;;;;EAQAC,MAAAA,GAASb,MAAAA;;;;;;;EAQTc,WAAAA;;;;;;;EAQAC,SAAAA;AAAAA;;;iBClHqB,UAAA,CACpB,OAAA,EAAS,yBAAA,UAAmC,mBAAA,GAC5C,GAAA,EAAK,aAAA,GACJ,OAAA,CAAQ,kBAAA;AAAA,cAiBL,QAAA,EAAU,eAAA,CAAgB,mBAAA"}
@@ -1,5 +1,5 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_base_executor = require('../../base-executor-CkaF97Xd.js');
1
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
+ const require_base_executor = require('../../base-executor-B_1n4Nst.js');
3
3
  let defu = require("defu");
4
4
  defu = require_base_executor.__toESM(defu);
5
5
 
@@ -13,8 +13,7 @@ async function executorFn(context, api) {
13
13
  return { success: true };
14
14
  }
15
15
  const executor = require_base_executor.withExecutor("build", executorFn);
16
- var executor_default = executor;
17
16
 
18
17
  //#endregion
19
- exports.default = executor_default;
18
+ exports.default = executor;
20
19
  exports.executorFn = executorFn;
@@ -1,4 +1,4 @@
1
- import { t as withExecutor } from "../../base-executor-DUf5AdoE.mjs";
1
+ import { t as withExecutor } from "../../base-executor-Tb7NcSc4.mjs";
2
2
  import defu from "defu";
3
3
 
4
4
  //#region src/executors/build/executor.ts
@@ -11,8 +11,7 @@ async function executorFn(context, api) {
11
11
  return { success: true };
12
12
  }
13
13
  const executor = withExecutor("build", executorFn);
14
- var executor_default = executor;
15
14
 
16
15
  //#endregion
17
- export { executor_default as default, executorFn };
16
+ export { executor as default, executorFn };
18
17
  //# sourceMappingURL=executor.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"executor.mjs","names":["executor: PromiseExecutor<BuildExecutorSchema>"],"sources":["../../../../src/executors/build/executor.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { PromiseExecutor } from \"@nx/devkit\";\nimport type { ShellShockAPI } from \"@shell-shock/core/api\";\nimport type { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport defu from \"defu\";\nimport type { BuildInlineConfig } from \"powerlines\";\nimport type { ShellShockExecutorContext } from \"../../base/base-executor\";\nimport { withExecutor } from \"../../base/base-executor\";\nimport type { BuildExecutorSchema } from \"./schema\";\n\nexport async function executorFn(\n context: ShellShockExecutorContext<\"build\", BuildExecutorSchema>,\n api: ShellShockAPI\n): Promise<BaseExecutorResult> {\n await api.build(\n defu(\n {\n command: \"build\",\n skipCache: context.options.skipCache,\n autoInstall: context.options.autoInstall\n },\n context.inlineConfig\n ) as BuildInlineConfig\n );\n\n return {\n success: true\n };\n}\n\nconst executor: PromiseExecutor<BuildExecutorSchema> = withExecutor<\n \"build\",\n BuildExecutorSchema\n>(\"build\", executorFn);\n\nexport default executor;\n"],"mappings":";;;;AA2BA,eAAsB,WACpB,SACA,KAC6B;AAC7B,OAAM,IAAI,MACR,KACE;EACE,SAAS;EACT,WAAW,QAAQ,QAAQ;EAC3B,aAAa,QAAQ,QAAQ;EAC9B,EACD,QAAQ,aACT,CACF;AAED,QAAO,EACL,SAAS,MACV;;AAGH,MAAMA,WAAiD,aAGrD,SAAS,WAAW;AAEtB,uBAAe"}
1
+ {"version":3,"file":"executor.mjs","names":[],"sources":["../../../../src/executors/build/executor.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { PromiseExecutor } from \"@nx/devkit\";\nimport type { ShellShockAPI } from \"@shell-shock/core/api\";\nimport type { BaseExecutorResult } from \"@storm-software/workspace-tools/types\";\nimport defu from \"defu\";\nimport type { BuildInlineConfig } from \"powerlines\";\nimport type { ShellShockExecutorContext } from \"../../base/base-executor\";\nimport { withExecutor } from \"../../base/base-executor\";\nimport type { BuildExecutorSchema } from \"./schema\";\n\nexport async function executorFn(\n context: ShellShockExecutorContext<\"build\", BuildExecutorSchema>,\n api: ShellShockAPI\n): Promise<BaseExecutorResult> {\n await api.build(\n defu(\n {\n command: \"build\",\n skipCache: context.options.skipCache,\n autoInstall: context.options.autoInstall\n },\n context.inlineConfig\n ) as BuildInlineConfig\n );\n\n return {\n success: true\n };\n}\n\nconst executor: PromiseExecutor<BuildExecutorSchema> = withExecutor<\n \"build\",\n BuildExecutorSchema\n>(\"build\", executorFn);\n\nexport default executor;\n"],"mappings":";;;;AA2BA,eAAsB,WACpB,SACA,KAC6B;AAC7B,OAAM,IAAI,MACR,KACE;EACE,SAAS;EACT,WAAW,QAAQ,QAAQ;EAC3B,aAAa,QAAQ,QAAQ;EAC9B,EACD,QAAQ,aACT,CACF;AAED,QAAO,EACL,SAAS,MACV;;AAGH,MAAM,WAAiD,aAGrD,SAAS,WAAW"}