@storm-software/workspace-tools 1.295.16 → 1.295.17
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 +18 -0
- package/README.md +1 -1
- package/dist/{chunk-MYOUONF2.mjs → chunk-24EFED7H.mjs} +5 -5
- package/dist/{chunk-CN3UL6AL.mjs → chunk-27OQPRO2.mjs} +2 -2
- package/dist/{chunk-MS4BPPPO.js → chunk-2FEE7J4V.js} +17 -17
- package/dist/{chunk-4HKJAOZE.js → chunk-32U3BQQK.js} +2 -2
- package/dist/{chunk-K2HA4BJN.js → chunk-33TUEQBH.js} +2 -2
- package/dist/{chunk-V3AKBG6K.js → chunk-46V4NNLD.js} +4 -4
- package/dist/{chunk-7YK7GYPK.mjs → chunk-6OWAWZJZ.mjs} +1 -1
- package/dist/{chunk-I6M6W65L.mjs → chunk-6P5F6MCJ.mjs} +1 -1
- package/dist/{chunk-JYOKROZO.mjs → chunk-6ZNEHBDJ.mjs} +1 -1
- package/dist/{chunk-27MUZNN2.mjs → chunk-7YCS7NS3.mjs} +1 -1
- package/dist/{chunk-NDH64REY.mjs → chunk-AUWCQMJG.mjs} +1 -1
- package/dist/{chunk-E7OZO5Z4.mjs → chunk-B6T6YYFK.mjs} +1 -1
- package/dist/{chunk-6KULJXXR.mjs → chunk-BMK64B43.mjs} +2 -2
- package/dist/{chunk-37K47MPA.mjs → chunk-CNYWUCFC.mjs} +4 -4
- package/dist/{chunk-RXZNL5UA.js → chunk-D56IG7V7.js} +31 -31
- package/dist/{chunk-4U2NLOJ4.js → chunk-DG2JZFC4.js} +2 -2
- package/dist/{chunk-MZGQ4TDY.js → chunk-FH4HT6ZL.js} +11 -11
- package/dist/{chunk-IE6KPWWN.mjs → chunk-GDQHSPFI.mjs} +2 -2
- package/dist/{chunk-4KPUUE5X.mjs → chunk-GW7JW3CY.mjs} +2 -2
- package/dist/{chunk-S3RWO7R6.mjs → chunk-I2PUWYSE.mjs} +2 -2
- package/dist/{chunk-OUFCTM3O.js → chunk-I6J3U7H6.js} +2 -2
- package/dist/{chunk-EE66SW3C.js → chunk-IRW4CMPG.js} +4 -4
- package/dist/{chunk-MTLWFXXL.js → chunk-KTCIRQID.js} +2 -2
- package/dist/{chunk-M7NAHAMC.mjs → chunk-KU3DWKHT.mjs} +18 -1
- package/dist/{chunk-3ZTDN4LM.js → chunk-L7VRQV4Y.js} +2 -2
- package/dist/{chunk-HBEU4BAA.js → chunk-LL5MXO5W.js} +2 -2
- package/dist/{chunk-YG23JJML.js → chunk-LQ5EK44H.js} +2 -2
- package/dist/{chunk-5KJYQ2A4.mjs → chunk-M3YDUOTX.mjs} +1 -1
- package/dist/{chunk-LIV5KBYE.js → chunk-NYMFTMIN.js} +2 -2
- package/dist/{chunk-QEZ37HVM.js → chunk-OAD5MTR5.js} +28 -7
- package/dist/{chunk-GKKPBHC2.js → chunk-PFLKUSFO.js} +6 -6
- package/dist/{chunk-GYSWO4MZ.js → chunk-PJBQJFQI.js} +2 -2
- package/dist/{chunk-H3IKVCIQ.js → chunk-PRMTF2VE.js} +5 -5
- package/dist/{chunk-PGNIX7OK.mjs → chunk-PXEQSO2M.mjs} +3 -3
- package/dist/{chunk-S7ENFG63.mjs → chunk-Q62HNJPE.mjs} +1 -1
- package/dist/{chunk-EE24BJX6.js → chunk-QJQWQU4G.js} +34 -34
- package/dist/{chunk-RDCGNHHG.js → chunk-QTI2WSYX.js} +2 -2
- package/dist/{chunk-ISKPL45K.mjs → chunk-QTSUG4MO.mjs} +1 -1
- package/dist/{chunk-2DEV7MTD.js → chunk-RYYMR72F.js} +21 -21
- package/dist/{chunk-OPKOW7IE.mjs → chunk-SPZ6A2EH.mjs} +28 -7
- package/dist/{chunk-ZMKOMKU4.mjs → chunk-SQC4RIPM.mjs} +2 -2
- package/dist/{chunk-JTAXUWUB.mjs → chunk-SYNCWFGJ.mjs} +1 -1
- package/dist/{chunk-ULDXNDLD.mjs → chunk-TBXL5JQF.mjs} +1 -1
- package/dist/{chunk-E4M7JXF6.mjs → chunk-UMEEPN33.mjs} +1 -1
- package/dist/{chunk-6TQ2ZIQQ.js → chunk-V3IVXSDL.js} +12 -12
- package/dist/{chunk-6ZC47WFT.mjs → chunk-V5NVKBCF.mjs} +1 -1
- package/dist/{chunk-HRBUI3FP.js → chunk-VPB6ALHZ.js} +2 -2
- package/dist/{chunk-CDEOZ2LA.mjs → chunk-VRWOCYEC.mjs} +2 -2
- package/dist/{chunk-2VO5LA3U.js → chunk-XBKQFZBC.js} +27 -10
- package/dist/{chunk-4XFAGKVY.js → chunk-XIUG3QAE.js} +2 -2
- package/dist/{chunk-5IVX4ML2.mjs → chunk-XNJ3AEJS.mjs} +1 -1
- package/dist/{chunk-JWDJFIY2.js → chunk-Y2QUVZ77.js} +5 -5
- package/dist/{chunk-42TEYLHF.mjs → chunk-Y42BDOTK.mjs} +1 -1
- package/dist/{chunk-TJQO23VQ.js → chunk-YQUPDVJ5.js} +2 -2
- package/dist/{executor-DgwwK3wO.d.ts → executor-B0av8HZu.d.ts} +1 -1
- package/dist/{executor-BEgTatwB.d.ts → executor-B1xWwrK9.d.ts} +1 -1
- package/dist/{executor-B1teF76_.d.mts → executor-B3NNjEHX.d.mts} +1 -1
- package/dist/{executor-hVIiAH1B.d.ts → executor-BLdXObMY.d.ts} +1 -1
- package/dist/{executor-taDcsbXj.d.mts → executor-BUZaZf4L.d.mts} +1 -1
- package/dist/{executor-CeyAi6Mk.d.ts → executor-CDGPvh7M.d.ts} +1 -1
- package/dist/{executor-C8bjEDVM.d.mts → executor-CPixmweQ.d.mts} +1 -1
- package/dist/{executor-BfOctEDN.d.mts → executor-Cn8wHwLF.d.mts} +1 -1
- package/dist/{executor-_ImEyb5Z.d.mts → executor-DS3NuU-H.d.mts} +1 -1
- package/dist/{executor-CQnrL7gj.d.ts → executor-Da4zH7TH.d.ts} +1 -1
- package/dist/{executor-B0b85w0j.d.ts → executor-DeDNVV5p.d.ts} +1 -1
- package/dist/{executor-BpoG787z.d.mts → executor-gzorpk3w.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-CV6J3uFs.d.ts → generator-BAaf2S3V.d.ts} +2 -2
- package/dist/{generator-BXIjrXpb.d.ts → generator-BHQa9sdJ.d.ts} +1 -1
- package/dist/{generator-DVraEDD9.d.mts → generator-BqX2wgSA.d.mts} +2 -2
- package/dist/{generator-CEBxA3_Z.d.mts → generator-CBJOMnRt.d.mts} +2 -2
- package/dist/{generator-CVPj5oGK.d.ts → generator-CYvPtstL.d.ts} +2 -2
- package/dist/{generator-Bd1EcKM8.d.ts → generator-CZtbcY0l.d.ts} +2 -2
- package/dist/{generator-B6siUqei.d.ts → generator-CkTQIi20.d.ts} +2 -2
- package/dist/{generator-G_OUV_Gn.d.mts → generator-D1R6-G54.d.mts} +1 -1
- package/dist/{generator-D8jm5Lv9.d.mts → generator-DVWBXLIK.d.mts} +2 -2
- package/dist/{generator-q0aCZNRu.d.mts → generator-TF8IeIxY.d.mts} +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-Bl3tojmB.d.ts → types-B0erLKyc.d.mts} +7 -0
- package/dist/{types-Bl3tojmB.d.mts → types-B0erLKyc.d.ts} +7 -0
- package/dist/{types-DmsK97tz.d.mts → types-D8QnATyz.d.mts} +1 -1
- package/dist/{types-DNVnj90g.d.ts → types-JAmmWnp1.d.ts} +1 -1
- package/package.json +9 -9
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkPFLKUSFOjs = require('./chunk-PFLKUSFO.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkRYYMR72Fjs = require('./chunk-RYYMR72F.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkXBKQFZBCjs = require('./chunk-XBKQFZBC.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -22,7 +22,7 @@ var _chunk2VO5LA3Ujs = require('./chunk-2VO5LA3U.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkOAD5MTR5js = require('./chunk-OAD5MTR5.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -30,12 +30,12 @@ var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
|
30
30
|
// ../esbuild/src/assets.ts
|
|
31
31
|
async function copyBuildAssets(context) {
|
|
32
32
|
if (!_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) && _optionalChain([context, 'access', _4 => _4.options, 'access', _5 => _5.assets, 'optionalAccess', _6 => _6.length])) {
|
|
33
|
-
|
|
33
|
+
_chunkOAD5MTR5js.writeDebug.call(void 0,
|
|
34
34
|
` \u{1F4CB} Copying ${context.options.assets.length} asset files to output directory: ${context.outputPath}`,
|
|
35
35
|
context.workspaceConfig
|
|
36
36
|
);
|
|
37
|
-
const stopwatch =
|
|
38
|
-
await
|
|
37
|
+
const stopwatch = _chunkOAD5MTR5js.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
38
|
+
await _chunkPFLKUSFOjs.copyAssets.call(void 0,
|
|
39
39
|
context.workspaceConfig,
|
|
40
40
|
_nullishCoalesce(context.options.assets, () => ( [])),
|
|
41
41
|
context.outputPath,
|
|
@@ -103,8 +103,8 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
103
103
|
".woff2": "file"
|
|
104
104
|
},
|
|
105
105
|
banner: {
|
|
106
|
-
js:
|
|
107
|
-
css:
|
|
106
|
+
js: _chunkPFLKUSFOjs.DEFAULT_JS_BANNER,
|
|
107
|
+
css: _chunkPFLKUSFOjs.DEFAULT_CSS_BANNER
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
|
|
@@ -115,11 +115,11 @@ async function resolveContext(userOptions) {
|
|
|
115
115
|
if (!workspaceRoot) {
|
|
116
116
|
throw new Error("Cannot find Nx workspace root");
|
|
117
117
|
}
|
|
118
|
-
const workspaceConfig = await
|
|
118
|
+
const workspaceConfig = await _chunkXBKQFZBCjs.getWorkspaceConfig.call(void 0, true, {
|
|
119
119
|
workspaceRoot: workspaceRoot.dir
|
|
120
120
|
});
|
|
121
|
-
|
|
122
|
-
const stopwatch =
|
|
121
|
+
_chunkOAD5MTR5js.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
122
|
+
const stopwatch = _chunkOAD5MTR5js.getStopwatch.call(void 0, "Build options resolution");
|
|
123
123
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
124
124
|
exitOnError: true
|
|
125
125
|
});
|
|
@@ -150,7 +150,7 @@ async function resolveContext(userOptions) {
|
|
|
150
150
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
151
151
|
throw new Error("Cannot find package.json configuration");
|
|
152
152
|
}
|
|
153
|
-
const env =
|
|
153
|
+
const env = _chunkPFLKUSFOjs.getEnv.call(void 0, "esbuild", options);
|
|
154
154
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
155
155
|
const resolvedOptions = {
|
|
156
156
|
...options,
|
|
@@ -189,10 +189,10 @@ async function resolveContext(userOptions) {
|
|
|
189
189
|
};
|
|
190
190
|
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
191
191
|
if (context.options.verbose) {
|
|
192
|
-
|
|
192
|
+
_chunkOAD5MTR5js.writeDebug.call(void 0,
|
|
193
193
|
` \u2699\uFE0F Build options resolved:
|
|
194
194
|
|
|
195
|
-
${
|
|
195
|
+
${_chunkOAD5MTR5js.formatLogMessage.call(void 0, context.options)}`,
|
|
196
196
|
workspaceConfig
|
|
197
197
|
);
|
|
198
198
|
}
|
|
@@ -205,8 +205,8 @@ ${_chunkQEZ37HVMjs.formatLogMessage.call(void 0, context.options)}`,
|
|
|
205
205
|
|
|
206
206
|
async function generatePackageJson(context) {
|
|
207
207
|
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
208
|
-
|
|
209
|
-
const stopwatch =
|
|
208
|
+
_chunkOAD5MTR5js.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
209
|
+
const stopwatch = _chunkOAD5MTR5js.getStopwatch.call(void 0, "Write package.json file");
|
|
210
210
|
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
211
211
|
context.options.projectRoot,
|
|
212
212
|
"project.json"
|
|
@@ -226,13 +226,13 @@ async function generatePackageJson(context) {
|
|
|
226
226
|
if (!packageJson) {
|
|
227
227
|
throw new Error("Cannot find package.json configuration file");
|
|
228
228
|
}
|
|
229
|
-
packageJson = await
|
|
229
|
+
packageJson = await _chunkPFLKUSFOjs.addPackageDependencies.call(void 0,
|
|
230
230
|
context.workspaceConfig.workspaceRoot,
|
|
231
231
|
context.options.projectRoot,
|
|
232
232
|
context.projectName,
|
|
233
233
|
packageJson
|
|
234
234
|
);
|
|
235
|
-
packageJson = await
|
|
235
|
+
packageJson = await _chunkPFLKUSFOjs.addWorkspacePackageJsonFields.call(void 0,
|
|
236
236
|
context.workspaceConfig,
|
|
237
237
|
context.options.projectRoot,
|
|
238
238
|
context.sourceRoot,
|
|
@@ -333,12 +333,12 @@ async function generatePackageJson(context) {
|
|
|
333
333
|
var _tsup = require('tsup');
|
|
334
334
|
async function build(options) {
|
|
335
335
|
if (!options.silent) {
|
|
336
|
-
|
|
336
|
+
_chunkOAD5MTR5js.writeDebug.call(void 0,
|
|
337
337
|
` \u{1F680} Running ${options.name || "tsup"} build`,
|
|
338
338
|
options.workspaceConfig
|
|
339
339
|
);
|
|
340
340
|
}
|
|
341
|
-
const stopwatch =
|
|
341
|
+
const stopwatch = _chunkOAD5MTR5js.getStopwatch.call(void 0, `${options.name || "tsup"} build`);
|
|
342
342
|
await _tsup.build.call(void 0, options);
|
|
343
343
|
if (!options.silent) {
|
|
344
344
|
stopwatch();
|
|
@@ -347,11 +347,11 @@ async function build(options) {
|
|
|
347
347
|
|
|
348
348
|
// ../esbuild/src/tsup.ts
|
|
349
349
|
async function executeTsup(context) {
|
|
350
|
-
|
|
350
|
+
_chunkOAD5MTR5js.writeDebug.call(void 0,
|
|
351
351
|
` \u{1F680} Running ${context.options.name} build`,
|
|
352
352
|
context.workspaceConfig
|
|
353
353
|
);
|
|
354
|
-
const stopwatch =
|
|
354
|
+
const stopwatch = _chunkOAD5MTR5js.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
355
355
|
await build({
|
|
356
356
|
...context.options,
|
|
357
357
|
outDir: context.options.distDir ? _chunkCQDBLKPFjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
@@ -365,17 +365,17 @@ async function executeTsup(context) {
|
|
|
365
365
|
async function reportResults(context) {
|
|
366
366
|
if (_optionalChain([context, 'access', _9 => _9.result, 'optionalAccess', _10 => _10.errors, 'access', _11 => _11.length]) === 0) {
|
|
367
367
|
if (context.result.warnings.length > 0) {
|
|
368
|
-
|
|
368
|
+
_chunkOAD5MTR5js.writeWarning.call(void 0,
|
|
369
369
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
370
370
|
context.workspaceConfig
|
|
371
371
|
);
|
|
372
372
|
}
|
|
373
|
-
|
|
373
|
+
_chunkOAD5MTR5js.writeSuccess.call(void 0,
|
|
374
374
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
375
375
|
context.workspaceConfig
|
|
376
376
|
);
|
|
377
377
|
} else if (_optionalChain([context, 'access', _12 => _12.result, 'optionalAccess', _13 => _13.errors]) && _optionalChain([context, 'access', _14 => _14.result, 'optionalAccess', _15 => _15.errors, 'access', _16 => _16.length]) > 0) {
|
|
378
|
-
|
|
378
|
+
_chunkOAD5MTR5js.writeError.call(void 0,
|
|
379
379
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
380
380
|
context.workspaceConfig
|
|
381
381
|
);
|
|
@@ -386,19 +386,19 @@ async function reportResults(context) {
|
|
|
386
386
|
}
|
|
387
387
|
async function cleanOutputPath(context) {
|
|
388
388
|
if (context.clean !== false && context.outputPath) {
|
|
389
|
-
|
|
389
|
+
_chunkOAD5MTR5js.writeDebug.call(void 0,
|
|
390
390
|
` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`,
|
|
391
391
|
context.workspaceConfig
|
|
392
392
|
);
|
|
393
|
-
const stopwatch =
|
|
393
|
+
const stopwatch = _chunkOAD5MTR5js.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
394
394
|
await cleanDirectories(context.outputPath);
|
|
395
395
|
stopwatch();
|
|
396
396
|
}
|
|
397
397
|
return context;
|
|
398
398
|
}
|
|
399
399
|
async function build2(options) {
|
|
400
|
-
|
|
401
|
-
const stopwatch =
|
|
400
|
+
_chunkOAD5MTR5js.writeDebug.call(void 0, ` ${_chunkOAD5MTR5js.brandIcon.call(void 0, )} Executing Storm ESBuild pipeline`);
|
|
401
|
+
const stopwatch = _chunkOAD5MTR5js.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
402
402
|
try {
|
|
403
403
|
const opts = Array.isArray(options) ? options : [options];
|
|
404
404
|
if (opts.length === 0) {
|
|
@@ -413,9 +413,9 @@ async function build2(options) {
|
|
|
413
413
|
executeTsup(context)
|
|
414
414
|
]);
|
|
415
415
|
await reportResults(context);
|
|
416
|
-
|
|
416
|
+
_chunkOAD5MTR5js.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
417
417
|
} catch (error) {
|
|
418
|
-
|
|
418
|
+
_chunkOAD5MTR5js.writeFatal.call(void 0,
|
|
419
419
|
"Fatal errors that the build process could not recover from have occured. The build process has been terminated."
|
|
420
420
|
);
|
|
421
421
|
throw error;
|
|
@@ -426,7 +426,7 @@ async function build2(options) {
|
|
|
426
426
|
|
|
427
427
|
// src/executors/esbuild/executor.ts
|
|
428
428
|
async function esbuildExecutorFn(options, context, config) {
|
|
429
|
-
|
|
429
|
+
_chunkOAD5MTR5js.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
430
430
|
if (!_optionalChain([context, 'access', _17 => _17.projectsConfigurations, 'optionalAccess', _18 => _18.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _19 => _19.projectsConfigurations, 'access', _20 => _20.projects, 'access', _21 => _21[context.projectName], 'optionalAccess', _22 => _22.root])) {
|
|
431
431
|
throw new Error(
|
|
432
432
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -447,7 +447,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
447
447
|
success: true
|
|
448
448
|
};
|
|
449
449
|
}
|
|
450
|
-
var executor_default =
|
|
450
|
+
var executor_default = _chunkRYYMR72Fjs.withRunExecutor.call(void 0,
|
|
451
451
|
"Storm ESBuild build",
|
|
452
452
|
esbuildExecutorFn,
|
|
453
453
|
{
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkRYYMR72Fjs = require('./chunk-RYYMR72F.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-build/executor.ts
|
|
10
10
|
async function cargoBuildExecutor(options, context) {
|
|
11
11
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "build", options, context);
|
|
12
12
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkRYYMR72Fjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Build",
|
|
16
16
|
cargoBuildExecutor,
|
|
17
17
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHXQRGLIIjs = require('./chunk-HXQRGLII.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXBKQFZBCjs = require('./chunk-XBKQFZBC.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -15,7 +15,7 @@ var _chunk2VO5LA3Ujs = require('./chunk-2VO5LA3U.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkOAD5MTR5js = require('./chunk-OAD5MTR5.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -23,7 +23,7 @@ var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
|
23
23
|
// src/base/base-executor.ts
|
|
24
24
|
var _defu = require('defu');
|
|
25
25
|
var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkOAD5MTR5js.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config = {};
|
|
29
29
|
try {
|
|
@@ -37,12 +37,12 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
37
37
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
38
38
|
const projectName = context.projectName;
|
|
39
39
|
config.workspaceRoot = workspaceRoot;
|
|
40
|
-
|
|
41
|
-
`${
|
|
40
|
+
_chunkOAD5MTR5js.writeInfo.call(void 0,
|
|
41
|
+
`${_chunkOAD5MTR5js.brandIcon.call(void 0, config)} Running the ${name} executor for ${projectName} `,
|
|
42
42
|
config
|
|
43
43
|
);
|
|
44
44
|
if (!executorOptions.skipReadingConfig) {
|
|
45
|
-
|
|
45
|
+
_chunkOAD5MTR5js.writeTrace.call(void 0,
|
|
46
46
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
47
47
|
- workspaceRoot: ${workspaceRoot}
|
|
48
48
|
- projectRoot: ${projectRoot}
|
|
@@ -51,18 +51,18 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
51
51
|
`,
|
|
52
52
|
config
|
|
53
53
|
);
|
|
54
|
-
config = await
|
|
54
|
+
config = await _chunkXBKQFZBCjs.getConfig.call(void 0, workspaceRoot);
|
|
55
55
|
}
|
|
56
56
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
57
|
-
|
|
57
|
+
_chunkOAD5MTR5js.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
58
58
|
options = await Promise.resolve(
|
|
59
59
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
60
60
|
);
|
|
61
|
-
|
|
61
|
+
_chunkOAD5MTR5js.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
_chunkOAD5MTR5js.writeTrace.call(void 0,
|
|
64
64
|
`Executor schema options \u2699\uFE0F
|
|
65
|
-
${
|
|
65
|
+
${_chunkOAD5MTR5js.formatLogMessage.call(void 0, options)}
|
|
66
66
|
`,
|
|
67
67
|
config
|
|
68
68
|
);
|
|
@@ -75,18 +75,18 @@ ${_chunkQEZ37HVMjs.formatLogMessage.call(void 0, options)}
|
|
|
75
75
|
),
|
|
76
76
|
_chunkHXQRGLIIjs.applyWorkspaceProjectTokens
|
|
77
77
|
);
|
|
78
|
-
|
|
78
|
+
_chunkOAD5MTR5js.writeTrace.call(void 0,
|
|
79
79
|
`Executor schema tokenized options \u2699\uFE0F
|
|
80
|
-
${
|
|
80
|
+
${_chunkOAD5MTR5js.formatLogMessage.call(void 0, tokenized)}
|
|
81
81
|
`,
|
|
82
82
|
config
|
|
83
83
|
);
|
|
84
84
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
85
|
-
|
|
85
|
+
_chunkOAD5MTR5js.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
86
86
|
await Promise.resolve(
|
|
87
87
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
88
88
|
);
|
|
89
|
-
|
|
89
|
+
_chunkOAD5MTR5js.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
90
90
|
}
|
|
91
91
|
const ret = executorFn(tokenized, context, config);
|
|
92
92
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -101,7 +101,7 @@ ${_chunkQEZ37HVMjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
101
101
|
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _8 => _8.error, 'optionalAccess', _9 => _9.message]) && typeof _optionalChain([result, 'optionalAccess', _10 => _10.error, 'optionalAccess', _11 => _11.message]) === "string" && _optionalChain([result, 'optionalAccess', _12 => _12.error, 'optionalAccess', _13 => _13.name]) && typeof _optionalChain([result, 'optionalAccess', _14 => _14.error, 'optionalAccess', _15 => _15.name]) === "string")) {
|
|
102
102
|
throw new Error(
|
|
103
103
|
`Failure determined while running the ${name} executor
|
|
104
|
-
${
|
|
104
|
+
${_chunkOAD5MTR5js.formatLogMessage.call(void 0,
|
|
105
105
|
result
|
|
106
106
|
)}`,
|
|
107
107
|
{
|
|
@@ -110,21 +110,21 @@ ${_chunkQEZ37HVMjs.formatLogMessage.call(void 0,
|
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
112
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
113
|
-
|
|
113
|
+
_chunkOAD5MTR5js.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
114
114
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
115
|
-
|
|
115
|
+
_chunkOAD5MTR5js.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
_chunkOAD5MTR5js.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
118
118
|
`, config);
|
|
119
119
|
return {
|
|
120
120
|
success: true
|
|
121
121
|
};
|
|
122
122
|
} catch (error) {
|
|
123
|
-
|
|
123
|
+
_chunkOAD5MTR5js.writeFatal.call(void 0,
|
|
124
124
|
"A fatal error occurred while running the executor - the process was forced to terminate",
|
|
125
125
|
config
|
|
126
126
|
);
|
|
127
|
-
|
|
127
|
+
_chunkOAD5MTR5js.writeError.call(void 0,
|
|
128
128
|
`An exception was thrown in the executor's process
|
|
129
129
|
- Details: ${error.message}
|
|
130
130
|
- Stacktrace: ${error.stack}`,
|
|
@@ -9,6 +9,7 @@ var LogLevel = {
|
|
|
9
9
|
WARN: 30,
|
|
10
10
|
SUCCESS: 35,
|
|
11
11
|
INFO: 40,
|
|
12
|
+
PERFORMANCE: 50,
|
|
12
13
|
DEBUG: 60,
|
|
13
14
|
TRACE: 70,
|
|
14
15
|
ALL: 100
|
|
@@ -20,6 +21,7 @@ var LogLevelLabel = {
|
|
|
20
21
|
WARN: "warn",
|
|
21
22
|
SUCCESS: "success",
|
|
22
23
|
INFO: "info",
|
|
24
|
+
PERFORMANCE: "performance",
|
|
23
25
|
DEBUG: "debug",
|
|
24
26
|
TRACE: "trace",
|
|
25
27
|
ALL: "all"
|
|
@@ -39,6 +41,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
39
41
|
warning: "#e3b341",
|
|
40
42
|
danger: "#D8314A",
|
|
41
43
|
fatal: "#51070f",
|
|
44
|
+
performance: "#83ff83",
|
|
42
45
|
link: "#3fa6ff",
|
|
43
46
|
positive: "#22c55e",
|
|
44
47
|
negative: "#dc2626",
|
|
@@ -56,6 +59,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
56
59
|
warning: "#f3d371",
|
|
57
60
|
danger: "#D8314A",
|
|
58
61
|
fatal: "#a40e26",
|
|
62
|
+
performance: "#00ff00",
|
|
59
63
|
link: "#3fa6ff",
|
|
60
64
|
positive: "#22c55e",
|
|
61
65
|
negative: "#dc2626",
|
|
@@ -143,6 +147,7 @@ var CONSOLE_ICONS = {
|
|
|
143
147
|
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
144
148
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
145
149
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
150
|
+
[LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
|
|
146
151
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
147
152
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
148
153
|
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
@@ -163,6 +168,8 @@ var getLogLevel = (label) => {
|
|
|
163
168
|
return LogLevel.TRACE;
|
|
164
169
|
case "debug":
|
|
165
170
|
return LogLevel.DEBUG;
|
|
171
|
+
case "performance":
|
|
172
|
+
return LogLevel.PERFORMANCE;
|
|
166
173
|
case "info":
|
|
167
174
|
return LogLevel.INFO;
|
|
168
175
|
case "warn":
|
|
@@ -187,6 +194,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
187
194
|
if (logLevel >= LogLevel.DEBUG) {
|
|
188
195
|
return LogLevelLabel.DEBUG;
|
|
189
196
|
}
|
|
197
|
+
if (logLevel >= LogLevel.PERFORMANCE) {
|
|
198
|
+
return LogLevelLabel.PERFORMANCE;
|
|
199
|
+
}
|
|
190
200
|
if (logLevel >= LogLevel.INFO) {
|
|
191
201
|
return LogLevelLabel.INFO;
|
|
192
202
|
}
|
|
@@ -274,6 +284,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
274
284
|
)(
|
|
275
285
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
276
286
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
287
|
+
`
|
|
288
|
+
);
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
|
|
292
|
+
return (message) => {
|
|
293
|
+
console.debug(
|
|
294
|
+
`
|
|
295
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
296
|
+
colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
|
|
297
|
+
)(
|
|
298
|
+
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
299
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
277
300
|
`
|
|
278
301
|
);
|
|
279
302
|
};
|
|
@@ -319,18 +342,16 @@ var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
|
|
|
319
342
|
var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
|
|
320
343
|
var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
|
|
321
344
|
var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
|
|
345
|
+
var writePerformance = (message, config) => getLogFn(LogLevel.PERFORMANCE, config)(message);
|
|
322
346
|
var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
|
|
323
347
|
var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
|
|
324
348
|
var getStopwatch = (name) => {
|
|
325
349
|
const start = /* @__PURE__ */ new Date();
|
|
326
350
|
return () => {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
includeSeconds: true
|
|
332
|
-
}
|
|
333
|
-
)} to complete`
|
|
351
|
+
writePerformance(
|
|
352
|
+
`The${name ? ` ${name}` : ""} process took ${formatDistanceToNow(start, {
|
|
353
|
+
includeSeconds: true
|
|
354
|
+
})} to complete`
|
|
334
355
|
);
|
|
335
356
|
};
|
|
336
357
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I2PUWYSE.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SPZ6A2EH.mjs";
|
|
7
7
|
|
|
8
8
|
// src/executors/typia/executor.ts
|
|
9
9
|
import { removeSync } from "fs-extra";
|
|
@@ -5,10 +5,10 @@ var _chunkANHKV7HZjs = require('./chunk-ANHKV7HZ.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk33TUEQBHjs = require('./chunk-33TUEQBH.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkXBKQFZBCjs = require('./chunk-XBKQFZBC.js');
|
|
12
12
|
|
|
13
13
|
// src/release/rust-version-actions.ts
|
|
14
14
|
|
|
@@ -36,7 +36,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
36
36
|
* @params tree - The file system tree to read from.
|
|
37
37
|
*/
|
|
38
38
|
async init(tree) {
|
|
39
|
-
this.workspaceConfig = await
|
|
39
|
+
this.workspaceConfig = await _chunkXBKQFZBCjs.getWorkspaceConfig.call(void 0, );
|
|
40
40
|
return super.init(tree);
|
|
41
41
|
}
|
|
42
42
|
async readCurrentVersionFromSourceManifest(tree) {
|
|
@@ -45,7 +45,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
45
45
|
"Cargo.toml"
|
|
46
46
|
);
|
|
47
47
|
try {
|
|
48
|
-
const cargoToml =
|
|
48
|
+
const cargoToml = _chunk33TUEQBHjs.parseCargoTomlWithTree.call(void 0,
|
|
49
49
|
tree,
|
|
50
50
|
this.projectGraphNode.data.root,
|
|
51
51
|
this.projectGraphNode.name
|
|
@@ -61,7 +61,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
async readCurrentVersionFromRegistry(tree, currentVersionResolverMetadata) {
|
|
64
|
-
const cargoToml =
|
|
64
|
+
const cargoToml = _chunk33TUEQBHjs.parseCargoTomlWithTree.call(void 0,
|
|
65
65
|
tree,
|
|
66
66
|
this.projectGraphNode.data.root,
|
|
67
67
|
this.projectGraphNode.name
|
|
@@ -86,7 +86,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
async readCurrentVersionOfDependency(tree, projectGraph, dependencyProjectName) {
|
|
89
|
-
const cargoToml =
|
|
89
|
+
const cargoToml = _chunk33TUEQBHjs.parseCargoTomlWithTree.call(void 0,
|
|
90
90
|
tree,
|
|
91
91
|
this.projectGraphNode.data.root,
|
|
92
92
|
this.projectGraphNode.name
|
|
@@ -97,7 +97,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
97
97
|
dependencyCollection: null
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
const dependencyCargoToml =
|
|
100
|
+
const dependencyCargoToml = _chunk33TUEQBHjs.parseCargoTomlWithTree.call(void 0,
|
|
101
101
|
tree,
|
|
102
102
|
_optionalChain([projectGraph, 'access', _10 => _10.nodes, 'access', _11 => _11[dependencyProjectName], 'optionalAccess', _12 => _12.data, 'access', _13 => _13.root]),
|
|
103
103
|
dependencyProjectName
|
|
@@ -131,9 +131,9 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
131
131
|
`Unable to read Cargo.toml at path: ${manifestToUpdate.manifestPath}`
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
|
-
const cargoToml =
|
|
134
|
+
const cargoToml = _chunk33TUEQBHjs.parseCargoToml.call(void 0, cargoTomlString);
|
|
135
135
|
cargoToml.package.version = newVersion;
|
|
136
|
-
tree.write(manifestToUpdate.manifestPath,
|
|
136
|
+
tree.write(manifestToUpdate.manifestPath, _chunk33TUEQBHjs.stringifyCargoToml.call(void 0, cargoToml));
|
|
137
137
|
logMessages.push(
|
|
138
138
|
`\u270D\uFE0F New version ${newVersion} written to manifest: ${manifestToUpdate.manifestPath}`
|
|
139
139
|
);
|
|
@@ -161,7 +161,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
161
161
|
`Unable to read Cargo.toml at path: ${manifestToUpdate.manifestPath}`
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
|
-
const cargoToml =
|
|
164
|
+
const cargoToml = _chunk33TUEQBHjs.parseCargoToml.call(void 0, cargoTomlString);
|
|
165
165
|
for (const depType of ["dependencies", "dev-dependencies"]) {
|
|
166
166
|
if (cargoToml[depType]) {
|
|
167
167
|
for (const [dep, version] of Object.entries(dependenciesToUpdate)) {
|
|
@@ -178,7 +178,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
178
178
|
`Unable to read Cargo.toml at path: ${manifestToUpdate.manifestPath}`
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
|
-
const dependencyCargoToml =
|
|
181
|
+
const dependencyCargoToml = _chunk33TUEQBHjs.parseCargoToml.call(void 0,
|
|
182
182
|
dependencyCargoTomlString
|
|
183
183
|
);
|
|
184
184
|
const dependencyCrateName = cargoToml[depType][dependencyCargoToml.package.name] ? dependencyCargoToml.package.name : dep;
|
|
@@ -189,7 +189,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
189
189
|
}
|
|
190
190
|
tree.write(
|
|
191
191
|
manifestToUpdate.manifestPath,
|
|
192
|
-
|
|
192
|
+
_chunk33TUEQBHjs.stringifyCargoToml.call(void 0, cargoToml)
|
|
193
193
|
);
|
|
194
194
|
} catch (error) {
|
|
195
195
|
throw new Error(
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkRYYMR72Fjs = require('./chunk-RYYMR72F.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-check/executor.ts
|
|
10
10
|
async function cargoCheckExecutor(options, context) {
|
|
11
11
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "check", options, context);
|
|
12
12
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkRYYMR72Fjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Check",
|
|
16
16
|
cargoCheckExecutor,
|
|
17
17
|
{
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-2QMGYIOO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KU3DWKHT.mjs";
|
|
8
8
|
import {
|
|
9
9
|
brandIcon,
|
|
10
10
|
getStopwatch,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
writeInfo,
|
|
15
15
|
writeSuccess,
|
|
16
16
|
writeTrace
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SPZ6A2EH.mjs";
|
|
18
18
|
import {
|
|
19
19
|
findWorkspaceRoot
|
|
20
20
|
} from "./chunk-3J2CP54B.mjs";
|