@storm-software/workspace-tools 1.294.20 → 1.294.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.
- package/CHANGELOG.md +33 -0
- package/README.md +1 -2
- package/dist/{chunk-H7GLZOOC.mjs → chunk-22O3YASK.mjs} +4 -4
- package/dist/{chunk-4BWM53AA.js → chunk-23XGJAPA.js} +4 -2
- package/dist/{chunk-FORQKF7Q.mjs → chunk-3IRQJJRB.mjs} +16 -1
- package/dist/{chunk-TKN4IGLS.js → chunk-3LJS2LMI.js} +2 -2
- package/dist/{chunk-4GHVWMHE.js → chunk-4BOHP6RL.js} +2 -2
- package/dist/{chunk-3T64LUNP.js → chunk-4SBVKNWR.js} +2 -2
- package/dist/{chunk-AOETUPU5.mjs → chunk-57RAK4I2.mjs} +1 -1
- package/dist/{chunk-NURKEB3S.mjs → chunk-73HSPU3T.mjs} +1 -1
- package/dist/{chunk-FEYD5KMF.mjs → chunk-73QI3PXI.mjs} +1 -1
- package/dist/{chunk-AGUQYTSQ.mjs → chunk-APT7LF6M.mjs} +1 -1
- package/dist/{chunk-NT3NFCMA.mjs → chunk-B3SGESFB.mjs} +2 -2
- package/dist/{chunk-5BONSUJM.mjs → chunk-CJSQYPNR.mjs} +1 -1
- package/dist/{chunk-SJCAWCXW.mjs → chunk-COUPULJR.mjs} +1 -1
- package/dist/{chunk-6N7EMPGL.js → chunk-CSEJKDUC.js} +6 -6
- package/dist/{chunk-6MATO2MJ.mjs → chunk-DAN5WBD6.mjs} +4 -2
- package/dist/{chunk-LZC7BM3D.js → chunk-EQ46UJSL.js} +2 -2
- package/dist/{chunk-SXC4J7LO.mjs → chunk-FCZRRPO2.mjs} +2 -2
- package/dist/{chunk-IPYOIFXP.js → chunk-FR6NA4OK.js} +2 -2
- package/dist/{chunk-3WCCKGWO.mjs → chunk-GALNKFQL.mjs} +1 -1
- package/dist/{chunk-JM62BQSM.mjs → chunk-GCQEACOQ.mjs} +2 -2
- package/dist/{chunk-RXSB4AVK.js → chunk-GKE7QSIX.js} +2 -2
- package/dist/{chunk-5G4PATLH.js → chunk-GRVKZZUG.js} +12 -12
- package/dist/{chunk-AYLSCEK6.mjs → chunk-IVOA4X4G.mjs} +2 -2
- package/dist/{chunk-MPUFSH52.mjs → chunk-JDBTQA4B.mjs} +1 -1
- package/dist/{chunk-X3ZCGPHB.js → chunk-JGIPFA4G.js} +2 -2
- package/dist/{chunk-VHTTZP53.js → chunk-K2P4DOLX.js} +5 -5
- package/dist/{chunk-PHVIQYYJ.mjs → chunk-KCJ5MXVT.mjs} +2 -2
- package/dist/{chunk-6TMK5JR2.js → chunk-LBACOG75.js} +34 -34
- package/dist/{chunk-HX75TMCP.mjs → chunk-LJR4PT37.mjs} +1 -1
- package/dist/{chunk-LDAAAQLZ.mjs → chunk-LSO43V5R.mjs} +1 -1
- package/dist/{chunk-5FIKIPZW.js → chunk-MLP7PM4Z.js} +20 -20
- package/dist/{chunk-EVPYSTFN.js → chunk-N5PV2333.js} +2 -2
- package/dist/{chunk-2OYCCICJ.mjs → chunk-O42OHREU.mjs} +2 -2
- package/dist/{chunk-GXTFFUML.js → chunk-P2QXQ6MQ.js} +2 -2
- package/dist/{chunk-6UJMT3W5.js → chunk-PLVDJ2C7.js} +25 -10
- package/dist/{chunk-LB7DV74C.js → chunk-R53V3OCW.js} +2 -2
- package/dist/{chunk-QEHJJFRA.js → chunk-RCKYEN77.js} +30 -30
- package/dist/{chunk-66Q42VH2.js → chunk-RFYDR33M.js} +2 -2
- package/dist/{chunk-YK4JWL7A.js → chunk-S3BUAVBC.js} +2 -2
- package/dist/{chunk-7CMIO2NL.js → chunk-SIB3V2YY.js} +4 -4
- package/dist/{chunk-EMCTCFOX.js → chunk-TBL7CKLR.js} +5 -5
- package/dist/{chunk-VWP4LOTY.mjs → chunk-UBGVFM6R.mjs} +1 -1
- package/dist/{chunk-5O25TKHC.js → chunk-UENOVTOA.js} +11 -11
- package/dist/{chunk-SVWY4Z75.js → chunk-UHXAUED4.js} +2 -2
- package/dist/{chunk-HMRKWV4A.mjs → chunk-UMDYHJZU.mjs} +1 -1
- package/dist/{chunk-T2MIMLK4.mjs → chunk-UVCN7374.mjs} +2 -2
- package/dist/{chunk-X3HM2IHO.mjs → chunk-VMJ56GXP.mjs} +3 -3
- package/dist/{chunk-ASZOMYCS.mjs → chunk-WEEHPBGU.mjs} +1 -1
- package/dist/{chunk-IKTHRMUF.mjs → chunk-WXJYXFJV.mjs} +1 -1
- package/dist/{chunk-6PFAU5XI.mjs → chunk-Y6XAW36H.mjs} +4 -4
- package/dist/{chunk-MCVES7TN.mjs → chunk-YBQP3CHU.mjs} +1 -1
- package/dist/{chunk-KV6U4IX6.js → chunk-YSENUUBR.js} +2 -2
- package/dist/{chunk-SVIR2XZM.js → chunk-ZOPV6QA4.js} +16 -16
- package/dist/{chunk-LYXDMWXF.js → chunk-ZW252N2G.js} +4 -4
- package/dist/{executor--XDIJdLD.d.ts → executor-B0b85w0j.d.ts} +1 -1
- package/dist/{executor-n2RcT6qh.d.mts → executor-B1teF76_.d.mts} +1 -1
- package/dist/{executor-BfEqeIla.d.ts → executor-BEgTatwB.d.ts} +1 -1
- package/dist/{executor-BKbLJ--E.d.mts → executor-BfOctEDN.d.mts} +1 -1
- package/dist/{executor-B-dxC0WQ.d.mts → executor-BpoG787z.d.mts} +1 -1
- package/dist/{executor-BxXLIcSp.d.mts → executor-C8bjEDVM.d.mts} +1 -1
- package/dist/{executor-Ji6z3dQ5.d.ts → executor-CQnrL7gj.d.ts} +1 -1
- package/dist/{executor-DrmPQZn8.d.ts → executor-CeyAi6Mk.d.ts} +1 -1
- package/dist/{executor-BWgGR4di.d.ts → executor-DgwwK3wO.d.ts} +1 -1
- package/dist/{executor-BCIaWtDH.d.mts → executor-_ImEyb5Z.d.mts} +1 -1
- package/dist/{executor-xSP6q_l2.d.ts → executor-hVIiAH1B.d.ts} +1 -1
- package/dist/{executor-QrMSMiZ3.d.mts → executor-taDcsbXj.d.mts} +1 -1
- package/dist/executors.d.mts +7 -7
- package/dist/executors.d.ts +7 -7
- package/dist/executors.js +20 -20
- package/dist/executors.mjs +19 -19
- package/dist/{generator-mgm-AEto.d.mts → generator-7TB9pmdr.d.mts} +2 -2
- package/dist/{generator-C7IQBL1_.d.ts → generator-BHlJ9J69.d.ts} +2 -2
- package/dist/{generator-BRv8CovR.d.mts → generator-B_qaxa-4.d.mts} +2 -2
- package/dist/{generator-C1LWbWaE.d.ts → generator-CAtGNKdM.d.ts} +2 -2
- package/dist/{generator-BhoO530L.d.mts → generator-CJunp7GB.d.mts} +2 -2
- package/dist/{generator-C3oor1Tq.d.ts → generator-CU7RGufI.d.ts} +2 -2
- package/dist/{generator-BmMXStvy.d.ts → generator-CrAo0KCH.d.ts} +1 -1
- package/dist/{generator-CG4Dq6d1.d.mts → generator-DLaccLmn.d.mts} +2 -2
- package/dist/{generator-CcKJAkqz.d.mts → generator-DkgZalYq.d.mts} +1 -1
- package/dist/{generator-CvEnH1My.d.ts → generator-X3nB1oRF.d.ts} +2 -2
- package/dist/generators.d.mts +7 -7
- package/dist/generators.d.ts +7 -7
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +8 -8
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +28 -28
- package/dist/index.mjs +27 -27
- package/dist/src/base/base-executor.d.mts +2 -2
- package/dist/src/base/base-executor.d.ts +2 -2
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-generator.d.mts +2 -2
- package/dist/src/base/base-generator.d.ts +2 -2
- package/dist/src/base/base-generator.js +4 -4
- package/dist/src/base/base-generator.mjs +3 -3
- package/dist/src/base/index.d.mts +2 -2
- package/dist/src/base/index.d.ts +2 -2
- package/dist/src/base/index.js +5 -5
- package/dist/src/base/index.mjs +4 -4
- package/dist/src/executors/cargo-build/executor.js +5 -5
- package/dist/src/executors/cargo-build/executor.mjs +4 -4
- package/dist/src/executors/cargo-check/executor.js +5 -5
- package/dist/src/executors/cargo-check/executor.mjs +4 -4
- package/dist/src/executors/cargo-clippy/executor.js +5 -5
- package/dist/src/executors/cargo-clippy/executor.mjs +4 -4
- package/dist/src/executors/cargo-doc/executor.js +5 -5
- package/dist/src/executors/cargo-doc/executor.mjs +4 -4
- package/dist/src/executors/cargo-format/executor.js +5 -5
- package/dist/src/executors/cargo-format/executor.mjs +4 -4
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.d.mts +1 -1
- package/dist/src/executors/clean-package/executor.d.ts +1 -1
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- package/dist/src/executors/esbuild/executor.d.mts +2 -2
- package/dist/src/executors/esbuild/executor.d.ts +2 -2
- package/dist/src/executors/esbuild/executor.js +6 -6
- package/dist/src/executors/esbuild/executor.mjs +5 -5
- package/dist/src/executors/napi/executor.d.mts +2 -2
- package/dist/src/executors/napi/executor.d.ts +2 -2
- package/dist/src/executors/napi/executor.js +5 -5
- package/dist/src/executors/napi/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/executor.js +6 -6
- package/dist/src/executors/npm-publish/executor.mjs +5 -5
- package/dist/src/executors/size-limit/executor.d.mts +2 -2
- package/dist/src/executors/size-limit/executor.d.ts +2 -2
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/tsdown/executor.d.mts +2 -2
- package/dist/src/executors/tsdown/executor.d.ts +2 -2
- package/dist/src/executors/tsdown/executor.js +6 -6
- package/dist/src/executors/tsdown/executor.mjs +5 -5
- package/dist/src/executors/typia/executor.d.mts +2 -2
- package/dist/src/executors/typia/executor.d.ts +2 -2
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +4 -4
- package/dist/src/executors/unbuild/executor.d.mts +2 -2
- package/dist/src/executors/unbuild/executor.d.ts +2 -2
- package/dist/src/executors/unbuild/executor.js +5 -5
- package/dist/src/executors/unbuild/executor.mjs +4 -4
- package/dist/src/generators/browser-library/generator.d.mts +3 -3
- package/dist/src/generators/browser-library/generator.d.ts +3 -3
- package/dist/src/generators/browser-library/generator.js +5 -5
- package/dist/src/generators/browser-library/generator.mjs +4 -4
- package/dist/src/generators/config-schema/generator.d.mts +3 -3
- package/dist/src/generators/config-schema/generator.d.ts +3 -3
- package/dist/src/generators/config-schema/generator.js +5 -5
- package/dist/src/generators/config-schema/generator.mjs +4 -4
- package/dist/src/generators/neutral-library/generator.d.mts +3 -3
- package/dist/src/generators/neutral-library/generator.d.ts +3 -3
- package/dist/src/generators/neutral-library/generator.js +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +4 -4
- package/dist/src/generators/node-library/generator.d.mts +3 -3
- package/dist/src/generators/node-library/generator.d.ts +3 -3
- package/dist/src/generators/node-library/generator.js +5 -5
- package/dist/src/generators/node-library/generator.mjs +4 -4
- package/dist/src/generators/preset/generator.d.mts +3 -3
- package/dist/src/generators/preset/generator.d.ts +3 -3
- package/dist/src/generators/preset/generator.js +5 -5
- package/dist/src/generators/preset/generator.mjs +4 -4
- package/dist/src/plugins/typescript/index.d.mts +2 -2
- package/dist/src/plugins/typescript/index.d.ts +2 -2
- package/dist/src/plugins/typescript/tsdown.d.mts +2 -2
- package/dist/src/plugins/typescript/tsdown.d.ts +2 -2
- package/dist/src/plugins/typescript/tsup.d.mts +2 -2
- package/dist/src/plugins/typescript/tsup.d.ts +2 -2
- package/dist/src/release/index.d.mts +1 -1
- package/dist/src/release/index.d.ts +1 -1
- package/dist/src/release/index.js +6 -6
- package/dist/src/release/index.mjs +5 -5
- package/dist/src/release/js-version-actions.d.mts +1 -1
- package/dist/src/release/js-version-actions.d.ts +1 -1
- package/dist/src/release/js-version-actions.js +4 -4
- package/dist/src/release/js-version-actions.mjs +3 -3
- package/dist/src/release/rust-version-actions.d.mts +1 -1
- package/dist/src/release/rust-version-actions.d.ts +1 -1
- package/dist/src/release/rust-version-actions.js +5 -5
- package/dist/src/release/rust-version-actions.mjs +4 -4
- package/dist/src/types.d.mts +2 -2
- package/dist/src/types.d.ts +2 -2
- package/dist/src/utils/index.d.mts +2 -2
- package/dist/src/utils/index.d.ts +2 -2
- package/dist/src/utils/index.js +4 -4
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/package-helpers.js +4 -4
- package/dist/src/utils/package-helpers.mjs +3 -3
- package/dist/src/utils/project-tags.d.mts +2 -2
- package/dist/src/utils/project-tags.d.ts +2 -2
- package/dist/{types-Dna6kjOz.d.ts → types-BAcl7ePf.d.ts} +1 -1
- package/dist/{types-DeaeRt7S.d.mts → types-Bl3tojmB.d.mts} +7 -1
- package/dist/{types-DeaeRt7S.d.ts → types-Bl3tojmB.d.ts} +7 -1
- package/dist/{types-BJp_GqKO.d.mts → types-Bx5yWHfS.d.mts} +1 -1
- package/package.json +9 -9
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkCSEJKDUCjs = require('./chunk-CSEJKDUC.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkMLP7PM4Zjs = require('./chunk-MLP7PM4Z.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkPLVDJ2C7js = require('./chunk-PLVDJ2C7.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ var _chunk6UJMT3W5js = require('./chunk-6UJMT3W5.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk23XGJAPAjs = require('./chunk-23XGJAPA.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -79,11 +79,11 @@ var resolveOptions = async (userOptions) => {
|
|
|
79
79
|
if (!workspaceRoot) {
|
|
80
80
|
throw new Error("Cannot find Nx workspace root");
|
|
81
81
|
}
|
|
82
|
-
const workspaceConfig = await
|
|
82
|
+
const workspaceConfig = await _chunkPLVDJ2C7js.getWorkspaceConfig.call(void 0, options.debug === true, {
|
|
83
83
|
workspaceRoot
|
|
84
84
|
});
|
|
85
|
-
|
|
86
|
-
const stopwatch =
|
|
85
|
+
_chunk23XGJAPAjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
86
|
+
const stopwatch = _chunk23XGJAPAjs.getStopwatch.call(void 0, "Build options resolution");
|
|
87
87
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
88
88
|
exitOnError: true
|
|
89
89
|
});
|
|
@@ -117,7 +117,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
117
117
|
const result = {
|
|
118
118
|
name: projectName,
|
|
119
119
|
mode: "production",
|
|
120
|
-
target:
|
|
120
|
+
target: _chunkCSEJKDUCjs.DEFAULT_TARGET,
|
|
121
121
|
generatePackageJson: true,
|
|
122
122
|
outDir: _chunkCQDBLKPFjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
123
123
|
minify: !debug,
|
|
@@ -149,15 +149,15 @@ var resolveOptions = async (userOptions) => {
|
|
|
149
149
|
};
|
|
150
150
|
result.env = _defu2.default.call(void 0,
|
|
151
151
|
options.env,
|
|
152
|
-
|
|
152
|
+
_chunkCSEJKDUCjs.getEnv.call(void 0, "tsdown", result)
|
|
153
153
|
);
|
|
154
154
|
stopwatch();
|
|
155
155
|
return result;
|
|
156
156
|
};
|
|
157
157
|
async function generatePackageJson(options) {
|
|
158
158
|
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
159
|
-
|
|
160
|
-
const stopwatch =
|
|
159
|
+
_chunk23XGJAPAjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
160
|
+
const stopwatch = _chunk23XGJAPAjs.getStopwatch.call(void 0, "Write package.json file");
|
|
161
161
|
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
162
162
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
163
163
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -174,13 +174,13 @@ async function generatePackageJson(options) {
|
|
|
174
174
|
throw new Error("Cannot find package.json configuration file");
|
|
175
175
|
}
|
|
176
176
|
let packageJson = JSON.parse(packageJsonFile);
|
|
177
|
-
packageJson = await
|
|
177
|
+
packageJson = await _chunkCSEJKDUCjs.addPackageDependencies.call(void 0,
|
|
178
178
|
options.workspaceConfig.workspaceRoot,
|
|
179
179
|
options.projectRoot,
|
|
180
180
|
options.projectName,
|
|
181
181
|
packageJson
|
|
182
182
|
);
|
|
183
|
-
packageJson = await
|
|
183
|
+
packageJson = await _chunkCSEJKDUCjs.addWorkspacePackageJsonFields.call(void 0,
|
|
184
184
|
options.workspaceConfig,
|
|
185
185
|
options.projectRoot,
|
|
186
186
|
options.sourceRoot,
|
|
@@ -190,7 +190,7 @@ async function generatePackageJson(options) {
|
|
|
190
190
|
);
|
|
191
191
|
packageJson.exports ??= {};
|
|
192
192
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
193
|
-
packageJson.exports["."] ??=
|
|
193
|
+
packageJson.exports["."] ??= _chunkCSEJKDUCjs.addPackageJsonExport.call(void 0,
|
|
194
194
|
"index",
|
|
195
195
|
packageJson.type,
|
|
196
196
|
options.sourceRoot
|
|
@@ -206,7 +206,7 @@ async function generatePackageJson(options) {
|
|
|
206
206
|
const split = entryPoint.out.split(".");
|
|
207
207
|
split.pop();
|
|
208
208
|
const entry2 = split.join(".").replaceAll("\\", "/");
|
|
209
|
-
packageJson.exports[`./${entry2}`] ??=
|
|
209
|
+
packageJson.exports[`./${entry2}`] ??= _chunkCSEJKDUCjs.addPackageJsonExport.call(void 0,
|
|
210
210
|
entry2,
|
|
211
211
|
options.fixedExtension ? "fixed" : packageJson.type,
|
|
212
212
|
options.sourceRoot
|
|
@@ -231,8 +231,8 @@ async function generatePackageJson(options) {
|
|
|
231
231
|
return options;
|
|
232
232
|
}
|
|
233
233
|
async function executeTSDown(options) {
|
|
234
|
-
|
|
235
|
-
const stopwatch =
|
|
234
|
+
_chunk23XGJAPAjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.workspaceConfig);
|
|
235
|
+
const stopwatch = _chunk23XGJAPAjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
236
236
|
await _tsdown.build.call(void 0, {
|
|
237
237
|
...options,
|
|
238
238
|
entry: options.entry,
|
|
@@ -242,12 +242,12 @@ async function executeTSDown(options) {
|
|
|
242
242
|
return options;
|
|
243
243
|
}
|
|
244
244
|
async function copyBuildAssets(options) {
|
|
245
|
-
|
|
245
|
+
_chunk23XGJAPAjs.writeDebug.call(void 0,
|
|
246
246
|
` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`,
|
|
247
247
|
options.workspaceConfig
|
|
248
248
|
);
|
|
249
|
-
const stopwatch =
|
|
250
|
-
await
|
|
249
|
+
const stopwatch = _chunk23XGJAPAjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
250
|
+
await _chunkCSEJKDUCjs.copyAssets.call(void 0,
|
|
251
251
|
options.workspaceConfig,
|
|
252
252
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
253
253
|
options.outDir,
|
|
@@ -260,18 +260,18 @@ async function copyBuildAssets(options) {
|
|
|
260
260
|
return options;
|
|
261
261
|
}
|
|
262
262
|
async function reportResults(options) {
|
|
263
|
-
|
|
263
|
+
_chunk23XGJAPAjs.writeSuccess.call(void 0,
|
|
264
264
|
` \u{1F4E6} The ${options.name} build completed successfully`,
|
|
265
265
|
options.workspaceConfig
|
|
266
266
|
);
|
|
267
267
|
}
|
|
268
268
|
async function cleanOutputPath(options) {
|
|
269
269
|
if (options.clean !== false && options.workspaceConfig) {
|
|
270
|
-
|
|
270
|
+
_chunk23XGJAPAjs.writeDebug.call(void 0,
|
|
271
271
|
` \u{1F9F9} Cleaning ${options.name} output path: ${options.workspaceConfig}`,
|
|
272
272
|
options.workspaceConfig
|
|
273
273
|
);
|
|
274
|
-
const stopwatch =
|
|
274
|
+
const stopwatch = _chunk23XGJAPAjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
275
275
|
await cleanDirectories(
|
|
276
276
|
options.name,
|
|
277
277
|
options.outDir,
|
|
@@ -282,8 +282,8 @@ async function cleanOutputPath(options) {
|
|
|
282
282
|
return options;
|
|
283
283
|
}
|
|
284
284
|
async function build(options) {
|
|
285
|
-
|
|
286
|
-
const stopwatch =
|
|
285
|
+
_chunk23XGJAPAjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
286
|
+
const stopwatch = _chunk23XGJAPAjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
287
287
|
try {
|
|
288
288
|
const opts = Array.isArray(options) ? options : [options];
|
|
289
289
|
if (opts.length === 0) {
|
|
@@ -303,13 +303,13 @@ async function build(options) {
|
|
|
303
303
|
})
|
|
304
304
|
);
|
|
305
305
|
} else {
|
|
306
|
-
|
|
306
|
+
_chunk23XGJAPAjs.writeWarning.call(void 0,
|
|
307
307
|
" \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function."
|
|
308
308
|
);
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
_chunk23XGJAPAjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
311
311
|
} catch (error) {
|
|
312
|
-
|
|
312
|
+
_chunk23XGJAPAjs.writeFatal.call(void 0,
|
|
313
313
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
314
314
|
);
|
|
315
315
|
throw error;
|
|
@@ -320,7 +320,7 @@ async function build(options) {
|
|
|
320
320
|
|
|
321
321
|
// src/executors/tsdown/executor.ts
|
|
322
322
|
async function tsdownExecutorFn(options, context, config) {
|
|
323
|
-
|
|
323
|
+
_chunk23XGJAPAjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown executor on the workspace", config);
|
|
324
324
|
if (!_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'optionalAccess', _4 => _4.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _5 => _5.projectsConfigurations, 'access', _6 => _6.projects, 'access', _7 => _7[context.projectName], 'optionalAccess', _8 => _8.root])) {
|
|
325
325
|
throw new Error(
|
|
326
326
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -341,7 +341,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
341
341
|
success: true
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
|
-
var executor_default =
|
|
344
|
+
var executor_default = _chunkMLP7PM4Zjs.withRunExecutor.call(void 0,
|
|
345
345
|
"Storm TSDown build",
|
|
346
346
|
tsdownExecutorFn,
|
|
347
347
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkP2QXQ6MQjs = require('./chunk-P2QXQ6MQ.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/cargo-publish/executor.ts
|
|
6
6
|
var _devkit = require('@nx/devkit');
|
|
@@ -25,7 +25,7 @@ async function runExecutor(options, context) {
|
|
|
25
25
|
context.root,
|
|
26
26
|
options.packageRoot ? options.packageRoot : root
|
|
27
27
|
);
|
|
28
|
-
const cargoToml =
|
|
28
|
+
const cargoToml = _chunkP2QXQ6MQjs.parseCargoToml.call(void 0,
|
|
29
29
|
_fs.readFileSync.call(void 0, _devkit.joinPathFragments.call(void 0, packageRoot, "Cargo.toml"), "utf-8")
|
|
30
30
|
);
|
|
31
31
|
try {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkMLP7PM4Zjs = require('./chunk-MLP7PM4Z.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-doc/executor.ts
|
|
10
10
|
async function cargoDocExecutor(options, context) {
|
|
@@ -14,7 +14,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
14
14
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "doc", options, context);
|
|
15
15
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
16
16
|
}
|
|
17
|
-
var executor_default =
|
|
17
|
+
var executor_default = _chunkMLP7PM4Zjs.withRunExecutor.call(void 0,
|
|
18
18
|
"Cargo - Doc",
|
|
19
19
|
cargoDocExecutor,
|
|
20
20
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkEQ46UJSLjs = require('./chunk-EQ46UJSL.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPLVDJ2C7js = require('./chunk-PLVDJ2C7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -35,7 +35,7 @@ async function getNpmRegistry() {
|
|
|
35
35
|
if (process.env.STORM_REGISTRY_NPM) {
|
|
36
36
|
return process.env.STORM_REGISTRY_NPM;
|
|
37
37
|
}
|
|
38
|
-
const workspaceConfig = await
|
|
38
|
+
const workspaceConfig = await _chunkPLVDJ2C7js.getConfig.call(void 0, );
|
|
39
39
|
if (_optionalChain([workspaceConfig, 'optionalAccess', _ => _.registry, 'optionalAccess', _2 => _2.npm])) {
|
|
40
40
|
return _optionalChain([workspaceConfig, 'optionalAccess', _3 => _3.registry, 'optionalAccess', _4 => _4.npm]);
|
|
41
41
|
}
|
|
@@ -315,7 +315,7 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
315
315
|
return { success: true };
|
|
316
316
|
}
|
|
317
317
|
await replaceDepsAliases(packageRoot, context.root);
|
|
318
|
-
await
|
|
318
|
+
await _chunkEQ46UJSLjs.addPackageJsonGitHead.call(void 0, packageRoot);
|
|
319
319
|
const npmPublishCommandSegments = [`npm publish --json`];
|
|
320
320
|
const npmViewCommandSegments = [
|
|
321
321
|
`npm view ${packageName} versions dist-tags --json`
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkMLP7PM4Zjs = require('./chunk-MLP7PM4Z.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk23XGJAPAjs = require('./chunk-23XGJAPA.js');
|
|
7
7
|
|
|
8
8
|
// src/executors/typia/executor.ts
|
|
9
9
|
var _fsextra = require('fs-extra');
|
|
10
10
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
11
11
|
async function typiaExecutorFn(options, _, config) {
|
|
12
12
|
if (options.clean !== false) {
|
|
13
|
-
|
|
13
|
+
_chunk23XGJAPAjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
14
14
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
15
15
|
}
|
|
16
16
|
await Promise.all(
|
|
17
17
|
options.entry.map((entry) => {
|
|
18
|
-
|
|
18
|
+
_chunk23XGJAPAjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
19
19
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
20
20
|
input: entry,
|
|
21
21
|
output: options.outputPath,
|
|
@@ -27,7 +27,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
27
27
|
success: true
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
var executor_default =
|
|
30
|
+
var executor_default = _chunkMLP7PM4Zjs.withRunExecutor.call(void 0,
|
|
31
31
|
"Typia runtime validation generator",
|
|
32
32
|
typiaExecutorFn,
|
|
33
33
|
{
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZOPV6QA4js = require('./chunk-ZOPV6QA4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPLVDJ2C7js = require('./chunk-PLVDJ2C7.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk23XGJAPAjs = require('./chunk-23XGJAPA.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -18,22 +18,22 @@ var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
|
|
20
20
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
21
|
-
|
|
21
|
+
_chunk23XGJAPAjs.writeInfo.call(void 0,
|
|
22
22
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
23
23
|
config
|
|
24
24
|
);
|
|
25
|
-
|
|
25
|
+
_chunk23XGJAPAjs.writeTrace.call(void 0,
|
|
26
26
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
27
27
|
config
|
|
28
28
|
);
|
|
29
|
-
const jsonSchema = z.toJSONSchema(
|
|
29
|
+
const jsonSchema = z.toJSONSchema(_chunkPLVDJ2C7js.workspaceConfigSchema, {
|
|
30
30
|
target: "draft-7",
|
|
31
|
-
metadata:
|
|
31
|
+
metadata: _chunkPLVDJ2C7js.schemaRegistry
|
|
32
32
|
});
|
|
33
33
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
34
34
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
35
35
|
jsonSchema.description ??= "This JSON Schema defines the structure of the Storm Workspace configuration file (`storm-workspace.json`). It is used to validate the configuration file and ensure that it adheres to the expected format.";
|
|
36
|
-
|
|
36
|
+
_chunk23XGJAPAjs.writeTrace.call(void 0, jsonSchema, config);
|
|
37
37
|
if (!options.outputFile) {
|
|
38
38
|
throw new Error(
|
|
39
39
|
"The `outputFile` option is required. Please specify the output file path."
|
|
@@ -43,13 +43,13 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
43
43
|
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, ))),
|
|
44
44
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
45
45
|
);
|
|
46
|
-
|
|
46
|
+
_chunk23XGJAPAjs.writeTrace.call(void 0,
|
|
47
47
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
48
48
|
config
|
|
49
49
|
);
|
|
50
50
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, { spaces: 2 });
|
|
51
51
|
await _devkit.formatFiles.call(void 0, tree);
|
|
52
|
-
|
|
52
|
+
_chunk23XGJAPAjs.writeSuccess.call(void 0,
|
|
53
53
|
"\u{1F680} Storm Configuration JSON Schema creation has completed successfully!",
|
|
54
54
|
config
|
|
55
55
|
);
|
|
@@ -57,7 +57,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
57
57
|
success: true
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
var generator_default =
|
|
60
|
+
var generator_default = _chunkZOPV6QA4js.withRunGenerator.call(void 0,
|
|
61
61
|
"Configuration Schema Creator",
|
|
62
62
|
configSchemaGeneratorFn,
|
|
63
63
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkSZWM7COVjs = require('./chunk-SZWM7COV.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZOPV6QA4js = require('./chunk-ZOPV6QA4.js');
|
|
8
8
|
|
|
9
9
|
// src/generators/preset/generator.ts
|
|
10
10
|
|
|
@@ -239,7 +239,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
239
239
|
);
|
|
240
240
|
return null;
|
|
241
241
|
}
|
|
242
|
-
var generator_default =
|
|
242
|
+
var generator_default = _chunkZOPV6QA4js.withRunGenerator.call(void 0,
|
|
243
243
|
"Storm Workspace Preset Generator",
|
|
244
244
|
presetGeneratorFn
|
|
245
245
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GCQEACOQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DAN5WBD6.mjs";
|
|
7
7
|
|
|
8
8
|
// src/executors/typia/executor.ts
|
|
9
9
|
import { removeSync } from "fs-extra";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KCJ5MXVT.mjs";
|
|
4
4
|
import {
|
|
5
5
|
schemaRegistry,
|
|
6
6
|
workspaceConfigSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3IRQJJRB.mjs";
|
|
8
8
|
import {
|
|
9
9
|
writeInfo,
|
|
10
10
|
writeSuccess,
|
|
11
11
|
writeTrace
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DAN5WBD6.mjs";
|
|
13
13
|
import {
|
|
14
14
|
findWorkspaceRoot
|
|
15
15
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
addWorkspacePackageJsonFields,
|
|
6
6
|
copyAssets,
|
|
7
7
|
getEnv
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-APT7LF6M.mjs";
|
|
9
9
|
import {
|
|
10
10
|
withRunExecutor
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GCQEACOQ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getWorkspaceConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3IRQJJRB.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getStopwatch,
|
|
17
17
|
writeDebug,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
writeInfo,
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DAN5WBD6.mjs";
|
|
23
23
|
import {
|
|
24
24
|
findWorkspaceRoot
|
|
25
25
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkMLP7PM4Zjs = require('./chunk-MLP7PM4Z.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-format/executor.ts
|
|
10
10
|
async function cargoFormatExecutor(options, context) {
|
|
11
11
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "fmt", options, context);
|
|
12
12
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkMLP7PM4Zjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Format",
|
|
16
16
|
cargoFormatExecutor,
|
|
17
17
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHXQRGLIIjs = require('./chunk-HXQRGLII.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPLVDJ2C7js = require('./chunk-PLVDJ2C7.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ var _chunk6UJMT3W5js = require('./chunk-6UJMT3W5.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk23XGJAPAjs = require('./chunk-23XGJAPA.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -22,30 +22,30 @@ var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
|
22
22
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
23
23
|
skipReadingConfig: false
|
|
24
24
|
}) => async (tree, _options) => {
|
|
25
|
-
const stopwatch =
|
|
25
|
+
const stopwatch = _chunk23XGJAPAjs.getStopwatch.call(void 0, name);
|
|
26
26
|
let options = _options;
|
|
27
27
|
let config;
|
|
28
28
|
try {
|
|
29
|
-
|
|
29
|
+
_chunk23XGJAPAjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
30
30
|
|
|
31
31
|
`, config);
|
|
32
32
|
const workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, );
|
|
33
33
|
if (!generatorOptions.skipReadingConfig) {
|
|
34
|
-
|
|
34
|
+
_chunk23XGJAPAjs.writeDebug.call(void 0,
|
|
35
35
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
36
36
|
- workspaceRoot: ${workspaceRoot}`,
|
|
37
37
|
config
|
|
38
38
|
);
|
|
39
|
-
config = await
|
|
39
|
+
config = await _chunkPLVDJ2C7js.getConfig.call(void 0, workspaceRoot);
|
|
40
40
|
}
|
|
41
41
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
42
|
-
|
|
42
|
+
_chunk23XGJAPAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
43
43
|
options = await Promise.resolve(
|
|
44
44
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
45
45
|
);
|
|
46
|
-
|
|
46
|
+
_chunk23XGJAPAjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
_chunk23XGJAPAjs.writeTrace.call(void 0,
|
|
49
49
|
`Generator schema options \u2699\uFE0F
|
|
50
50
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
51
51
|
config
|
|
@@ -56,11 +56,11 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
56
56
|
_chunkHXQRGLIIjs.applyWorkspaceBaseTokens
|
|
57
57
|
);
|
|
58
58
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
59
|
-
|
|
59
|
+
_chunk23XGJAPAjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
60
60
|
await Promise.resolve(
|
|
61
61
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
62
62
|
);
|
|
63
|
-
|
|
63
|
+
_chunk23XGJAPAjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
64
64
|
}
|
|
65
65
|
const result = await Promise.resolve(
|
|
66
66
|
generatorFn(tree, tokenized, config)
|
|
@@ -75,21 +75,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
78
|
-
|
|
78
|
+
_chunk23XGJAPAjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
79
79
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
80
|
-
|
|
80
|
+
_chunk23XGJAPAjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
81
81
|
}
|
|
82
82
|
return () => {
|
|
83
|
-
|
|
83
|
+
_chunk23XGJAPAjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
84
84
|
`, config);
|
|
85
85
|
};
|
|
86
86
|
} catch (error) {
|
|
87
87
|
return () => {
|
|
88
|
-
|
|
88
|
+
_chunk23XGJAPAjs.writeFatal.call(void 0,
|
|
89
89
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
90
90
|
config
|
|
91
91
|
);
|
|
92
|
-
|
|
92
|
+
_chunk23XGJAPAjs.writeError.call(void 0,
|
|
93
93
|
`An exception was thrown in the generator's process
|
|
94
94
|
- Details: ${error.message}
|
|
95
95
|
- Stacktrace: ${error.stack}`,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkMLP7PM4Zjs = require('./chunk-MLP7PM4Z.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk23XGJAPAjs = require('./chunk-23XGJAPA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -12,7 +12,7 @@ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
|
12
12
|
var _defu = require('defu');
|
|
13
13
|
var _jiti = require('jiti');
|
|
14
14
|
async function unbuildExecutorFn(options, context, config) {
|
|
15
|
-
|
|
15
|
+
_chunk23XGJAPAjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
16
16
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
17
17
|
throw new Error(
|
|
18
18
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
@@ -80,7 +80,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
80
80
|
success: true
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
var executor_default =
|
|
83
|
+
var executor_default = _chunkMLP7PM4Zjs.withRunExecutor.call(void 0,
|
|
84
84
|
"TypeScript Unbuild build",
|
|
85
85
|
unbuildExecutorFn,
|
|
86
86
|
{
|