@storm-software/workspace-tools 1.277.26 → 1.277.28
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 +54 -0
- package/README.md +1 -1
- package/dist/{chunk-HSJMJFKE.mjs → chunk-3CPOV3N6.mjs} +2 -2
- package/dist/{chunk-RA2N6JZH.js → chunk-3OVLNULV.js} +2 -2
- package/dist/{chunk-P5EIB5HG.mjs → chunk-3VAHUUNQ.mjs} +1 -1
- package/dist/{chunk-2TGFVUIR.mjs → chunk-55FODDLQ.mjs} +2 -2
- package/dist/{chunk-LPNTTZ7I.mjs → chunk-5EK4H7VB.mjs} +1 -1
- package/dist/{chunk-XPKUS7AG.js → chunk-65P2PGPR.js} +5 -5
- package/dist/{chunk-G4MTTQFI.mjs → chunk-6RHHYXZE.mjs} +1 -1
- package/dist/{chunk-CSCLNKMV.js → chunk-6WBXO6UH.js} +2 -2
- package/dist/{chunk-QZA6F5EA.js → chunk-6XYAQUU3.js} +21 -21
- package/dist/{chunk-OZRUZ6AM.mjs → chunk-7IPJE3E3.mjs} +4 -4
- package/dist/{chunk-4OBCRV37.js → chunk-7YUXBCFS.js} +9 -9
- package/dist/{chunk-KXUWH7QY.js → chunk-ABUZEUF7.js} +2 -2
- package/dist/{chunk-CSXGWGUK.js → chunk-AQOT2IAM.js} +32 -32
- package/dist/{chunk-O4RSZYAD.js → chunk-BDA4N25E.js} +20 -20
- package/dist/{chunk-JTCJS4RS.js → chunk-BP22TRDI.js} +10 -6
- package/dist/{chunk-KYU34QH5.js → chunk-E566KBB3.js} +5 -5
- package/dist/{chunk-HBNNRGCJ.js → chunk-EC7YQEHT.js} +2 -2
- package/dist/{chunk-EDHSPOFD.mjs → chunk-EUWPFP5C.mjs} +1 -1
- package/dist/{chunk-JUSIKDWJ.mjs → chunk-GH5ABWPU.mjs} +1 -1
- package/dist/{chunk-RUGDFSKK.mjs → chunk-HWCERW6A.mjs} +2 -2
- package/dist/{chunk-QPPWAQNV.js → chunk-JRQIA2WV.js} +2 -2
- package/dist/{chunk-ZQHOT6H6.mjs → chunk-K262HGVZ.mjs} +2 -2
- package/dist/{chunk-D73OGSDF.js → chunk-KZIA4CGL.js} +24 -20
- package/dist/{chunk-YAEW3DQA.mjs → chunk-NFK6PGAC.mjs} +1 -1
- package/dist/{chunk-IDQ4JCDX.mjs → chunk-NQ525HTH.mjs} +7 -3
- package/dist/{chunk-25VWKDTU.js → chunk-OQUI7H7Z.js} +2 -2
- package/dist/{chunk-POILBEZH.mjs → chunk-PG7GBHUM.mjs} +1 -1
- package/dist/{chunk-G4U3DGCJ.mjs → chunk-PGIUP33N.mjs} +2 -2
- package/dist/{chunk-KYIRUMWH.mjs → chunk-PPMPCT7K.mjs} +2 -2
- package/dist/{chunk-V7ERI6BM.mjs → chunk-Q7MIY2SX.mjs} +1 -1
- package/dist/{chunk-M4TB3TOS.js → chunk-QEU3B4T6.js} +16 -16
- package/dist/{chunk-DASH2FOM.mjs → chunk-QPCOSMXY.mjs} +2 -2
- package/dist/{chunk-KUYVHZWZ.js → chunk-R7DNGWVO.js} +2 -2
- package/dist/{chunk-LQV3CCWT.js → chunk-RVJSZ7SI.js} +4 -4
- package/dist/{chunk-5LD3ABVM.js → chunk-S2N53PIP.js} +2 -2
- package/dist/{chunk-PKDVMEUW.mjs → chunk-SW2AFRXA.mjs} +8 -4
- package/dist/{chunk-IWD5UVSO.js → chunk-TJ3JPU6C.js} +2 -2
- package/dist/{chunk-3MSNXXXO.js → chunk-UXALGSQC.js} +2 -2
- package/dist/{chunk-2BORL7LX.js → chunk-V53473BD.js} +2 -2
- package/dist/{chunk-H5JCXWPB.mjs → chunk-V5564COA.mjs} +2 -2
- package/dist/{chunk-UWK5LEHA.mjs → chunk-VRPEYRWI.mjs} +1 -1
- package/dist/{chunk-MSHTPMHQ.js → chunk-XBRR6YS3.js} +2 -2
- package/dist/{chunk-4JA63BTZ.mjs → chunk-XPFT4BMH.mjs} +1 -1
- package/dist/{chunk-3YKD4Y7G.mjs → chunk-YDXXSCNG.mjs} +1 -1
- package/dist/{chunk-EOAKAELE.mjs → chunk-ZFA26D42.mjs} +2 -2
- package/dist/{chunk-JOG7WCHD.js → chunk-ZLVVUMYO.js} +2 -2
- package/dist/{chunk-JK77T25H.mjs → chunk-ZRTYYXDL.mjs} +2 -2
- package/dist/executors.js +17 -17
- package/dist/executors.mjs +17 -17
- package/dist/generators.js +12 -12
- package/dist/generators.mjs +13 -13
- package/dist/index.js +25 -25
- package/dist/index.mjs +26 -26
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +4 -4
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.js +4 -4
- package/dist/src/base/base-generator.mjs +4 -4
- 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.js +5 -5
- package/dist/src/base/index.mjs +5 -5
- package/dist/src/base/typescript-build-executor.untyped.mjs +1 -1
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.js +5 -5
- package/dist/src/executors/cargo-build/executor.mjs +5 -5
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.js +5 -5
- package/dist/src/executors/cargo-check/executor.mjs +5 -5
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.js +5 -5
- package/dist/src/executors/cargo-clippy/executor.mjs +5 -5
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.js +5 -5
- package/dist/src/executors/cargo-doc/executor.mjs +5 -5
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.js +5 -5
- package/dist/src/executors/cargo-format/executor.mjs +5 -5
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +4 -4
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +4 -4
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- package/dist/src/executors/esbuild/executor.js +5 -5
- package/dist/src/executors/esbuild/executor.mjs +5 -5
- package/dist/src/executors/esbuild/untyped.mjs +1 -1
- package/dist/src/executors/npm-publish/executor.js +5 -5
- package/dist/src/executors/npm-publish/executor.mjs +5 -5
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +5 -5
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +5 -5
- package/dist/src/executors/typia/untyped.mjs +1 -1
- package/dist/src/executors/unbuild/executor.js +5 -5
- package/dist/src/executors/unbuild/executor.mjs +5 -5
- package/dist/src/executors/unbuild/untyped.mjs +1 -1
- package/dist/src/generators/browser-library/generator.js +5 -5
- package/dist/src/generators/browser-library/generator.mjs +5 -5
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- package/dist/src/generators/config-schema/generator.js +5 -5
- package/dist/src/generators/config-schema/generator.mjs +5 -5
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +1 -1
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.js +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +5 -5
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- package/dist/src/generators/node-library/generator.js +5 -5
- package/dist/src/generators/node-library/generator.mjs +5 -5
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- package/dist/src/generators/preset/generator.js +5 -5
- package/dist/src/generators/preset/generator.mjs +5 -5
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/generators/release-version/generator.js +5 -5
- package/dist/src/generators/release-version/generator.mjs +5 -5
- package/dist/src/generators/release-version/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +1 -1
- package/dist/src/plugins/rust/index.mjs +1 -1
- package/dist/src/plugins/typescript/index.mjs +1 -1
- package/dist/src/plugins/typescript/project-config.mjs +1 -1
- package/dist/src/plugins/typescript/tsup.mjs +1 -1
- package/dist/src/plugins/typescript/untyped-schema.mjs +1 -1
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.mjs +1 -1
- package/dist/src/utils/cargo.mjs +1 -1
- package/dist/src/utils/create-cli-options.mjs +1 -1
- package/dist/src/utils/get-project-configurations.mjs +1 -1
- package/dist/src/utils/index.js +4 -4
- package/dist/src/utils/index.mjs +4 -4
- package/dist/src/utils/lock-file.mjs +1 -1
- package/dist/src/utils/package-helpers.js +4 -4
- package/dist/src/utils/package-helpers.mjs +4 -4
- package/dist/src/utils/plugin-helpers.mjs +1 -1
- package/dist/src/utils/pnpm-deps-update.mjs +1 -1
- package/dist/src/utils/project-tags.mjs +1 -1
- package/dist/src/utils/typia-transform.mjs +1 -1
- package/dist/src/utils/versions.mjs +1 -1
- package/package.json +9 -9
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUXALGSQCjs = require('./chunk-UXALGSQC.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkBDA4N25Ejs = require('./chunk-BDA4N25E.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ var _chunkO4RSZYADjs = require('./chunk-O4RSZYAD.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkBP22TRDIjs = require('./chunk-BP22TRDI.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -255,19 +255,19 @@ var _versionlegacy = require('nx/src/command-line/release/version-legacy');
|
|
|
255
255
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
256
256
|
var _semver3 = require('semver');
|
|
257
257
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
258
|
-
|
|
258
|
+
_chunkBP22TRDIjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
259
259
|
|
|
260
260
|
`, config);
|
|
261
|
-
const stopwatch =
|
|
261
|
+
const stopwatch = _chunkBP22TRDIjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
262
262
|
try {
|
|
263
263
|
const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
|
|
264
|
-
|
|
264
|
+
_chunkBP22TRDIjs.writeDebug.call(void 0,
|
|
265
265
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
266
266
|
- workspaceRoot: ${workspaceRoot}`,
|
|
267
267
|
config
|
|
268
268
|
);
|
|
269
|
-
config = await
|
|
270
|
-
|
|
269
|
+
config = await _chunkBDA4N25Ejs.getConfig.call(void 0, workspaceRoot);
|
|
270
|
+
_chunkBP22TRDIjs.writeTrace.call(void 0,
|
|
271
271
|
`Generator schema options \u2699\uFE0F
|
|
272
272
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).filter(
|
|
273
273
|
(key) => ![
|
|
@@ -348,9 +348,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
348
348
|
tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath
|
|
349
349
|
);
|
|
350
350
|
const log = (msg) => {
|
|
351
|
-
|
|
351
|
+
_chunkBP22TRDIjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
352
352
|
};
|
|
353
|
-
|
|
353
|
+
_chunkBP22TRDIjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
354
354
|
let packageName;
|
|
355
355
|
let currentVersionFromDisk;
|
|
356
356
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -361,7 +361,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
361
361
|
packageName = projectPackageJson.name;
|
|
362
362
|
currentVersionFromDisk = projectPackageJson.version;
|
|
363
363
|
} else if (tree.exists(cargoTomlPath)) {
|
|
364
|
-
const cargoToml =
|
|
364
|
+
const cargoToml = _chunkUXALGSQCjs.parseCargoToml.call(void 0,
|
|
365
365
|
_optionalChain([tree, 'access', _10 => _10.read, 'call', _11 => _11(cargoTomlPath), 'optionalAccess', _12 => _12.toString, 'call', _13 => _13("utf-8")])
|
|
366
366
|
);
|
|
367
367
|
log(
|
|
@@ -468,6 +468,10 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
468
468
|
releaseTagPattern,
|
|
469
469
|
{
|
|
470
470
|
projectName: project.name
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
releaseTagPatternRequireSemver: false,
|
|
474
|
+
releaseTagPatternStrictPreid: false
|
|
471
475
|
}
|
|
472
476
|
);
|
|
473
477
|
if (!latestMatchingGitTag) {
|
|
@@ -632,12 +636,12 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
632
636
|
version: newVersion
|
|
633
637
|
});
|
|
634
638
|
} else if (tree.exists(cargoTomlPath)) {
|
|
635
|
-
const cargoToml =
|
|
639
|
+
const cargoToml = _chunkUXALGSQCjs.parseCargoToml.call(void 0,
|
|
636
640
|
_optionalChain([tree, 'access', _23 => _23.read, 'call', _24 => _24(cargoTomlPath), 'optionalAccess', _25 => _25.toString, 'call', _26 => _26("utf-8")])
|
|
637
641
|
);
|
|
638
642
|
cargoToml.package ??= {};
|
|
639
643
|
cargoToml.package.version = newVersion;
|
|
640
|
-
tree.write(cargoTomlPath,
|
|
644
|
+
tree.write(cargoTomlPath, _chunkUXALGSQCjs.stringifyCargoToml.call(void 0, cargoToml));
|
|
641
645
|
}
|
|
642
646
|
log(
|
|
643
647
|
`\u270D\uFE0F New version ${newVersion} written to ${workspaceRelativePackagePath}`
|
|
@@ -685,7 +689,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
685
689
|
return json;
|
|
686
690
|
});
|
|
687
691
|
} else if (tree.exists(dependentCargoTomlPath)) {
|
|
688
|
-
const dependentPkg =
|
|
692
|
+
const dependentPkg = _chunkUXALGSQCjs.parseCargoTomlWithTree.call(void 0,
|
|
689
693
|
tree,
|
|
690
694
|
dependentPackageRoot,
|
|
691
695
|
dependentProject.source
|
|
@@ -727,18 +731,18 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
727
731
|
dependentPackageRoot,
|
|
728
732
|
"Cargo.toml"
|
|
729
733
|
);
|
|
730
|
-
|
|
734
|
+
_chunkUXALGSQCjs.modifyCargoTable.call(void 0,
|
|
731
735
|
dependentPkg,
|
|
732
736
|
dependentProject.dependencyCollection,
|
|
733
737
|
dependentProject.target,
|
|
734
738
|
updatedDependencyData
|
|
735
739
|
);
|
|
736
|
-
tree.write(cargoTomlToUpdate,
|
|
740
|
+
tree.write(cargoTomlToUpdate, _chunkUXALGSQCjs.stringifyCargoToml.call(void 0, dependentPkg));
|
|
737
741
|
}
|
|
738
742
|
}
|
|
739
743
|
}
|
|
740
744
|
await _devkit.formatFiles.call(void 0, tree);
|
|
741
|
-
|
|
745
|
+
_chunkBP22TRDIjs.writeSuccess.call(void 0,
|
|
742
746
|
`Completed running the Storm Release Version generator!
|
|
743
747
|
`,
|
|
744
748
|
config
|
|
@@ -777,11 +781,11 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
777
781
|
}
|
|
778
782
|
};
|
|
779
783
|
} catch (error) {
|
|
780
|
-
|
|
784
|
+
_chunkBP22TRDIjs.writeFatal.call(void 0,
|
|
781
785
|
"A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate",
|
|
782
786
|
config
|
|
783
787
|
);
|
|
784
|
-
|
|
788
|
+
_chunkBP22TRDIjs.writeError.call(void 0,
|
|
785
789
|
`An exception was thrown in the Storm Release Version generator's process
|
|
786
790
|
- Details: ${error.message}
|
|
787
791
|
- Stacktrace: ${error.stack}`,
|
|
@@ -880,7 +884,7 @@ function resolveLocalPackageCargoDependencies(tree, projectGraph, filteredProjec
|
|
|
880
884
|
`The project "${dep.target}" does not have a packageRoot available.`
|
|
881
885
|
);
|
|
882
886
|
}
|
|
883
|
-
const cargoToml =
|
|
887
|
+
const cargoToml = _chunkUXALGSQCjs.parseCargoTomlWithTree.call(void 0,
|
|
884
888
|
tree,
|
|
885
889
|
resolvePackageRoot(projectNode),
|
|
886
890
|
projectNode.name
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
parseCargoToml,
|
|
4
4
|
parseCargoTomlWithTree,
|
|
5
5
|
stringifyCargoToml
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EUWPFP5C.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PG7GBHUM.mjs";
|
|
10
10
|
import {
|
|
11
11
|
getStopwatch,
|
|
12
12
|
writeDebug,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
writeInfo,
|
|
16
16
|
writeSuccess,
|
|
17
17
|
writeTrace
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SW2AFRXA.mjs";
|
|
19
19
|
import {
|
|
20
20
|
findWorkspaceRoot
|
|
21
21
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -468,6 +468,10 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
468
468
|
releaseTagPattern,
|
|
469
469
|
{
|
|
470
470
|
projectName: project.name
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
releaseTagPatternRequireSemver: false,
|
|
474
|
+
releaseTagPatternStrictPreid: false
|
|
471
475
|
}
|
|
472
476
|
);
|
|
473
477
|
if (!latestMatchingGitTag) {
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6XYAQUU3js = require('./chunk-6XYAQUU3.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-clippy/executor.ts
|
|
10
10
|
async function cargoClippyExecutor(options, context) {
|
|
11
11
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "clippy", options, context);
|
|
12
12
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunk6XYAQUU3js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Clippy",
|
|
16
16
|
cargoClippyExecutor,
|
|
17
17
|
{
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-X6PHOMFB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PG7GBHUM.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-SW2AFRXA.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
19
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V5564COA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SW2AFRXA.mjs";
|
|
7
7
|
|
|
8
8
|
// src/executors/typia/executor.ts
|
|
9
9
|
import { removeSync } from "fs-extra";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBDA4N25Ejs = require('./chunk-BDA4N25E.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ var _chunkO4RSZYADjs = require('./chunk-O4RSZYAD.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkBP22TRDIjs = require('./chunk-BP22TRDI.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -22,30 +22,30 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
|
22
22
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
23
23
|
skipReadingConfig: false
|
|
24
24
|
}) => async (tree, _options) => {
|
|
25
|
-
const stopwatch =
|
|
25
|
+
const stopwatch = _chunkBP22TRDIjs.getStopwatch.call(void 0, name);
|
|
26
26
|
let options = _options;
|
|
27
27
|
let config;
|
|
28
28
|
try {
|
|
29
|
-
|
|
29
|
+
_chunkBP22TRDIjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
30
30
|
|
|
31
31
|
`, config);
|
|
32
32
|
const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
|
|
33
33
|
if (!generatorOptions.skipReadingConfig) {
|
|
34
|
-
|
|
34
|
+
_chunkBP22TRDIjs.writeDebug.call(void 0,
|
|
35
35
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
36
36
|
- workspaceRoot: ${workspaceRoot}`,
|
|
37
37
|
config
|
|
38
38
|
);
|
|
39
|
-
config = await
|
|
39
|
+
config = await _chunkBDA4N25Ejs.getConfig.call(void 0, workspaceRoot);
|
|
40
40
|
}
|
|
41
41
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
42
|
-
|
|
42
|
+
_chunkBP22TRDIjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
43
43
|
options = await Promise.resolve(
|
|
44
44
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
45
45
|
);
|
|
46
|
-
|
|
46
|
+
_chunkBP22TRDIjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
_chunkBP22TRDIjs.writeTrace.call(void 0,
|
|
49
49
|
`Generator schema options \u2699\uFE0F
|
|
50
50
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
51
51
|
config
|
|
@@ -56,11 +56,11 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
56
56
|
_chunkJ2Z4WP3Ejs.applyWorkspaceBaseTokens
|
|
57
57
|
);
|
|
58
58
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
59
|
-
|
|
59
|
+
_chunkBP22TRDIjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
60
60
|
await Promise.resolve(
|
|
61
61
|
generatorOptions.hooks.preProcess(tokenized, config)
|
|
62
62
|
);
|
|
63
|
-
|
|
63
|
+
_chunkBP22TRDIjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
64
64
|
}
|
|
65
65
|
const result = await Promise.resolve(
|
|
66
66
|
generatorFn(tree, tokenized, config)
|
|
@@ -75,21 +75,21 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
if (_optionalChain([generatorOptions, 'optionalAccess', _14 => _14.hooks, 'optionalAccess', _15 => _15.postProcess])) {
|
|
78
|
-
|
|
78
|
+
_chunkBP22TRDIjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
79
79
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
80
|
-
|
|
80
|
+
_chunkBP22TRDIjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
81
81
|
}
|
|
82
82
|
return () => {
|
|
83
|
-
|
|
83
|
+
_chunkBP22TRDIjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
84
84
|
`, config);
|
|
85
85
|
};
|
|
86
86
|
} catch (error) {
|
|
87
87
|
return () => {
|
|
88
|
-
|
|
88
|
+
_chunkBP22TRDIjs.writeFatal.call(void 0,
|
|
89
89
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
90
90
|
config
|
|
91
91
|
);
|
|
92
|
-
|
|
92
|
+
_chunkBP22TRDIjs.writeError.call(void 0,
|
|
93
93
|
`An exception was thrown in the generator's process
|
|
94
94
|
- Details: ${error.message}
|
|
95
95
|
- Stacktrace: ${error.stack}`,
|
|
@@ -7,7 +7,7 @@ var _chunkGYLUTELWjs = require('./chunk-GYLUTELW.js');
|
|
|
7
7
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkQEU3B4T6js = require('./chunk-QEU3B4T6.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.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 = _chunkQEU3B4T6js.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}); 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 _chunk6XYAQUU3js = require('./chunk-6XYAQUU3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBP22TRDIjs = require('./chunk-BP22TRDI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
@@ -12,7 +12,7 @@ var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
|
12
12
|
var _defu = require('defu');
|
|
13
13
|
var _jiti = require('jiti');
|
|
14
14
|
async function unbuildExecutorFn(options, context, config) {
|
|
15
|
-
|
|
15
|
+
_chunkBP22TRDIjs.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 = _chunk6XYAQUU3js.withRunExecutor.call(void 0,
|
|
84
84
|
"TypeScript Unbuild build",
|
|
85
85
|
unbuildExecutorFn,
|
|
86
86
|
{
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6XYAQUU3js = require('./chunk-6XYAQUU3.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-format/executor.ts
|
|
10
10
|
async function cargoFormatExecutor(options, context) {
|
|
11
11
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "fmt", options, context);
|
|
12
12
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunk6XYAQUU3js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Format",
|
|
16
16
|
cargoFormatExecutor,
|
|
17
17
|
{
|
|
@@ -410,16 +410,20 @@ import chalk from "chalk";
|
|
|
410
410
|
var chalkDefault = {
|
|
411
411
|
hex: (_) => (message) => message,
|
|
412
412
|
bgHex: (_) => ({
|
|
413
|
-
whiteBright: (message) => message
|
|
413
|
+
whiteBright: (message) => message,
|
|
414
|
+
white: (message) => message
|
|
414
415
|
}),
|
|
416
|
+
white: (message) => message,
|
|
415
417
|
whiteBright: (message) => message,
|
|
416
418
|
gray: (message) => message,
|
|
417
419
|
bold: {
|
|
418
420
|
hex: (_) => (message) => message,
|
|
419
421
|
bgHex: (_) => ({
|
|
420
|
-
whiteBright: (message) => message
|
|
422
|
+
whiteBright: (message) => message,
|
|
423
|
+
white: (message) => message
|
|
421
424
|
}),
|
|
422
|
-
whiteBright: (message) => message
|
|
425
|
+
whiteBright: (message) => message,
|
|
426
|
+
white: (message) => message
|
|
423
427
|
},
|
|
424
428
|
dim: {
|
|
425
429
|
hex: (_) => (message) => message,
|
|
@@ -428,7 +432,7 @@ var chalkDefault = {
|
|
|
428
432
|
};
|
|
429
433
|
var getChalk = () => {
|
|
430
434
|
let _chalk = chalk;
|
|
431
|
-
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
435
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) {
|
|
432
436
|
_chalk = chalkDefault;
|
|
433
437
|
}
|
|
434
438
|
return _chalk;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkGYLUTELWjs = require('./chunk-GYLUTELW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQEU3B4T6js = require('./chunk-QEU3B4T6.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.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 = _chunkQEU3B4T6js.withRunGenerator.call(void 0,
|
|
58
58
|
"TypeScript Library Creator (Neutral Platform)",
|
|
59
59
|
neutralLibraryGeneratorFn,
|
|
60
60
|
{
|
|
@@ -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 _chunkBP22TRDIjs = require('./chunk-BP22TRDI.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
|
+
_chunkBP22TRDIjs.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);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkGYLUTELWjs = require('./chunk-GYLUTELW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQEU3B4T6js = require('./chunk-QEU3B4T6.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
@@ -82,7 +82,7 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
82
82
|
await _devkit.formatFiles.call(void 0, tree);
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
85
|
-
var generator_default =
|
|
85
|
+
var generator_default = _chunkQEU3B4T6js.withRunGenerator.call(void 0,
|
|
86
86
|
"TypeScript Library Creator (Browser Platform)",
|
|
87
87
|
browserLibraryGeneratorFn,
|
|
88
88
|
{
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-X6PHOMFB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PG7GBHUM.mjs";
|
|
8
8
|
import {
|
|
9
9
|
formatLogMessage,
|
|
10
10
|
getStopwatch,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
writeInfo,
|
|
15
15
|
writeSuccess,
|
|
16
16
|
writeTrace
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SW2AFRXA.mjs";
|
|
18
18
|
import {
|
|
19
19
|
findWorkspaceRoot
|
|
20
20
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUXALGSQCjs = require('./chunk-UXALGSQC.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ var getPackageInfo = (project) => {
|
|
|
31
31
|
) && _fs.existsSync.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))) {
|
|
32
32
|
return {
|
|
33
33
|
type: "Cargo.toml",
|
|
34
|
-
content:
|
|
34
|
+
content: _chunkUXALGSQCjs.parseCargoToml.call(void 0, _devkit.joinPathFragments.call(void 0, project.root, "Cargo.toml"))
|
|
35
35
|
};
|
|
36
36
|
} else if (_chunkAX3RSZT7js.isEqualProjectTag.call(void 0,
|
|
37
37
|
project,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-EK75QNMS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PGIUP33N.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__dirname
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5EK4H7VB.mjs";
|
|
11
11
|
|
|
12
12
|
// src/generators/preset/generator.ts
|
|
13
13
|
import {
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6XYAQUU3js = require('./chunk-6XYAQUU3.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-check/executor.ts
|
|
10
10
|
async function cargoCheckExecutor(options, context) {
|
|
11
11
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "check", options, context);
|
|
12
12
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunk6XYAQUU3js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Check",
|
|
16
16
|
cargoCheckExecutor,
|
|
17
17
|
{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PGIUP33N.mjs";
|
|
4
4
|
import {
|
|
5
5
|
stormWorkspaceConfigSchema,
|
|
6
6
|
writeInfo,
|
|
7
7
|
writeSuccess,
|
|
8
8
|
writeTrace
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SW2AFRXA.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findWorkspaceRoot
|
|
12
12
|
} from "./chunk-LSF4BHCI.mjs";
|