@shell-shock/nx 0.0.41 → 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 (116) hide show
  1. package/CHANGELOG.md +28 -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/build/schema.d.ts +144 -0
  17. package/dist/executors/build/schema.json +163 -0
  18. package/dist/executors/clean/executor.d.mts +1 -15
  19. package/dist/executors/clean/executor.d.mts.map +1 -1
  20. package/dist/executors/clean/executor.d.ts +1 -15
  21. package/dist/executors/clean/executor.d.ts.map +1 -1
  22. package/dist/executors/clean/executor.js +3 -4
  23. package/dist/executors/clean/executor.mjs +2 -3
  24. package/dist/executors/clean/executor.mjs.map +1 -1
  25. package/dist/executors/clean/schema.d.ts +144 -0
  26. package/dist/executors/clean/schema.json +163 -0
  27. package/dist/executors/docs/executor.d.mts +1 -15
  28. package/dist/executors/docs/executor.d.mts.map +1 -1
  29. package/dist/executors/docs/executor.d.ts +1 -15
  30. package/dist/executors/docs/executor.d.ts.map +1 -1
  31. package/dist/executors/docs/executor.js +3 -4
  32. package/dist/executors/docs/executor.mjs +2 -3
  33. package/dist/executors/docs/executor.mjs.map +1 -1
  34. package/dist/executors/docs/schema.d.ts +144 -0
  35. package/dist/executors/docs/schema.json +163 -0
  36. package/dist/executors/lint/executor.d.mts +1 -15
  37. package/dist/executors/lint/executor.d.mts.map +1 -1
  38. package/dist/executors/lint/executor.d.ts +1 -15
  39. package/dist/executors/lint/executor.d.ts.map +1 -1
  40. package/dist/executors/lint/executor.js +3 -4
  41. package/dist/executors/lint/executor.mjs +2 -3
  42. package/dist/executors/lint/executor.mjs.map +1 -1
  43. package/dist/executors/lint/schema.d.ts +144 -0
  44. package/dist/executors/lint/schema.json +163 -0
  45. package/dist/executors/prepare/executor.d.mts +1 -15
  46. package/dist/executors/prepare/executor.d.mts.map +1 -1
  47. package/dist/executors/prepare/executor.d.ts +1 -15
  48. package/dist/executors/prepare/executor.d.ts.map +1 -1
  49. package/dist/executors/prepare/executor.js +3 -4
  50. package/dist/executors/prepare/executor.mjs +2 -3
  51. package/dist/executors/prepare/executor.mjs.map +1 -1
  52. package/dist/executors/prepare/schema.d.ts +144 -0
  53. package/dist/executors/prepare/schema.json +163 -0
  54. package/dist/index.d.mts +1 -2
  55. package/dist/index.d.ts +1 -1
  56. package/dist/index.js +5 -4
  57. package/dist/index.mjs +1 -1
  58. package/dist/plugin/index.d.mts.map +1 -1
  59. package/dist/plugin/index.d.ts.map +1 -1
  60. package/dist/plugin/index.js +4 -3
  61. package/dist/plugin/index.mjs.map +1 -1
  62. package/dist/{base-executor-BkNTl-jk.d.mts → src/base-executor-5IKYZdSK.d.mts} +1 -13
  63. package/dist/src/base-executor-5IKYZdSK.d.mts.map +1 -0
  64. package/dist/{base-executor-CkaF97Xd.js → src/base-executor-B_1n4Nst.js} +6 -6
  65. package/dist/src/{base-executor-BkNTl-jk.d.mts → base-executor-D8wAP52R.d.ts} +1 -13
  66. package/dist/src/base-executor-D8wAP52R.d.ts.map +1 -0
  67. package/dist/{base-executor-DUf5AdoE.mjs → src/base-executor-Tb7NcSc4.mjs} +1 -1
  68. package/dist/src/{base-executor-DUf5AdoE.mjs.map → base-executor-Tb7NcSc4.mjs.map} +1 -1
  69. package/dist/src/executors/build/executor.d.mts +1 -15
  70. package/dist/src/executors/build/executor.d.mts.map +1 -1
  71. package/dist/src/executors/build/executor.d.ts +1 -15
  72. package/dist/src/executors/build/executor.d.ts.map +1 -1
  73. package/dist/src/executors/build/executor.js +3 -4
  74. package/dist/src/executors/build/executor.mjs +2 -3
  75. package/dist/src/executors/build/executor.mjs.map +1 -1
  76. package/dist/src/executors/clean/executor.d.mts +1 -15
  77. package/dist/src/executors/clean/executor.d.mts.map +1 -1
  78. package/dist/src/executors/clean/executor.d.ts +1 -15
  79. package/dist/src/executors/clean/executor.d.ts.map +1 -1
  80. package/dist/src/executors/clean/executor.js +3 -4
  81. package/dist/src/executors/clean/executor.mjs +2 -3
  82. package/dist/src/executors/clean/executor.mjs.map +1 -1
  83. package/dist/src/executors/docs/executor.d.mts +1 -15
  84. package/dist/src/executors/docs/executor.d.mts.map +1 -1
  85. package/dist/src/executors/docs/executor.d.ts +1 -15
  86. package/dist/src/executors/docs/executor.d.ts.map +1 -1
  87. package/dist/src/executors/docs/executor.js +3 -4
  88. package/dist/src/executors/docs/executor.mjs +2 -3
  89. package/dist/src/executors/docs/executor.mjs.map +1 -1
  90. package/dist/src/executors/lint/executor.d.mts +1 -15
  91. package/dist/src/executors/lint/executor.d.mts.map +1 -1
  92. package/dist/src/executors/lint/executor.d.ts +1 -15
  93. package/dist/src/executors/lint/executor.d.ts.map +1 -1
  94. package/dist/src/executors/lint/executor.js +3 -4
  95. package/dist/src/executors/lint/executor.mjs +2 -3
  96. package/dist/src/executors/lint/executor.mjs.map +1 -1
  97. package/dist/src/executors/prepare/executor.d.mts +1 -15
  98. package/dist/src/executors/prepare/executor.d.mts.map +1 -1
  99. package/dist/src/executors/prepare/executor.d.ts +1 -15
  100. package/dist/src/executors/prepare/executor.d.ts.map +1 -1
  101. package/dist/src/executors/prepare/executor.js +3 -4
  102. package/dist/src/executors/prepare/executor.mjs +2 -3
  103. package/dist/src/executors/prepare/executor.mjs.map +1 -1
  104. package/dist/src/index.d.mts +1 -2
  105. package/dist/src/index.d.ts +1 -1
  106. package/dist/src/index.js +5 -4
  107. package/dist/src/index.mjs +1 -1
  108. package/dist/src/plugin/index.d.mts.map +1 -1
  109. package/dist/src/plugin/index.d.ts.map +1 -1
  110. package/dist/src/plugin/index.js +4 -3
  111. package/dist/src/plugin/index.mjs.map +1 -1
  112. package/package.json +13 -13
  113. package/dist/base-executor-BkNTl-jk.d.mts.map +0 -1
  114. package/dist/base-executor-FX7YJl7f.d.ts.map +0 -1
  115. package/dist/src/base-executor-BkNTl-jk.d.mts.map +0 -1
  116. package/dist/src/base-executor-FX7YJl7f.d.ts.map +0 -1
@@ -0,0 +1,144 @@
1
+
2
+ // Generated by powerlines
3
+ // Do not edit this file directly
4
+
5
+ export interface PrepareExecutorSchema {
6
+ /**
7
+ * Powerlines Configuration File
8
+ *
9
+ * The path to the Powerlines configuration file
10
+ *
11
+ * @default "{projectRoot}/powerlines.config.ts"
12
+ *
13
+ * @format path
14
+ */
15
+ configFile?: string,
16
+
17
+ /**
18
+ * Input Entry File(s)
19
+ *
20
+ * The entry file(s) that serve as the input for the project
21
+ *
22
+ *
23
+ * @format path
24
+ */
25
+ input?: Array<string>,
26
+
27
+ /**
28
+ * TSConfig Path
29
+ *
30
+ * The path to the tsconfig file
31
+ *
32
+ * @default "{projectRoot}/tsconfig.json"
33
+ *
34
+ * @format path
35
+ */
36
+ tsconfig?: string,
37
+
38
+ /**
39
+ * Output Path
40
+ *
41
+ * The path to the output directory for the build artifacts
42
+ *
43
+ *
44
+ * @format path
45
+ */
46
+ outputPath?: string,
47
+
48
+ /**
49
+ * Sourcemap
50
+ *
51
+ * Generate a sourcemap
52
+ *
53
+ */
54
+ sourceMap?: boolean,
55
+
56
+ /**
57
+ * Format
58
+ *
59
+ * The format to build
60
+ *
61
+ * @default ["cjs","esm"]
62
+ */
63
+ format?: Array<string>,
64
+
65
+ /**
66
+ * Platform
67
+ *
68
+ * The platform to build
69
+ *
70
+ * @default "neutral"
71
+ *
72
+ * @enum neutral,node,browser
73
+ */
74
+ platform?: string,
75
+
76
+ /**
77
+ * External
78
+ *
79
+ * The external dependencies
80
+ *
81
+ */
82
+ external?: Array<any>,
83
+
84
+ /**
85
+ * No External
86
+ *
87
+ * The dependencies that should not be treated as external
88
+ *
89
+ */
90
+ noExternal?: Array<any>,
91
+
92
+ /**
93
+ * Skip Node Modules Bundle
94
+ *
95
+ * Skip bundling node_modules during the build process (if required)
96
+ *
97
+ */
98
+ skipNodeModulesBundle?: boolean,
99
+
100
+ /**
101
+ * Mode
102
+ *
103
+ * The build mode
104
+ *
105
+ *
106
+ * @enum development,test,production
107
+ */
108
+ mode?: string,
109
+
110
+ /**
111
+ * Log Level
112
+ *
113
+ * The log level to use for the build process
114
+ *
115
+ *
116
+ * @enum fatal,error,warn,success,info,debug,trace,silent
117
+ */
118
+ logLevel?: string,
119
+
120
+ /**
121
+ * Define
122
+ *
123
+ * The `define` values
124
+ *
125
+ */
126
+ define?: Record<string, string>,
127
+
128
+ /**
129
+ * Auto Install
130
+ *
131
+ * Automatically install dependencies during prepare stage
132
+ *
133
+ */
134
+ autoInstall?: boolean,
135
+
136
+ /**
137
+ * Skip Cache
138
+ *
139
+ * Skip the caching mechanism during the build process (if required)
140
+ *
141
+ */
142
+ skipCache?: boolean,
143
+ }
144
+
@@ -0,0 +1,163 @@
1
+ {
2
+ "id": "#",
3
+ "title": "Prepare Executor",
4
+ "description": "A type definition for the Powerlines - Prepare executor schema",
5
+ "required": [],
6
+ "properties": {
7
+ "configFile": {
8
+ "title": "Powerlines Configuration File",
9
+ "type": "string",
10
+ "format": "path",
11
+ "description": "The path to the Powerlines configuration file",
12
+ "id": "#configFile",
13
+ "default": "{projectRoot}/powerlines.config.ts"
14
+ },
15
+ "input": {
16
+ "title": "Input Entry File(s)",
17
+ "format": "path",
18
+ "type": "array",
19
+ "description": "The entry file(s) that serve as the input for the project",
20
+ "items": {
21
+ "type": "string"
22
+ },
23
+ "id": "#input"
24
+ },
25
+ "tsconfig": {
26
+ "title": "TSConfig Path",
27
+ "type": "string",
28
+ "format": "path",
29
+ "description": "The path to the tsconfig file",
30
+ "id": "#tsconfig",
31
+ "default": "{projectRoot}/tsconfig.json"
32
+ },
33
+ "outputPath": {
34
+ "title": "Output Path",
35
+ "type": "string",
36
+ "format": "path",
37
+ "description": "The path to the output directory for the build artifacts",
38
+ "id": "#outputPath"
39
+ },
40
+ "sourceMap": {
41
+ "title": "Sourcemap",
42
+ "type": "boolean",
43
+ "description": "Generate a sourcemap",
44
+ "id": "#sourceMap"
45
+ },
46
+ "format": {
47
+ "title": "Format",
48
+ "type": "array",
49
+ "description": "The format to build",
50
+ "items": {
51
+ "type": "string",
52
+ "enum": [
53
+ "cjs",
54
+ "esm",
55
+ "iife"
56
+ ]
57
+ },
58
+ "id": "#format",
59
+ "default": [
60
+ "cjs",
61
+ "esm"
62
+ ]
63
+ },
64
+ "platform": {
65
+ "title": "Platform",
66
+ "type": "string",
67
+ "description": "The platform to build",
68
+ "enum": [
69
+ "neutral",
70
+ "node",
71
+ "browser"
72
+ ],
73
+ "id": "#platform",
74
+ "default": "neutral"
75
+ },
76
+ "external": {
77
+ "title": "External",
78
+ "type": "array",
79
+ "description": "The external dependencies",
80
+ "id": "#external",
81
+ "default": [],
82
+ "items": {
83
+ "type": "any"
84
+ }
85
+ },
86
+ "noExternal": {
87
+ "title": "No External",
88
+ "type": "array",
89
+ "description": "The dependencies that should not be treated as external",
90
+ "id": "#noExternal",
91
+ "default": [],
92
+ "items": {
93
+ "type": "any"
94
+ }
95
+ },
96
+ "skipNodeModulesBundle": {
97
+ "title": "Skip Node Modules Bundle",
98
+ "type": "boolean",
99
+ "description": "Skip bundling node_modules during the build process (if required)",
100
+ "id": "#skipNodeModulesBundle"
101
+ },
102
+ "mode": {
103
+ "title": "Mode",
104
+ "type": "string",
105
+ "description": "The build mode",
106
+ "enum": [
107
+ "development",
108
+ "test",
109
+ "production"
110
+ ],
111
+ "id": "#mode"
112
+ },
113
+ "logLevel": {
114
+ "title": "Log Level",
115
+ "type": "string",
116
+ "description": "The log level to use for the build process",
117
+ "enum": [
118
+ "fatal",
119
+ "error",
120
+ "warn",
121
+ "success",
122
+ "info",
123
+ "debug",
124
+ "trace",
125
+ "silent"
126
+ ],
127
+ "id": "#logLevel"
128
+ },
129
+ "define": {
130
+ "title": "Define",
131
+ "type": "object",
132
+ "tsType": "Record<string, string>",
133
+ "description": "The `define` values",
134
+ "id": "#define",
135
+ "default": {}
136
+ },
137
+ "autoInstall": {
138
+ "title": "Auto Install",
139
+ "type": "boolean",
140
+ "description": "Automatically install dependencies during prepare stage",
141
+ "id": "#autoInstall"
142
+ },
143
+ "skipCache": {
144
+ "title": "Skip Cache",
145
+ "type": "boolean",
146
+ "description": "Skip the caching mechanism during the build process (if required)",
147
+ "id": "#skipCache"
148
+ }
149
+ },
150
+ "type": "object",
151
+ "default": {
152
+ "configFile": "{projectRoot}/powerlines.config.ts",
153
+ "tsconfig": "{projectRoot}/tsconfig.json",
154
+ "format": [
155
+ "cjs",
156
+ "esm"
157
+ ],
158
+ "platform": "neutral",
159
+ "external": [],
160
+ "noExternal": [],
161
+ "define": {}
162
+ }
163
+ }
package/dist/index.d.mts CHANGED
@@ -1,3 +1,2 @@
1
- import { n as withExecutor, t as ShellShockExecutorContext } from "./base-executor-BkNTl-jk.mjs";
2
- import "untyped";
1
+ import { n as withExecutor, t as ShellShockExecutorContext } from "./base-executor-5IKYZdSK.mjs";
3
2
  export { ShellShockExecutorContext, withExecutor };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as withExecutor, t as ShellShockExecutorContext } from "./base-executor-FX7YJl7f.js";
1
+ import { n as withExecutor, t as ShellShockExecutorContext } from "./base-executor-D8wAP52R.js";
2
2
  export { ShellShockExecutorContext, withExecutor };
package/dist/index.js CHANGED
@@ -1,11 +1,12 @@
1
- const require_base_executor = require('./base-executor-CkaF97Xd.js');
2
- let __powerlines_nx_base_base_executor_untyped = require("@powerlines/nx/base/base-executor.untyped");
3
- __powerlines_nx_base_base_executor_untyped = require_base_executor.__toESM(__powerlines_nx_base_base_executor_untyped);
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_base_executor = require('./base-executor-B_1n4Nst.js');
3
+ let _powerlines_nx_base_base_executor_untyped = require("@powerlines/nx/base/base-executor.untyped");
4
+ _powerlines_nx_base_base_executor_untyped = require_base_executor.__toESM(_powerlines_nx_base_base_executor_untyped);
4
5
  let untyped = require("untyped");
5
6
 
6
7
  //#region src/base/base-executor.untyped.ts
7
8
  var base_executor_untyped_default = (0, untyped.defineUntypedSchema)({
8
- ...__powerlines_nx_base_base_executor_untyped.default,
9
+ ..._powerlines_nx_base_base_executor_untyped.default,
9
10
  $schema: {
10
11
  id: "BaseExecutorSchema",
11
12
  title: "Base Executor",
package/dist/index.mjs CHANGED
@@ -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 baseExecutorSchema from "@powerlines/nx/base/base-executor.untyped";
3
3
  import { defineUntypedSchema } from "untyped";
4
4
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/plugin/index.ts"],"sourcesContent":[],"mappings":";;;;cAsBa,eAAe,cAAc"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":";;;;cAsBa,aAAA,EAAe,aAAA,CAAc,eAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"sourcesContent":[],"mappings":";;;;cAsBa,eAAe,cAAc"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/plugin/index.ts"],"mappings":";;;;cAsBa,aAAA,EAAe,aAAA,CAAc,eAAA"}
@@ -1,8 +1,9 @@
1
- const require_base_executor = require('../base-executor-CkaF97Xd.js');
2
- let __powerlines_nx = require("@powerlines/nx");
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_base_executor = require('../base-executor-B_1n4Nst.js');
3
+ let _powerlines_nx = require("@powerlines/nx");
3
4
 
4
5
  //#region src/plugin/index.ts
5
- const createNodesV2 = (0, __powerlines_nx.createNxPlugin)({ framework: "shell-shock" });
6
+ const createNodesV2 = (0, _powerlines_nx.createNxPlugin)({ framework: "shell-shock" });
6
7
 
7
8
  //#endregion
8
9
  exports.createNodesV2 = createNodesV2;
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["createNodesV2: CreateNodesV2<NxPluginOptions>"],"sources":["../../../src/plugin/index.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 { CreateNodesV2 } from \"@nx/devkit\";\nimport type { NxPluginOptions } from \"@powerlines/nx\";\nimport { createNxPlugin } from \"@powerlines/nx\";\n\nexport const createNodesV2: CreateNodesV2<NxPluginOptions> =\n createNxPlugin<NxPluginOptions>({\n framework: \"shell-shock\"\n });\n"],"mappings":";;;AAsBA,MAAaA,gBACX,eAAgC,EAC9B,WAAW,eACZ,CAAC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../src/plugin/index.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 { CreateNodesV2 } from \"@nx/devkit\";\nimport type { NxPluginOptions } from \"@powerlines/nx\";\nimport { createNxPlugin } from \"@powerlines/nx\";\n\nexport const createNodesV2: CreateNodesV2<NxPluginOptions> =\n createNxPlugin<NxPluginOptions>({\n framework: \"shell-shock\"\n });\n"],"mappings":";;;AAsBA,MAAa,gBACX,eAAgC,EAC9B,WAAW,eACZ,CAAC"}
@@ -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-BkNTl-jk.d.mts.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-BkNTl-jk.d.mts.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"}