@storm-software/workspace-tools 1.294.21 → 1.294.23
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 +31 -0
- package/dist/{chunk-2OYCCICJ.mjs → chunk-3KQCOKHR.mjs} +2 -2
- package/dist/{chunk-ASZOMYCS.mjs → chunk-3QJHAILV.mjs} +1 -1
- package/dist/{chunk-3T64LUNP.js → chunk-3X6RG4EG.js} +2 -2
- package/dist/{chunk-4BWM53AA.js → chunk-44BBGI2A.js} +4 -2
- package/dist/{chunk-VWP4LOTY.mjs → chunk-4RS25MXA.mjs} +1 -1
- package/dist/{chunk-KV6U4IX6.js → chunk-6NYDBV23.js} +2 -2
- package/dist/{chunk-FORQKF7Q.mjs → chunk-6UHWGGM5.mjs} +16 -1
- package/dist/{chunk-H7GLZOOC.mjs → chunk-73ALUS6R.mjs} +4 -4
- package/dist/{chunk-AYLSCEK6.mjs → chunk-7DDSFP3I.mjs} +2 -2
- package/dist/{chunk-SXC4J7LO.mjs → chunk-C22BY3WI.mjs} +2 -2
- package/dist/{chunk-4GHVWMHE.js → chunk-DFKALALI.js} +2 -2
- package/dist/{chunk-RXSB4AVK.js → chunk-DY45LR4B.js} +2 -2
- package/dist/{chunk-IKTHRMUF.mjs → chunk-E3QUFDT5.mjs} +1 -1
- package/dist/{chunk-LDAAAQLZ.mjs → chunk-E566FKPB.mjs} +1 -1
- package/dist/{chunk-YK4JWL7A.js → chunk-EYAMFI7D.js} +2 -2
- package/dist/{chunk-MPUFSH52.mjs → chunk-FOQC5GHL.mjs} +1 -1
- package/dist/{chunk-SVIR2XZM.js → chunk-FR7Q4DI3.js} +16 -16
- package/dist/{chunk-5FIKIPZW.js → chunk-GDKXPNWV.js} +20 -20
- package/dist/{chunk-LB7DV74C.js → chunk-GV3NH3O3.js} +2 -2
- package/dist/{chunk-HX75TMCP.mjs → chunk-IQGZG64W.mjs} +1 -1
- package/dist/{chunk-JM62BQSM.mjs → chunk-JFTB2MZS.mjs} +2 -2
- package/dist/{chunk-LZC7BM3D.js → chunk-JGSTESA2.js} +2 -2
- package/dist/{chunk-6N7EMPGL.js → chunk-K5U7AXCP.js} +6 -6
- package/dist/{chunk-GXTFFUML.js → chunk-KGBMBIMD.js} +2 -2
- package/dist/{chunk-T2MIMLK4.mjs → chunk-KYF35U5H.mjs} +2 -2
- package/dist/{chunk-NT3NFCMA.mjs → chunk-LGDWG3TS.mjs} +2 -2
- package/dist/{chunk-IPYOIFXP.js → chunk-LT6HABKS.js} +2 -2
- package/dist/{chunk-AOETUPU5.mjs → chunk-LU2AUK5R.mjs} +1 -1
- package/dist/{chunk-7CMIO2NL.js → chunk-M3GIMCUS.js} +4 -4
- package/dist/{chunk-X3ZCGPHB.js → chunk-M7PSICO4.js} +2 -2
- package/dist/{chunk-FEYD5KMF.mjs → chunk-MB6AQKEM.mjs} +1 -1
- package/dist/{chunk-PHVIQYYJ.mjs → chunk-MHDUK7AG.mjs} +2 -2
- package/dist/{chunk-5BONSUJM.mjs → chunk-MYVCMGXZ.mjs} +1 -1
- package/dist/{chunk-EVPYSTFN.js → chunk-NECOAJIF.js} +2 -2
- package/dist/{chunk-AGUQYTSQ.mjs → chunk-NYWAVN3K.mjs} +1 -1
- package/dist/{chunk-LYXDMWXF.js → chunk-O2O6OMNY.js} +4 -4
- package/dist/{chunk-SJCAWCXW.mjs → chunk-ONY5XVLY.mjs} +1 -1
- package/dist/{chunk-X3HM2IHO.mjs → chunk-OOVL4X5X.mjs} +3 -3
- package/dist/{chunk-NURKEB3S.mjs → chunk-PCXRIDP7.mjs} +1 -1
- package/dist/{chunk-5G4PATLH.js → chunk-PKVUHXO7.js} +12 -12
- package/dist/{chunk-6UJMT3W5.js → chunk-R2YWPTGT.js} +25 -10
- package/dist/{chunk-5O25TKHC.js → chunk-REBYV6UF.js} +11 -11
- package/dist/{chunk-VHTTZP53.js → chunk-SPA3KPYJ.js} +5 -5
- package/dist/{chunk-EMCTCFOX.js → chunk-SW324EZL.js} +5 -5
- package/dist/{chunk-MCVES7TN.mjs → chunk-T26MOHEW.mjs} +1 -1
- package/dist/{chunk-QEHJJFRA.js → chunk-UUWZMAV4.js} +30 -30
- package/dist/{chunk-6TMK5JR2.js → chunk-VLO2HY6J.js} +34 -34
- package/dist/{chunk-HMRKWV4A.mjs → chunk-WOC65XYH.mjs} +1 -1
- package/dist/{chunk-6PFAU5XI.mjs → chunk-WUXDWEEW.mjs} +4 -4
- package/dist/{chunk-SVWY4Z75.js → chunk-X6XVS2G3.js} +2 -2
- package/dist/{chunk-TKN4IGLS.js → chunk-XJ2VKQNH.js} +2 -2
- package/dist/{chunk-66Q42VH2.js → chunk-XWAMKDVR.js} +2 -2
- package/dist/{chunk-6MATO2MJ.mjs → chunk-YSQAKVSC.mjs} +4 -2
- package/dist/{chunk-3WCCKGWO.mjs → chunk-ZB64FD5X.mjs} +1 -1
- 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 +10 -10
- package/dist/generators.mjs +12 -12
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +29 -29
- package/dist/index.mjs +31 -31
- 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 +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk44BBGI2Ajs = require('./chunk-44BBGI2A.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -54,7 +54,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
54
54
|
output: "src/"
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
_chunk44BBGI2Ajs.writeTrace.call(void 0,
|
|
58
58
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
59
59
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkCQDBLKPFjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
60
60
|
config
|
|
@@ -66,9 +66,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
66
66
|
assets: pendingAssets
|
|
67
67
|
});
|
|
68
68
|
await assetHandler.processAllAssetsOnce();
|
|
69
|
-
|
|
69
|
+
_chunk44BBGI2Ajs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
70
70
|
if (includeSrc === true) {
|
|
71
|
-
|
|
71
|
+
_chunk44BBGI2Ajs.writeDebug.call(void 0,
|
|
72
72
|
`\u{1F4DD} Adding banner and writing source files: ${_chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
73
73
|
outputPath,
|
|
74
74
|
"src"
|
|
@@ -152,7 +152,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
if (localPackages.length > 0) {
|
|
155
|
-
|
|
155
|
+
_chunk44BBGI2Ajs.writeTrace.call(void 0,
|
|
156
156
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
157
157
|
);
|
|
158
158
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -200,7 +200,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
200
200
|
return ret;
|
|
201
201
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
202
202
|
} else {
|
|
203
|
-
|
|
203
|
+
_chunk44BBGI2Ajs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
204
204
|
}
|
|
205
205
|
return packageJson;
|
|
206
206
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunk44BBGI2Ajs = require('./chunk-44BBGI2A.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/toml.ts
|
|
6
6
|
var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml);
|
|
7
7
|
function parseCargoTomlWithTree(tree, projectRoot, projectName) {
|
|
8
8
|
const cargoTomlString = _optionalChain([tree, 'access', _ => _.read, 'call', _2 => _2(`${projectRoot}/Cargo.toml`), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
9
9
|
if (!cargoTomlString) {
|
|
10
|
-
|
|
10
|
+
_chunk44BBGI2Ajs.writeError.call(void 0, `Cannot find a Cargo.toml file in the ${projectName}`);
|
|
11
11
|
throw new Error();
|
|
12
12
|
}
|
|
13
13
|
return parseCargoToml(cargoTomlString);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JFTB2MZS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YSQAKVSC.mjs";
|
|
7
7
|
|
|
8
8
|
// src/executors/typia/executor.ts
|
|
9
9
|
import { removeSync } from "fs-extra";
|
|
@@ -7,7 +7,7 @@ var _chunkBZMYB75Mjs = require('./chunk-BZMYB75M.js');
|
|
|
7
7
|
var _chunkSZWM7COVjs = require('./chunk-SZWM7COV.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkFR7Q4DI3js = require('./chunk-FR7Q4DI3.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -59,7 +59,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
59
59
|
await _devkit.formatFiles.call(void 0, tree);
|
|
60
60
|
return null;
|
|
61
61
|
}
|
|
62
|
-
var generator_default =
|
|
62
|
+
var generator_default = _chunkFR7Q4DI3js.withRunGenerator.call(void 0,
|
|
63
63
|
"TypeScript Library Creator (NodeJs Platform)",
|
|
64
64
|
nodeLibraryGeneratorFn,
|
|
65
65
|
{
|
|
@@ -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 _chunkJGSTESA2js = require('./chunk-JGSTESA2.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkR2YWPTGTjs = require('./chunk-R2YWPTGT.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 _chunkR2YWPTGTjs.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 _chunkJGSTESA2js.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,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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkR2YWPTGTjs = require('./chunk-R2YWPTGT.js');
|
|
4
4
|
|
|
5
5
|
// src/release/js-version-actions.ts
|
|
6
6
|
var _versionactionsjs = require('@nx/js/src/release/version-actions.js'); var _versionactionsjs2 = _interopRequireDefault(_versionactionsjs);
|
|
@@ -24,7 +24,7 @@ var StormJsVersionActions = (_class = class extends _versionactionsjs2.default {
|
|
|
24
24
|
* @params tree - The file system tree to read from.
|
|
25
25
|
*/
|
|
26
26
|
async init(tree) {
|
|
27
|
-
this.workspaceConfig = await
|
|
27
|
+
this.workspaceConfig = await _chunkR2YWPTGTjs.getWorkspaceConfig.call(void 0, );
|
|
28
28
|
return super.init(tree);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-2QMGYIOO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6UHWGGM5.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getStopwatch,
|
|
10
10
|
writeDebug,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeSuccess,
|
|
15
15
|
writeTrace
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YSQAKVSC.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
19
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkBZMYB75Mjs = require('./chunk-BZMYB75M.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkFR7Q4DI3js = require('./chunk-FR7Q4DI3.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -54,7 +54,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
54
54
|
await _devkit.formatFiles.call(void 0, tree);
|
|
55
55
|
return null;
|
|
56
56
|
}
|
|
57
|
-
var generator_default =
|
|
57
|
+
var generator_default = _chunkFR7Q4DI3js.withRunGenerator.call(void 0,
|
|
58
58
|
"TypeScript Library Creator (Neutral Platform)",
|
|
59
59
|
neutralLibraryGeneratorFn,
|
|
60
60
|
{
|
|
@@ -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 _chunkGDKXPNWVjs = require('./chunk-GDKXPNWV.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk44BBGI2Ajs = require('./chunk-44BBGI2A.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
|
+
_chunk44BBGI2Ajs.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 = _chunkGDKXPNWVjs.withRunExecutor.call(void 0,
|
|
84
84
|
"TypeScript Unbuild build",
|
|
85
85
|
unbuildExecutorFn,
|
|
86
86
|
{
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MHDUK7AG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
schemaRegistry,
|
|
6
6
|
workspaceConfigSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6UHWGGM5.mjs";
|
|
8
8
|
import {
|
|
9
9
|
writeInfo,
|
|
10
10
|
writeSuccess,
|
|
11
11
|
writeTrace
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YSQAKVSC.mjs";
|
|
13
13
|
import {
|
|
14
14
|
findWorkspaceRoot
|
|
15
15
|
} from "./chunk-3J2CP54B.mjs";
|
|
@@ -5,10 +5,10 @@ var _chunkANHKV7HZjs = require('./chunk-ANHKV7HZ.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkKGBMBIMDjs = require('./chunk-KGBMBIMD.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkR2YWPTGTjs = require('./chunk-R2YWPTGT.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 _chunkR2YWPTGTjs.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 = _chunkKGBMBIMDjs.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 = _chunkKGBMBIMDjs.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 = _chunkKGBMBIMDjs.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 = _chunkKGBMBIMDjs.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 = _chunkKGBMBIMDjs.parseCargoToml.call(void 0, cargoTomlString);
|
|
135
135
|
cargoToml.package.version = newVersion;
|
|
136
|
-
tree.write(manifestToUpdate.manifestPath,
|
|
136
|
+
tree.write(manifestToUpdate.manifestPath, _chunkKGBMBIMDjs.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 = _chunkKGBMBIMDjs.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 = _chunkKGBMBIMDjs.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
|
+
_chunkKGBMBIMDjs.stringifyCargoToml.call(void 0, cargoToml)
|
|
193
193
|
);
|
|
194
194
|
} catch (error) {
|
|
195
195
|
throw new Error(
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk44BBGI2Ajs = require('./chunk-44BBGI2A.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
@@ -82,6 +82,10 @@ var infoColorSchema = z._default(colorSchema, "#38bdf8");
|
|
|
82
82
|
schemaRegistry.add(infoColorSchema, {
|
|
83
83
|
description: "The informational color of the workspace"
|
|
84
84
|
});
|
|
85
|
+
var debugColorSchema = z._default(colorSchema, "#8afafc");
|
|
86
|
+
schemaRegistry.add(debugColorSchema, {
|
|
87
|
+
description: "The debug color of the workspace"
|
|
88
|
+
});
|
|
85
89
|
var warningColorSchema = z._default(colorSchema, "#f3d371");
|
|
86
90
|
schemaRegistry.add(warningColorSchema, {
|
|
87
91
|
description: "The warning color of the workspace"
|
|
@@ -116,6 +120,7 @@ var darkColorsSchema = z.object({
|
|
|
116
120
|
help: helpColorSchema,
|
|
117
121
|
success: successColorSchema,
|
|
118
122
|
info: infoColorSchema,
|
|
123
|
+
debug: debugColorSchema,
|
|
119
124
|
warning: warningColorSchema,
|
|
120
125
|
danger: dangerColorSchema,
|
|
121
126
|
fatal: fatalColorSchema,
|
|
@@ -133,6 +138,7 @@ var lightColorsSchema = z.object({
|
|
|
133
138
|
help: helpColorSchema,
|
|
134
139
|
success: successColorSchema,
|
|
135
140
|
info: infoColorSchema,
|
|
141
|
+
debug: debugColorSchema,
|
|
136
142
|
warning: warningColorSchema,
|
|
137
143
|
danger: dangerColorSchema,
|
|
138
144
|
fatal: fatalColorSchema,
|
|
@@ -154,6 +160,7 @@ var singleColorsSchema = z.object({
|
|
|
154
160
|
help: helpColorSchema,
|
|
155
161
|
success: successColorSchema,
|
|
156
162
|
info: infoColorSchema,
|
|
163
|
+
debug: debugColorSchema,
|
|
157
164
|
warning: warningColorSchema,
|
|
158
165
|
danger: dangerColorSchema,
|
|
159
166
|
fatal: fatalColorSchema,
|
|
@@ -744,7 +751,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
744
751
|
let config = result.config;
|
|
745
752
|
const configFile = result.configFile;
|
|
746
753
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
747
|
-
|
|
754
|
+
_chunk44BBGI2Ajs.writeTrace.call(void 0,
|
|
748
755
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
749
756
|
{
|
|
750
757
|
logLevel: "all"
|
|
@@ -760,7 +767,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
760
767
|
for (const result2 of results) {
|
|
761
768
|
if (_optionalChain([result2, 'optionalAccess', _9 => _9.config]) && _optionalChain([result2, 'optionalAccess', _10 => _10.configFile]) && Object.keys(result2.config).length > 0) {
|
|
762
769
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
763
|
-
|
|
770
|
+
_chunk44BBGI2Ajs.writeTrace.call(void 0,
|
|
764
771
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
765
772
|
{
|
|
766
773
|
logLevel: "all"
|
|
@@ -872,7 +879,7 @@ var getConfigEnv = () => {
|
|
|
872
879
|
},
|
|
873
880
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
874
881
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
875
|
-
) ?
|
|
882
|
+
) ? _chunk44BBGI2Ajs.getLogLevelLabel.call(void 0,
|
|
876
883
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
877
884
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
878
885
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -943,6 +950,7 @@ var getSingleThemeColorsEnv = (prefix) => {
|
|
|
943
950
|
help: process.env[`${prefix}HELP`],
|
|
944
951
|
success: process.env[`${prefix}SUCCESS`],
|
|
945
952
|
info: process.env[`${prefix}INFO`],
|
|
953
|
+
debug: process.env[`${prefix}DEBUG`],
|
|
946
954
|
warning: process.env[`${prefix}WARNING`],
|
|
947
955
|
danger: process.env[`${prefix}DANGER`],
|
|
948
956
|
fatal: process.env[`${prefix}FATAL`],
|
|
@@ -981,6 +989,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
981
989
|
help: process.env[`${prefix}HELP`],
|
|
982
990
|
success: process.env[`${prefix}SUCCESS`],
|
|
983
991
|
info: process.env[`${prefix}INFO`],
|
|
992
|
+
debug: process.env[`${prefix}DEBUG`],
|
|
984
993
|
warning: process.env[`${prefix}WARNING`],
|
|
985
994
|
danger: process.env[`${prefix}DANGER`],
|
|
986
995
|
fatal: process.env[`${prefix}FATAL`],
|
|
@@ -1235,9 +1244,9 @@ var setConfigEnv = (config) => {
|
|
|
1235
1244
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1236
1245
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1237
1246
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1238
|
-
|
|
1247
|
+
_chunk44BBGI2Ajs.getLogLevel.call(void 0, config.logLevel) >= _chunk44BBGI2Ajs.LogLevel.DEBUG ? true : false
|
|
1239
1248
|
);
|
|
1240
|
-
process.env.RUST_BACKTRACE =
|
|
1249
|
+
process.env.RUST_BACKTRACE = _chunk44BBGI2Ajs.getLogLevel.call(void 0, config.logLevel) >= _chunk44BBGI2Ajs.LogLevel.DEBUG ? "full" : "none";
|
|
1241
1250
|
}
|
|
1242
1251
|
if (config.skipConfigLogging !== void 0) {
|
|
1243
1252
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1282,6 +1291,9 @@ var setSingleThemeColorsEnv = (prefix, config) => {
|
|
|
1282
1291
|
if (config.info) {
|
|
1283
1292
|
process.env[`${prefix}INFO`] = config.info;
|
|
1284
1293
|
}
|
|
1294
|
+
if (config.debug) {
|
|
1295
|
+
process.env[`${prefix}DEBUG`] = config.debug;
|
|
1296
|
+
}
|
|
1285
1297
|
if (config.warning) {
|
|
1286
1298
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
1287
1299
|
}
|
|
@@ -1337,6 +1349,9 @@ var setBaseThemeColorsEnv = (prefix, config) => {
|
|
|
1337
1349
|
if (config.info) {
|
|
1338
1350
|
process.env[`${prefix}INFO`] = config.info;
|
|
1339
1351
|
}
|
|
1352
|
+
if (config.debug) {
|
|
1353
|
+
process.env[`${prefix}DEBUG`] = config.debug;
|
|
1354
|
+
}
|
|
1340
1355
|
if (config.warning) {
|
|
1341
1356
|
process.env[`${prefix}WARNING`] = config.warning;
|
|
1342
1357
|
}
|
|
@@ -1373,7 +1388,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1373
1388
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1374
1389
|
if (!configFile) {
|
|
1375
1390
|
if (!skipLogs) {
|
|
1376
|
-
|
|
1391
|
+
_chunk44BBGI2Ajs.writeWarning.call(void 0,
|
|
1377
1392
|
"No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
|
|
1378
1393
|
{ logLevel: "all" }
|
|
1379
1394
|
);
|
|
@@ -1400,7 +1415,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1400
1415
|
throw new Error(
|
|
1401
1416
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _35 => _35.message]) ? `: ${error.message}` : ""}
|
|
1402
1417
|
|
|
1403
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1418
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunk44BBGI2Ajs.formatLogMessage.call(void 0,
|
|
1404
1419
|
configInput
|
|
1405
1420
|
)}`,
|
|
1406
1421
|
{
|
|
@@ -1445,9 +1460,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1445
1460
|
);
|
|
1446
1461
|
setConfigEnv(config);
|
|
1447
1462
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1448
|
-
|
|
1463
|
+
_chunk44BBGI2Ajs.writeTrace.call(void 0,
|
|
1449
1464
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1450
|
-
${
|
|
1465
|
+
${_chunk44BBGI2Ajs.formatLogMessage.call(void 0, config)}`,
|
|
1451
1466
|
config
|
|
1452
1467
|
);
|
|
1453
1468
|
}
|
|
@@ -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 _chunkFR7Q4DI3js = require('./chunk-FR7Q4DI3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkR2YWPTGTjs = require('./chunk-R2YWPTGT.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk44BBGI2Ajs = require('./chunk-44BBGI2A.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
|
+
_chunk44BBGI2Ajs.writeInfo.call(void 0,
|
|
22
22
|
"\u{1F4E6} Running Storm Workspace Configuration JSON Schema generator",
|
|
23
23
|
config
|
|
24
24
|
);
|
|
25
|
-
|
|
25
|
+
_chunk44BBGI2Ajs.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(_chunkR2YWPTGTjs.workspaceConfigSchema, {
|
|
30
30
|
target: "draft-7",
|
|
31
|
-
metadata:
|
|
31
|
+
metadata: _chunkR2YWPTGTjs.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
|
+
_chunk44BBGI2Ajs.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
|
+
_chunk44BBGI2Ajs.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
|
+
_chunk44BBGI2Ajs.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 = _chunkFR7Q4DI3js.withRunGenerator.call(void 0,
|
|
61
61
|
"Configuration Schema Creator",
|
|
62
62
|
configSchemaGeneratorFn,
|
|
63
63
|
{
|