@storm-software/workspace-tools 1.258.5 → 1.258.7
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 +12 -0
- package/README.md +1 -1
- package/dist/{chunk-3F3NF4YM.js → chunk-2TQXYRZ2.js} +5 -5
- package/dist/{chunk-JRD4Z5TP.mjs → chunk-3DA3TU7H.mjs} +2 -2
- package/dist/{chunk-ANWKNY2S.mjs → chunk-3LMQ7A5E.mjs} +1 -1
- package/dist/{chunk-IV7DHZEI.mjs → chunk-422NV4UL.mjs} +10 -10
- package/dist/{chunk-GHEKTH3H.mjs → chunk-44JHFUCX.mjs} +2 -2
- package/dist/{chunk-U6XGT4BU.mjs → chunk-4G7TO7DK.mjs} +4 -4
- package/dist/{chunk-XKLYAMQS.js → chunk-5RCOCQH4.js} +2 -2
- package/dist/{chunk-QPAAA2OZ.mjs → chunk-6FJBMCUB.mjs} +1 -1
- package/dist/{chunk-ZR26PZGA.js → chunk-6OSR2VYB.js} +7 -7
- package/dist/{chunk-YEGKOZPW.js → chunk-7BWXITD4.js} +2 -2
- package/dist/{chunk-IZBZMG7H.mjs → chunk-A4QFANJD.mjs} +1 -1
- package/dist/{chunk-HB4LJD5U.js → chunk-B5E3XSP6.js} +2 -2
- package/dist/{chunk-KYPQ2RJW.mjs → chunk-BIKY5HDG.mjs} +4 -4
- package/dist/{chunk-URH3WA2O.mjs → chunk-CAS5H2GG.mjs} +2 -2
- package/dist/{chunk-XMOCZMKF.mjs → chunk-CD3M4BYC.mjs} +3 -3
- package/dist/{chunk-GCE5FKMI.js → chunk-D56HKJCS.js} +9 -9
- package/dist/{chunk-HZHADTJO.mjs → chunk-DJFG4LGU.mjs} +1 -1
- package/dist/{chunk-GNGBNABC.mjs → chunk-DUUNSAIT.mjs} +1 -1
- package/dist/{chunk-IBKU62MC.js → chunk-DWHFHGLZ.js} +2 -2
- package/dist/{chunk-UF5GVU3Z.js → chunk-EUFCKDUK.js} +2 -2
- package/dist/{chunk-S4ZVXW2Q.mjs → chunk-F43E25RT.mjs} +4 -4
- package/dist/{chunk-Y3EKTMQS.mjs → chunk-FPRHRYZV.mjs} +3 -3
- package/dist/{chunk-BZB4EUIR.mjs → chunk-GYGR5QJY.mjs} +2 -2
- package/dist/{chunk-MZ7FNI4Z.mjs → chunk-H7TZFCSU.mjs} +1 -1
- package/dist/{chunk-5T3XS2OY.js → chunk-HOH2SGCB.js} +15 -15
- package/dist/{chunk-ZTQL63SV.js → chunk-I2FWSOY2.js} +2 -2
- package/dist/{chunk-GRHWDFNY.js → chunk-IJO4MZSE.js} +4 -4
- package/dist/{chunk-Z5226LCS.js → chunk-KHQPJPM5.js} +2 -2
- package/dist/{chunk-EHWWPRTA.js → chunk-LUZNYXQ3.js} +5 -5
- package/dist/{chunk-UFZMCWNT.js → chunk-LZFVNTSD.js} +20 -20
- package/dist/{chunk-NB3JA2EC.mjs → chunk-MQU3PU5I.mjs} +3 -3
- package/dist/{chunk-GPLPX4K5.js → chunk-MZDSQVPG.js} +7 -7
- package/dist/{chunk-4ACCAZBA.js → chunk-NQZZEUJZ.js} +32 -32
- package/dist/{chunk-7COYD6CR.mjs → chunk-NSGGX475.mjs} +6 -6
- package/dist/{chunk-74VPPX36.mjs → chunk-NUNH5CHM.mjs} +3 -3
- package/dist/{chunk-XNFVNPJG.mjs → chunk-O3U3FNMB.mjs} +4 -4
- package/dist/{chunk-WA2VJ2IR.mjs → chunk-OEXS6BM2.mjs} +1 -1
- package/dist/{chunk-VX3ZNHGC.mjs → chunk-OWQYES7U.mjs} +1 -1
- package/dist/{chunk-HMUVZGHI.mjs → chunk-OZJRGZYP.mjs} +3 -3
- package/dist/{chunk-CH2OHODH.mjs → chunk-PX3Q7IW7.mjs} +2 -2
- package/dist/{chunk-7S4LTNOR.js → chunk-QAHYWB6S.js} +11 -11
- package/dist/{chunk-PPQX2JYW.mjs → chunk-RC33SW7M.mjs} +4 -4
- package/dist/{chunk-4HNQJ5N3.mjs → chunk-RL4PGDLS.mjs} +2 -2
- package/dist/{chunk-S3ALYLKC.mjs → chunk-S5FGJ3VF.mjs} +3 -3
- package/dist/{chunk-G2IO7AN3.mjs → chunk-SERUXLAQ.mjs} +5 -5
- package/dist/{chunk-XAJCHBHQ.mjs → chunk-SLD47MNH.mjs} +3 -3
- package/dist/{chunk-HJ7Q5IKQ.mjs → chunk-TPXVLKDP.mjs} +4 -4
- package/dist/{chunk-EKCNHHP6.mjs → chunk-U5EBEAZT.mjs} +6 -6
- package/dist/{chunk-2PK5BCIY.js → chunk-UH5YAUZF.js} +2 -2
- package/dist/{chunk-JO5RMPRZ.mjs → chunk-UK6CM2TY.mjs} +1 -1
- package/dist/{chunk-JCMCKJPZ.mjs → chunk-UUFGQFBH.mjs} +3 -3
- package/dist/{chunk-I3FKLXIS.mjs → chunk-UZCXVTJ2.mjs} +4 -4
- package/dist/{chunk-H44GNZFA.mjs → chunk-V3BHMCB3.mjs} +2 -2
- package/dist/{chunk-3YR543RX.mjs → chunk-WVQ6FTDW.mjs} +3 -3
- package/dist/{chunk-CKMKONYV.mjs → chunk-WXCBW33G.mjs} +3 -3
- package/dist/{chunk-K5ALCGH2.js → chunk-WZDSYTAY.js} +2 -2
- package/dist/{chunk-5NAUK656.mjs → chunk-X4Q7SFNW.mjs} +3 -3
- package/dist/{chunk-QS7QSWSD.mjs → chunk-XA5JHQKX.mjs} +4 -4
- package/dist/{chunk-XTO4N5DX.mjs → chunk-YMUMNLGM.mjs} +3 -3
- package/dist/{chunk-43IKGOHP.js → chunk-Z2DZKHBY.js} +42 -42
- package/dist/{chunk-QS4Z3DUV.mjs → chunk-ZMF7BFD4.mjs} +1 -1
- package/dist/{chunk-D2OSRALZ.mjs → chunk-ZZU66B3Z.mjs} +2 -2
- package/dist/{executor-DxeOzkYd.d.ts → executor-BDvqiAmr.d.ts} +1 -1
- package/dist/{executor-DvKywXQM.d.mts → executor-BLSVtRwG.d.mts} +1 -1
- package/dist/{executor-D9Lkezla.d.mts → executor-Bce2bwmv.d.mts} +1 -1
- package/dist/{executor-DdnyhsRE.d.ts → executor-Be5Fd52r.d.ts} +1 -1
- package/dist/{executor-DIeaVupa.d.ts → executor-C_TfLA0a.d.ts} +1 -1
- package/dist/{executor-BzM1aAMj.d.ts → executor-Cn6-xbcu.d.ts} +1 -1
- package/dist/{executor-BDL9OXAe.d.mts → executor-D7hQFdok.d.mts} +1 -1
- package/dist/{executor-CJ2sUUqC.d.mts → executor-DFZM1IRb.d.mts} +1 -1
- package/dist/{executor-BOz02M0D.d.mts → executor-KAQdKP88.d.mts} +1 -1
- package/dist/{executor-DLeeL4eB.d.ts → executor-rWFext3F.d.ts} +1 -1
- package/dist/executors.d.mts +6 -6
- package/dist/executors.d.ts +6 -6
- package/dist/executors.js +15 -15
- package/dist/executors.mjs +28 -28
- package/dist/{generator-Cg5cXOd-.d.ts → generator-BlI_P2Wx.d.ts} +2 -2
- package/dist/{generator-Ci71Fj-h.d.mts → generator-Boug2ukK.d.mts} +2 -2
- package/dist/{generator-SVDta1L0.d.ts → generator-CDnWruqm.d.ts} +2 -2
- package/dist/{generator-BXQhJBFX.d.mts → generator-CWhc4hwg.d.mts} +2 -2
- package/dist/{generator-ANcVdjRd.d.mts → generator-D7OgP7cF.d.mts} +2 -2
- package/dist/{generator-DcKIyM9v.d.ts → generator-DbQxnpL0.d.ts} +2 -2
- package/dist/{generator-CAGPcZQ4.d.mts → generator-Mz3RW03i.d.mts} +1 -1
- package/dist/{generator-8l8dnSzj.d.ts → generator-Q7K2v4XK.d.ts} +1 -1
- package/dist/{generator-DnI2NZWN.d.ts → generator-RNiDtdN6.d.ts} +1 -1
- package/dist/{generator-C93HVhAG.d.mts → generator-XDHzC_Tb.d.mts} +1 -1
- package/dist/{generator-DDFJK57t.d.mts → generator-gSneYaPS.d.mts} +2 -2
- package/dist/{generator-Br48n2Qc.d.ts → generator-vajo9_If.d.ts} +2 -2
- package/dist/generators.d.mts +8 -8
- package/dist/generators.d.ts +8 -8
- package/dist/generators.js +9 -9
- package/dist/generators.mjs +21 -21
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +22 -22
- package/dist/index.mjs +51 -51
- 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 +3 -3
- package/dist/src/base/base-executor.mjs +6 -6
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- 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 +3 -3
- package/dist/src/base/base-generator.mjs +6 -6
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
- package/dist/src/base/index.d.mts +2 -2
- package/dist/src/base/index.d.ts +2 -2
- package/dist/src/base/index.js +4 -4
- package/dist/src/base/index.mjs +10 -10
- package/dist/src/base/typescript-build-executor.untyped.mjs +2 -2
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.js +4 -4
- package/dist/src/executors/cargo-build/executor.mjs +8 -8
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.js +4 -4
- package/dist/src/executors/cargo-check/executor.mjs +8 -8
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.js +4 -4
- package/dist/src/executors/cargo-clippy/executor.mjs +8 -8
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.js +4 -4
- package/dist/src/executors/cargo-doc/executor.mjs +8 -8
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.js +4 -4
- package/dist/src/executors/cargo-format/executor.mjs +8 -8
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- 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 +5 -5
- package/dist/src/executors/clean-package/executor.mjs +6 -6
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- 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 +5 -5
- package/dist/src/executors/esbuild/executor.mjs +8 -8
- package/dist/src/executors/esbuild/untyped.mjs +2 -2
- package/dist/src/executors/npm-publish/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- 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 +4 -4
- package/dist/src/executors/size-limit/executor.mjs +7 -7
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- 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 +5 -5
- package/dist/src/executors/tsdown/executor.mjs +8 -8
- package/dist/src/executors/tsdown/untyped.mjs +2 -2
- 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 +4 -4
- package/dist/src/executors/typia/executor.mjs +7 -7
- package/dist/src/executors/typia/untyped.mjs +1 -1
- 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 +4 -4
- package/dist/src/executors/unbuild/executor.mjs +7 -7
- package/dist/src/executors/unbuild/untyped.mjs +2 -2
- 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 +4 -4
- package/dist/src/generators/browser-library/generator.mjs +9 -9
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- 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 +4 -4
- package/dist/src/generators/config-schema/generator.mjs +7 -7
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +2 -2
- package/dist/src/generators/init/untyped.mjs +1 -1
- 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 +4 -4
- package/dist/src/generators/neutral-library/generator.mjs +9 -9
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- 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 +4 -4
- package/dist/src/generators/node-library/generator.mjs +9 -9
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- 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 +4 -4
- package/dist/src/generators/preset/generator.mjs +7 -7
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/generators/release-version/generator.d.mts +2 -2
- package/dist/src/generators/release-version/generator.d.ts +2 -2
- package/dist/src/generators/release-version/generator.js +3 -3
- package/dist/src/generators/release-version/generator.mjs +6 -6
- package/dist/src/generators/release-version/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +4 -4
- package/dist/src/plugins/rust/index.mjs +4 -4
- package/dist/src/plugins/typescript/index.mjs +4 -4
- package/dist/src/plugins/typescript/project-config.mjs +4 -4
- package/dist/src/plugins/typescript/tsdown.mjs +2 -2
- package/dist/src/plugins/typescript/tsup.mjs +2 -2
- package/dist/src/plugins/typescript/untyped-schema.mjs +2 -2
- package/dist/src/types.d.mts +2 -2
- package/dist/src/types.d.ts +2 -2
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.d.mts +1 -1
- package/dist/src/utils/apply-workspace-tokens.d.ts +1 -1
- package/dist/src/utils/apply-workspace-tokens.mjs +4 -4
- package/dist/src/utils/cargo.mjs +2 -2
- package/dist/src/utils/create-cli-options.mjs +2 -2
- package/dist/src/utils/get-project-configurations.mjs +4 -4
- package/dist/src/utils/index.d.mts +2 -2
- package/dist/src/utils/index.d.ts +2 -2
- package/dist/src/utils/index.mjs +14 -14
- package/dist/src/utils/lock-file.mjs +2 -2
- package/dist/src/utils/package-helpers.mjs +4 -4
- package/dist/src/utils/plugin-helpers.mjs +3 -3
- package/dist/src/utils/pnpm-deps-update.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/src/utils/project-tags.mjs +2 -2
- package/dist/src/utils/toml.mjs +2 -2
- package/dist/src/utils/typia-transform.mjs +2 -2
- package/dist/src/utils/versions.mjs +1 -1
- package/dist/{types-DLS_kod0.d.ts → types-C5TJM8DH.d.ts} +1 -1
- package/dist/{types-BbEVA-sX.d.ts → types-D6pIdih6.d.mts} +3 -3
- package/dist/{types-BbEVA-sX.d.mts → types-D6pIdih6.d.ts} +3 -3
- package/dist/{types-DM_AJ5NA.d.mts → types-DJVJD8fA.d.mts} +1 -1
- package/package.json +3 -3
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkLZFVNTSDjs = require('./chunk-LZFVNTSD.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoBuildExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoBuildExecutor, "cargoBuildExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkLZFVNTSDjs.withRunExecutor.call(void 0, "Cargo Build", cargoBuildExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -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 _chunkLZFVNTSDjs = require('./chunk-LZFVNTSD.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkMZDSQVPGjs = require('./chunk-MZDSQVPG.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
@@ -15,7 +15,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
15
15
|
var _defu = require('defu');
|
|
16
16
|
var _jiti = require('jiti');
|
|
17
17
|
async function unbuildExecutorFn(options, context, config) {
|
|
18
|
-
|
|
18
|
+
_chunkMZDSQVPGjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
19
19
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
20
20
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
21
21
|
}
|
|
@@ -63,7 +63,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
_chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
66
|
-
var executor_default =
|
|
66
|
+
var executor_default = _chunkLZFVNTSDjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
|
|
67
67
|
skipReadingConfig: false,
|
|
68
68
|
hooks: {
|
|
69
69
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkLZFVNTSDjs = require('./chunk-LZFVNTSD.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ async function cargoFormatExecutor(options, context) {
|
|
|
15
15
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
17
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoFormatExecutor, "cargoFormatExecutor");
|
|
18
|
-
var executor_default =
|
|
18
|
+
var executor_default = _chunkLZFVNTSDjs.withRunExecutor.call(void 0, "Cargo Format", cargoFormatExecutor, {
|
|
19
19
|
skipReadingConfig: false,
|
|
20
20
|
hooks: {
|
|
21
21
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkLZFVNTSDjs = require('./chunk-LZFVNTSD.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkMZDSQVPGjs = require('./chunk-MZDSQVPG.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -13,11 +13,11 @@ var _fsextra = require('fs-extra');
|
|
|
13
13
|
var _TypiaProgrammerjs = require('typia/lib/programmers/TypiaProgrammer.js');
|
|
14
14
|
async function typiaExecutorFn(options, _, config) {
|
|
15
15
|
if (options.clean !== false) {
|
|
16
|
-
|
|
16
|
+
_chunkMZDSQVPGjs.writeInfo.call(void 0, `\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
17
17
|
_fsextra.removeSync.call(void 0, options.outputPath);
|
|
18
18
|
}
|
|
19
19
|
await Promise.all(options.entry.map((entry) => {
|
|
20
|
-
|
|
20
|
+
_chunkMZDSQVPGjs.writeInfo.call(void 0, `\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
21
21
|
return _TypiaProgrammerjs.TypiaProgrammer.build({
|
|
22
22
|
input: entry,
|
|
23
23
|
output: options.outputPath,
|
|
@@ -29,7 +29,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
_chunk3GQAWCBQjs.__name.call(void 0, typiaExecutorFn, "typiaExecutorFn");
|
|
32
|
-
var executor_default =
|
|
32
|
+
var executor_default = _chunkLZFVNTSDjs.withRunExecutor.call(void 0, "Typia runtime validation generator", typiaExecutorFn, {
|
|
33
33
|
skipReadingConfig: false,
|
|
34
34
|
hooks: {
|
|
35
35
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -12,7 +12,7 @@ var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkMZDSQVPGjs = require('./chunk-MZDSQVPG.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk4JOIS7WWjs = require('./chunk-4JOIS7WW.js');
|
|
@@ -23,7 +23,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
23
23
|
// src/base/base-executor.ts
|
|
24
24
|
var _defu = require('defu');
|
|
25
25
|
var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
26
|
-
const stopwatch =
|
|
26
|
+
const stopwatch = _chunkMZDSQVPGjs.getStopwatch.call(void 0, name);
|
|
27
27
|
let options = _options;
|
|
28
28
|
let config = {};
|
|
29
29
|
try {
|
|
@@ -35,23 +35,23 @@ var withRunExecutor = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (name
|
|
|
35
35
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
36
36
|
const projectName = context.projectName;
|
|
37
37
|
config.workspaceRoot = workspaceRoot;
|
|
38
|
-
|
|
38
|
+
_chunkMZDSQVPGjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
39
39
|
if (!executorOptions.skipReadingConfig) {
|
|
40
|
-
|
|
40
|
+
_chunkMZDSQVPGjs.writeTrace.call(void 0, `Loading the Storm Config from environment variables and storm.config.js file...
|
|
41
41
|
- workspaceRoot: ${workspaceRoot}
|
|
42
42
|
- projectRoot: ${projectRoot}
|
|
43
43
|
- sourceRoot: ${sourceRoot}
|
|
44
44
|
- projectName: ${projectName}
|
|
45
45
|
`, config);
|
|
46
|
-
config = await
|
|
46
|
+
config = await _chunkMZDSQVPGjs.getConfig.call(void 0, workspaceRoot);
|
|
47
47
|
}
|
|
48
48
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
49
|
-
|
|
49
|
+
_chunkMZDSQVPGjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
50
50
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
51
|
-
|
|
51
|
+
_chunkMZDSQVPGjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
${
|
|
53
|
+
_chunkMZDSQVPGjs.writeTrace.call(void 0, `Executor schema options \u2699\uFE0F
|
|
54
|
+
${_chunkMZDSQVPGjs.formatLogMessage.call(void 0, options)}
|
|
55
55
|
`, config);
|
|
56
56
|
const tokenized = await _chunkUALZJZUKjs.applyWorkspaceTokens.call(void 0, options, _defu.defu.call(void 0, {
|
|
57
57
|
workspaceRoot,
|
|
@@ -60,13 +60,13 @@ ${_chunkGPLPX4K5js.formatLogMessage.call(void 0, options)}
|
|
|
60
60
|
projectName,
|
|
61
61
|
config
|
|
62
62
|
}, config, context.projectsConfigurations.projects[context.projectName]), _chunkUALZJZUKjs.applyWorkspaceProjectTokens);
|
|
63
|
-
|
|
64
|
-
${
|
|
63
|
+
_chunkMZDSQVPGjs.writeTrace.call(void 0, `Executor schema tokenized options \u2699\uFE0F
|
|
64
|
+
${_chunkMZDSQVPGjs.formatLogMessage.call(void 0, tokenized)}
|
|
65
65
|
`, config);
|
|
66
66
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
67
|
-
|
|
67
|
+
_chunkMZDSQVPGjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
68
68
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
69
|
-
|
|
69
|
+
_chunkMZDSQVPGjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
70
70
|
}
|
|
71
71
|
const ret = executorFn(tokenized, context, config);
|
|
72
72
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -76,26 +76,26 @@ ${_chunkGPLPX4K5js.formatLogMessage.call(void 0, tokenized)}
|
|
|
76
76
|
}
|
|
77
77
|
const result = await Promise.resolve(ret);
|
|
78
78
|
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")) {
|
|
79
|
-
|
|
80
|
-
${
|
|
79
|
+
_chunkMZDSQVPGjs.writeTrace.call(void 0, `Failure determined by the ${name} executor
|
|
80
|
+
${_chunkMZDSQVPGjs.formatLogMessage.call(void 0, result)}`, config);
|
|
81
81
|
console.error(result);
|
|
82
82
|
throw new Error(`The ${name} executor failed to run`, {
|
|
83
83
|
cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
87
|
-
|
|
87
|
+
_chunkMZDSQVPGjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
88
88
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
89
|
-
|
|
89
|
+
_chunkMZDSQVPGjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
_chunkMZDSQVPGjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
92
92
|
`, config);
|
|
93
93
|
return {
|
|
94
94
|
success: true
|
|
95
95
|
};
|
|
96
96
|
} catch (error) {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
_chunkMZDSQVPGjs.writeFatal.call(void 0, "A fatal error occurred while running the executor - the process was forced to terminate", config);
|
|
98
|
+
_chunkMZDSQVPGjs.writeError.call(void 0, `An exception was thrown in the executor's process
|
|
99
99
|
- Details: ${error.message}
|
|
100
100
|
- Stacktrace: ${error.stack}`, config);
|
|
101
101
|
return {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pnpmCatalogUpdate
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V3BHMCB3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
joinPaths
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DJFG4LGU.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZMF7BFD4.mjs";
|
|
10
10
|
|
|
11
11
|
// src/executors/npm-publish/executor.ts
|
|
12
12
|
import { execSync } from "node:child_process";
|
|
@@ -129,11 +129,11 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
129
129
|
preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
130
130
|
owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
131
131
|
bot: WorkspaceBotConfigSchema,
|
|
132
|
-
|
|
132
|
+
mode: _zod2.default.enum([
|
|
133
133
|
"development",
|
|
134
134
|
"staging",
|
|
135
135
|
"production"
|
|
136
|
-
]).default("production").describe("The current runtime environment
|
|
136
|
+
]).default("production").describe("The current runtime environment mode for the package"),
|
|
137
137
|
workspaceRoot: _zod2.default.string().trim().default("").describe("The root directory of the workspace"),
|
|
138
138
|
externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe("The build will use these package patterns to determine if they should be external to the bundle"),
|
|
139
139
|
skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
@@ -607,7 +607,7 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
|
607
607
|
build: process.env[`${prefix}BUILD_DIR`] ? _chunkJTAXCQX6js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
608
608
|
},
|
|
609
609
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
610
|
-
|
|
610
|
+
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
611
611
|
// ci:
|
|
612
612
|
// process.env[`${prefix}CI`] !== undefined
|
|
613
613
|
// ? Boolean(
|
|
@@ -816,10 +816,10 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
816
816
|
process.env.NX_CACHE_PROJECT_GRAPH ??= String(config.skipCache);
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
if (config.
|
|
820
|
-
process.env[`${prefix}
|
|
821
|
-
process.env.NODE_ENV = config.
|
|
822
|
-
process.env.ENVIRONMENT = config.
|
|
819
|
+
if (config.mode) {
|
|
820
|
+
process.env[`${prefix}MODE`] = config.mode;
|
|
821
|
+
process.env.NODE_ENV = config.mode;
|
|
822
|
+
process.env.ENVIRONMENT = config.mode;
|
|
823
823
|
}
|
|
824
824
|
if (_optionalChain([config, 'access', _44 => _44.colors, 'optionalAccess', _45 => _45.base, 'optionalAccess', _46 => _46.light]) || _optionalChain([config, 'access', _47 => _47.colors, 'optionalAccess', _48 => _48.base, 'optionalAccess', _49 => _49.dark])) {
|
|
825
825
|
for (const key of Object.keys(config.colors)) {
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk6OSR2VYBjs = require('./chunk-6OSR2VYB.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkLZFVNTSDjs = require('./chunk-LZFVNTSD.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@ var _chunkUFZMCWNTjs = require('./chunk-UFZMCWNT.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkMZDSQVPGjs = require('./chunk-MZDSQVPG.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
@@ -54,7 +54,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
54
54
|
"cjs"
|
|
55
55
|
],
|
|
56
56
|
tsconfig: "tsconfig.json",
|
|
57
|
-
|
|
57
|
+
mode: "production",
|
|
58
58
|
globalName: "globalThis",
|
|
59
59
|
unused: {
|
|
60
60
|
level: "error"
|
|
@@ -74,9 +74,9 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
74
74
|
if (!workspaceRoot) {
|
|
75
75
|
throw new Error("Cannot find Nx workspace root");
|
|
76
76
|
}
|
|
77
|
-
const config = await
|
|
78
|
-
|
|
79
|
-
const stopwatch =
|
|
77
|
+
const config = await _chunkMZDSQVPGjs.getConfig.call(void 0, workspaceRoot.dir);
|
|
78
|
+
_chunkMZDSQVPGjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
79
|
+
const stopwatch = _chunkMZDSQVPGjs.getStopwatch.call(void 0, "Build options resolution");
|
|
80
80
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
81
81
|
exitOnError: true
|
|
82
82
|
});
|
|
@@ -93,19 +93,19 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
93
93
|
}
|
|
94
94
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
95
95
|
options.name ??= `${projectName}-${options.format}`;
|
|
96
|
-
options.target ??=
|
|
96
|
+
options.target ??= _chunk6OSR2VYBjs.DEFAULT_TARGET;
|
|
97
97
|
const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
98
98
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
99
99
|
throw new Error("Cannot find package.json configuration");
|
|
100
100
|
}
|
|
101
|
-
const env =
|
|
101
|
+
const env = _chunk6OSR2VYBjs.getEnv.call(void 0, "tsdown", options);
|
|
102
102
|
const result = {
|
|
103
103
|
...options,
|
|
104
104
|
config,
|
|
105
105
|
...userOptions,
|
|
106
106
|
tsconfig: _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
107
107
|
format: options.format || "cjs",
|
|
108
|
-
entryPoints: await
|
|
108
|
+
entryPoints: await _chunk6OSR2VYBjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
109
109
|
"./src/index.ts"
|
|
110
110
|
], userOptions.emitOnAll),
|
|
111
111
|
outdir: userOptions.outputPath || _chunkJTAXCQX6js.joinPaths.call(void 0, "dist", projectRoot),
|
|
@@ -116,7 +116,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
116
116
|
projectGraph,
|
|
117
117
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "src"),
|
|
118
118
|
minify: userOptions.minify || !userOptions.debug,
|
|
119
|
-
verbose: userOptions.verbose ||
|
|
119
|
+
verbose: userOptions.verbose || _chunkMZDSQVPGjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
120
120
|
includeSrc: userOptions.includeSrc === true,
|
|
121
121
|
metafile: userOptions.metafile !== false,
|
|
122
122
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -151,8 +151,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
151
151
|
}, "resolveOptions");
|
|
152
152
|
async function generatePackageJson(options) {
|
|
153
153
|
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
154
|
-
|
|
155
|
-
const stopwatch =
|
|
154
|
+
_chunkMZDSQVPGjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
155
|
+
const stopwatch = _chunkMZDSQVPGjs.getStopwatch.call(void 0, "Write package.json file");
|
|
156
156
|
const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
157
157
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
158
158
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -162,11 +162,11 @@ async function generatePackageJson(options) {
|
|
|
162
162
|
throw new Error("Cannot find package.json configuration file");
|
|
163
163
|
}
|
|
164
164
|
let packageJson = JSON.parse(packageJsonFile);
|
|
165
|
-
packageJson = await
|
|
166
|
-
packageJson = await
|
|
165
|
+
packageJson = await _chunk6OSR2VYBjs.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
|
|
166
|
+
packageJson = await _chunk6OSR2VYBjs.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
|
|
167
167
|
packageJson.exports ??= {};
|
|
168
168
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
169
|
-
packageJson.exports["."] ??=
|
|
169
|
+
packageJson.exports["."] ??= _chunk6OSR2VYBjs.addPackageJsonExport.call(void 0, "index", packageJson.type, options.sourceRoot);
|
|
170
170
|
let entryPoints = [
|
|
171
171
|
{
|
|
172
172
|
in: "./src/index.ts",
|
|
@@ -184,7 +184,7 @@ async function generatePackageJson(options) {
|
|
|
184
184
|
const split = entryPoint.out.split(".");
|
|
185
185
|
split.pop();
|
|
186
186
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
187
|
-
packageJson.exports[`./${entry}`] ??=
|
|
187
|
+
packageJson.exports[`./${entry}`] ??= _chunk6OSR2VYBjs.addPackageJsonExport.call(void 0, entry, packageJson.type, options.sourceRoot);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
@@ -203,8 +203,8 @@ async function generatePackageJson(options) {
|
|
|
203
203
|
}
|
|
204
204
|
_chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
205
205
|
async function executeTSDown(options) {
|
|
206
|
-
|
|
207
|
-
const stopwatch =
|
|
206
|
+
_chunkMZDSQVPGjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
|
|
207
|
+
const stopwatch = _chunkMZDSQVPGjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
208
208
|
await _tsdown.build.call(void 0, {
|
|
209
209
|
...options,
|
|
210
210
|
entry: options.entryPoints,
|
|
@@ -216,21 +216,21 @@ async function executeTSDown(options) {
|
|
|
216
216
|
}
|
|
217
217
|
_chunk3GQAWCBQjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
218
218
|
async function copyBuildAssets(options) {
|
|
219
|
-
|
|
220
|
-
const stopwatch =
|
|
221
|
-
await
|
|
219
|
+
_chunkMZDSQVPGjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
220
|
+
const stopwatch = _chunkMZDSQVPGjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
221
|
+
await _chunk6OSR2VYBjs.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
|
|
222
222
|
stopwatch();
|
|
223
223
|
return options;
|
|
224
224
|
}
|
|
225
225
|
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
226
226
|
async function reportResults(options) {
|
|
227
|
-
|
|
227
|
+
_chunkMZDSQVPGjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
228
228
|
}
|
|
229
229
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
230
230
|
async function cleanOutputPath(options) {
|
|
231
231
|
if (options.clean !== false && options.outdir) {
|
|
232
|
-
|
|
233
|
-
const stopwatch =
|
|
232
|
+
_chunkMZDSQVPGjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
|
|
233
|
+
const stopwatch = _chunkMZDSQVPGjs.getStopwatch.call(void 0, `${options.name} output clean`);
|
|
234
234
|
await cleanDirectories(options.name, options.outdir, options.config);
|
|
235
235
|
stopwatch();
|
|
236
236
|
}
|
|
@@ -238,8 +238,8 @@ async function cleanOutputPath(options) {
|
|
|
238
238
|
}
|
|
239
239
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
240
240
|
async function build(options) {
|
|
241
|
-
|
|
242
|
-
const stopwatch =
|
|
241
|
+
_chunkMZDSQVPGjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
242
|
+
const stopwatch = _chunkMZDSQVPGjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
243
243
|
try {
|
|
244
244
|
const opts = Array.isArray(options) ? options : [
|
|
245
245
|
options
|
|
@@ -257,11 +257,11 @@ async function build(options) {
|
|
|
257
257
|
await reportResults(opt);
|
|
258
258
|
}));
|
|
259
259
|
} else {
|
|
260
|
-
|
|
260
|
+
_chunkMZDSQVPGjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
|
|
261
261
|
}
|
|
262
|
-
|
|
262
|
+
_chunkMZDSQVPGjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
263
263
|
} catch (error) {
|
|
264
|
-
|
|
264
|
+
_chunkMZDSQVPGjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
265
265
|
throw error;
|
|
266
266
|
} finally {
|
|
267
267
|
stopwatch();
|
|
@@ -271,7 +271,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, build, "build");
|
|
|
271
271
|
|
|
272
272
|
// src/executors/tsdown/executor.ts
|
|
273
273
|
async function tsdownExecutorFn(options, context, config) {
|
|
274
|
-
|
|
274
|
+
_chunkMZDSQVPGjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
|
|
275
275
|
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])) {
|
|
276
276
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
277
277
|
}
|
|
@@ -288,7 +288,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
_chunk3GQAWCBQjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
|
|
291
|
-
var executor_default =
|
|
291
|
+
var executor_default = _chunkLZFVNTSDjs.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
|
|
292
292
|
skipReadingConfig: false,
|
|
293
293
|
hooks: {
|
|
294
294
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
getEntryPoints,
|
|
9
9
|
getEnv,
|
|
10
10
|
getOutExtension
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SERUXLAQ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
withRunExecutor
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TPXVLKDP.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getConfig,
|
|
17
17
|
getStopwatch,
|
|
@@ -23,15 +23,15 @@ import {
|
|
|
23
23
|
writeSuccess,
|
|
24
24
|
writeTrace,
|
|
25
25
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-422NV4UL.mjs";
|
|
27
27
|
import {
|
|
28
28
|
joinPaths
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DJFG4LGU.mjs";
|
|
30
30
|
import {
|
|
31
31
|
__dirname,
|
|
32
32
|
__name,
|
|
33
33
|
__require
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ZMF7BFD4.mjs";
|
|
35
35
|
|
|
36
36
|
// ../esbuild/src/build.ts
|
|
37
37
|
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph, writeJsonFile } from "@nx/devkit";
|
|
@@ -507,7 +507,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
507
507
|
external: [],
|
|
508
508
|
logLevel: "error",
|
|
509
509
|
tsconfig: "tsconfig.json",
|
|
510
|
-
|
|
510
|
+
mode: "production",
|
|
511
511
|
keepNames: true,
|
|
512
512
|
metafile: true,
|
|
513
513
|
injectShims: true,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getProjectPlatform
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3DA3TU7H.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTagConstants,
|
|
6
6
|
addProjectTag,
|
|
7
7
|
isEqualProjectTag,
|
|
8
8
|
setDefaultProjectTags
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OEXS6BM2.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZMF7BFD4.mjs";
|
|
13
13
|
|
|
14
14
|
// src/plugins/typescript/project-config.ts
|
|
15
15
|
import { existsSync } from "node:fs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SLD47MNH.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F43E25RT.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DJFG4LGU.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname,
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZMF7BFD4.mjs";
|
|
15
15
|
|
|
16
16
|
// src/generators/browser-library/generator.ts
|
|
17
17
|
import { formatFiles, generateFiles, names, offsetFromRoot } from "@nx/devkit";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildCargoCommand,
|
|
3
3
|
cargoCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-A4QFANJD.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunExecutor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TPXVLKDP.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZMF7BFD4.mjs";
|
|
11
11
|
|
|
12
12
|
// src/executors/cargo-format/executor.ts
|
|
13
13
|
async function cargoFormatExecutor(options, context) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findWorkspaceRoot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GYGR5QJY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZMF7BFD4.mjs";
|
|
7
7
|
|
|
8
8
|
// src/utils/apply-workspace-tokens.ts
|
|
9
9
|
var applyWorkspaceExecutorTokens = /* @__PURE__ */ __name(async (option, tokenizerOptions) => {
|