@storm-software/workspace-tools 1.267.19 → 1.267.21
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 +24 -0
- package/README.md +1 -1
- package/dist/chunk-22UY7NFX.js +41 -0
- package/dist/chunk-23BZQTB2.mjs +425 -0
- package/dist/{chunk-7O34DHUG.js → chunk-2AVWFUXP.js} +4 -19
- package/dist/{chunk-VW3PZOJ4.mjs → chunk-2M22JVJQ.mjs} +307 -192
- package/dist/{chunk-5RJOBRYL.mjs → chunk-3EDSGFA5.mjs} +63 -54
- package/dist/chunk-3RG5ZIWI.js +10 -0
- package/dist/{chunk-AC5SI4YZ.js → chunk-3TYXXJKV.js} +11 -8
- package/dist/{chunk-QSB5SLZS.mjs → chunk-3ZBMLG4D.mjs} +17 -14
- package/dist/chunk-437WGH2M.mjs +32 -0
- package/dist/{chunk-ULBTYC2B.js → chunk-4BECJRPP.js} +13 -42
- package/dist/chunk-4QRA66TH.mjs +379 -0
- package/dist/chunk-4S66IYQF.mjs +31 -0
- package/dist/{chunk-4JOIS7WW.js → chunk-4WHSR4FK.js} +24 -14
- package/dist/{chunk-JTAXCQX6.js → chunk-53DNHF7B.js} +7 -13
- package/dist/{chunk-GGGO542M.js → chunk-54FVHKCU.js} +36 -24
- package/dist/{chunk-B67R3JAF.mjs → chunk-5HUW3BTP.mjs} +37 -21
- package/dist/{chunk-GWYZDAH6.mjs → chunk-5LB2F3L4.mjs} +80 -65
- package/dist/{chunk-UF6KFXG5.js → chunk-5VY5IBBQ.js} +20 -17
- package/dist/{chunk-6QO3KMZA.js → chunk-5ZFTWEKB.js} +2 -16
- package/dist/chunk-6EMYX25V.js +7 -0
- package/dist/chunk-6QZSAZZ3.mjs +64 -0
- package/dist/{chunk-2JA7WAH7.mjs → chunk-7AN4JMFC.mjs} +2 -16
- package/dist/{chunk-N7XIQOHR.mjs → chunk-7HWV6U3E.mjs} +33 -18
- package/dist/{chunk-GKL4BY2Y.js → chunk-A5CKB6IJ.js} +7 -8
- package/dist/{chunk-Y5WKYMQB.mjs → chunk-ABE7UOMX.mjs} +24 -21
- package/dist/{chunk-L3WQZ3LY.mjs → chunk-AHLKRK7D.mjs} +33 -18
- package/dist/{chunk-6CGAYKQL.js → chunk-AJ3C2EDW.js} +69 -44
- package/dist/chunk-AMW7VHFM.mjs +52 -0
- package/dist/chunk-AOFWKOAI.js +31 -0
- package/dist/{chunk-7YRW5HNX.js → chunk-AX3RSZT7.js} +42 -31
- package/dist/chunk-BFD7HHVZ.mjs +32 -0
- package/dist/{chunk-ZMFVKBRM.js → chunk-BWGJVRAS.js} +2 -13
- package/dist/{chunk-M6NHJNGU.js → chunk-CWBHZBTN.js} +277 -169
- package/dist/{chunk-VGE6EHYW.mjs → chunk-EKWR7TBP.mjs} +36 -24
- package/dist/chunk-EU6N7QT3.js +32 -0
- package/dist/chunk-EYXDS7SG.js +105 -0
- package/dist/chunk-F66XEAID.mjs +113 -0
- package/dist/chunk-FOFNKU5G.js +379 -0
- package/dist/{chunk-7NNHBZC5.js → chunk-GNOIETZR.js} +28 -17
- package/dist/chunk-GQQLBQPQ.mjs +32 -0
- package/dist/{chunk-7PRHEOCT.js → chunk-H5NKKUPV.js} +31 -18
- package/dist/{chunk-5SVLMXLH.mjs → chunk-HMJTTE4A.mjs} +39 -30
- package/dist/{chunk-ZKMIASDR.mjs → chunk-HY3ZC5EZ.mjs} +10 -31
- package/dist/{chunk-OQPX75CG.js → chunk-I5MSPQMO.js} +31 -18
- package/dist/{chunk-L2DHGVS5.mjs → chunk-IEZKYJSF.mjs} +3 -6
- package/dist/{chunk-IWCQL3AQ.js → chunk-IL3R5ZVS.js} +10 -31
- package/dist/{chunk-P4OVFIT6.js → chunk-IZN2IVJ4.js} +19 -6
- package/dist/{chunk-UALZJZUK.js → chunk-J2Z4WP3E.js} +32 -16
- package/dist/{chunk-RBU35LQW.js → chunk-J4DYXH46.js} +70 -61
- package/dist/chunk-KP4RPOBI.mjs +105 -0
- package/dist/chunk-KR72GKIT.mjs +7 -0
- package/dist/chunk-L4NCVOB5.mjs +17 -0
- package/dist/{chunk-4Y6B6JDH.js → chunk-LBAVVYKU.js} +315 -136
- package/dist/{chunk-WMTEZ2PV.mjs → chunk-LSF4BHCI.mjs} +24 -14
- package/dist/chunk-M725BO42.mjs +32 -0
- package/dist/{chunk-7IAGL37F.mjs → chunk-MF6VZSIO.mjs} +30 -17
- package/dist/{chunk-7OOYI33U.mjs → chunk-MMBLGUC3.mjs} +311 -132
- package/dist/chunk-MZSZKV4N.mjs +47 -0
- package/dist/chunk-O6RRIC6I.js +32 -0
- package/dist/chunk-OKSECMVK.js +32 -0
- package/dist/chunk-Q2HYWACQ.mjs +50 -0
- package/dist/{chunk-62XRHQ44.mjs → chunk-QFWQZOVG.mjs} +14 -43
- package/dist/{chunk-DHGZTMND.js → chunk-QVYCDING.js} +4 -7
- package/dist/{chunk-Z4NKRWWJ.js → chunk-RJRBED5Q.js} +48 -32
- package/dist/chunk-S5Z4QGF3.js +64 -0
- package/dist/{chunk-CSHHIGIV.mjs → chunk-SITFTWPY.mjs} +23 -8
- package/dist/chunk-SNMXP6JV.mjs +41 -0
- package/dist/chunk-SPXJBMLY.js +50 -0
- package/dist/{chunk-7TLYMNLD.mjs → chunk-SW2E5MQJ.mjs} +4 -19
- package/dist/{chunk-OKW5O5P4.js → chunk-T7BALDKJ.js} +26 -22
- package/dist/chunk-TSYIV33W.js +32 -0
- package/dist/{chunk-H72YBOLR.mjs → chunk-U65XVJ4Y.mjs} +1 -12
- package/dist/{chunk-AVJVDD4L.mjs → chunk-U7JFVMCK.mjs} +6 -12
- package/dist/chunk-UIPUSUAB.js +425 -0
- package/dist/{chunk-LSG534D5.mjs → chunk-UYSJG2E5.mjs} +56 -31
- package/dist/{chunk-EHXSPF7W.mjs → chunk-VLOTOQYE.mjs} +11 -8
- package/dist/{chunk-EULJEPPD.mjs → chunk-W2C5IGWW.mjs} +3 -6
- package/dist/{chunk-G4QFSE5B.js → chunk-WE4HK4RN.js} +327 -212
- package/dist/{chunk-SUQKASD7.js → chunk-X2VJXJEF.js} +82 -67
- package/dist/{chunk-GY4AEA7P.mjs → chunk-X6PHOMFB.mjs} +32 -16
- package/dist/{chunk-PK2SUBWI.js → chunk-XZSS3YAB.js} +19 -16
- package/dist/chunk-YXBFVZ3K.js +47 -0
- package/dist/{chunk-CUPARBOS.js → chunk-ZP76EMBE.js} +41 -32
- package/dist/{chunk-HAXYCYZE.mjs → chunk-ZT4IIRQF.mjs} +254 -146
- package/dist/executors.js +21 -21
- package/dist/executors.mjs +20 -20
- package/dist/generators.js +17 -17
- package/dist/generators.mjs +18 -18
- package/dist/index.js +41 -41
- package/dist/index.mjs +42 -42
- package/dist/src/base/base-executor.js +7 -7
- package/dist/src/base/base-executor.mjs +6 -6
- package/dist/src/base/base-executor.untyped.js +1 -1
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.js +7 -7
- package/dist/src/base/base-generator.mjs +6 -6
- package/dist/src/base/base-generator.untyped.js +1 -1
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.js +3 -3
- package/dist/src/base/cargo-base-executor.untyped.mjs +2 -2
- package/dist/src/base/index.js +13 -13
- package/dist/src/base/index.mjs +12 -12
- package/dist/src/base/typescript-build-executor.untyped.js +3 -3
- package/dist/src/base/typescript-build-executor.untyped.mjs +2 -2
- package/dist/src/base/typescript-library-generator.untyped.js +3 -3
- package/dist/src/base/typescript-library-generator.untyped.mjs +2 -2
- package/dist/src/executors/cargo-build/executor.js +9 -9
- package/dist/src/executors/cargo-build/executor.mjs +8 -8
- package/dist/src/executors/cargo-build/untyped.js +3 -3
- package/dist/src/executors/cargo-build/untyped.mjs +2 -2
- package/dist/src/executors/cargo-check/executor.js +9 -9
- package/dist/src/executors/cargo-check/executor.mjs +8 -8
- package/dist/src/executors/cargo-check/untyped.js +3 -3
- package/dist/src/executors/cargo-check/untyped.mjs +2 -2
- package/dist/src/executors/cargo-clippy/executor.js +9 -9
- package/dist/src/executors/cargo-clippy/executor.mjs +8 -8
- package/dist/src/executors/cargo-clippy/untyped.js +3 -3
- package/dist/src/executors/cargo-clippy/untyped.mjs +2 -2
- package/dist/src/executors/cargo-doc/executor.js +9 -9
- package/dist/src/executors/cargo-doc/executor.mjs +8 -8
- package/dist/src/executors/cargo-doc/untyped.js +3 -3
- package/dist/src/executors/cargo-doc/untyped.mjs +2 -2
- package/dist/src/executors/cargo-format/executor.js +9 -9
- package/dist/src/executors/cargo-format/executor.mjs +8 -8
- package/dist/src/executors/cargo-format/untyped.js +3 -3
- package/dist/src/executors/cargo-format/untyped.mjs +2 -2
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/cargo-publish/untyped.js +3 -3
- package/dist/src/executors/cargo-publish/untyped.mjs +2 -2
- package/dist/src/executors/clean-package/executor.js +84 -62
- package/dist/src/executors/clean-package/executor.mjs +84 -62
- package/dist/src/executors/clean-package/untyped.js +2 -4
- package/dist/src/executors/clean-package/untyped.mjs +2 -4
- package/dist/src/executors/esbuild/executor.js +8 -8
- package/dist/src/executors/esbuild/executor.mjs +7 -7
- package/dist/src/executors/esbuild/untyped.js +4 -8
- package/dist/src/executors/esbuild/untyped.mjs +3 -7
- package/dist/src/executors/npm-publish/executor.js +5 -5
- package/dist/src/executors/npm-publish/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/untyped.js +1 -1
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.js +8 -8
- package/dist/src/executors/size-limit/executor.mjs +7 -7
- package/dist/src/executors/size-limit/untyped.js +1 -1
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/typia/executor.js +8 -8
- package/dist/src/executors/typia/executor.mjs +7 -7
- package/dist/src/executors/typia/untyped.js +4 -12
- package/dist/src/executors/typia/untyped.mjs +4 -12
- package/dist/src/executors/unbuild/executor.js +8 -8
- package/dist/src/executors/unbuild/executor.mjs +7 -7
- package/dist/src/executors/unbuild/untyped.js +6 -13
- package/dist/src/executors/unbuild/untyped.mjs +5 -12
- package/dist/src/generators/browser-library/generator.js +10 -10
- package/dist/src/generators/browser-library/generator.mjs +9 -9
- package/dist/src/generators/browser-library/untyped.js +5 -11
- package/dist/src/generators/browser-library/untyped.mjs +4 -10
- package/dist/src/generators/config-schema/generator.js +8 -8
- package/dist/src/generators/config-schema/generator.mjs +7 -7
- package/dist/src/generators/config-schema/untyped.js +1 -1
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +2 -2
- package/dist/src/generators/init/untyped.js +1 -1
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.js +10 -10
- package/dist/src/generators/neutral-library/generator.mjs +9 -9
- package/dist/src/generators/neutral-library/untyped.js +5 -10
- package/dist/src/generators/neutral-library/untyped.mjs +4 -9
- package/dist/src/generators/node-library/generator.js +10 -10
- package/dist/src/generators/node-library/generator.mjs +9 -9
- package/dist/src/generators/node-library/untyped.js +5 -11
- package/dist/src/generators/node-library/untyped.mjs +4 -10
- package/dist/src/generators/preset/generator.js +8 -8
- package/dist/src/generators/preset/generator.mjs +7 -7
- package/dist/src/generators/preset/untyped.js +3 -11
- package/dist/src/generators/preset/untyped.mjs +3 -11
- package/dist/src/generators/release-version/generator.js +7 -7
- package/dist/src/generators/release-version/generator.mjs +6 -6
- package/dist/src/generators/release-version/untyped.js +3 -14
- package/dist/src/generators/release-version/untyped.mjs +3 -14
- package/dist/src/plugins/rust/cargo-toml.js +5 -5
- package/dist/src/plugins/rust/cargo-toml.mjs +4 -4
- package/dist/src/plugins/rust/index.js +5 -5
- package/dist/src/plugins/rust/index.mjs +4 -4
- package/dist/src/plugins/typescript/index.js +5 -5
- package/dist/src/plugins/typescript/index.mjs +4 -4
- package/dist/src/plugins/typescript/project-config.js +5 -5
- package/dist/src/plugins/typescript/project-config.mjs +4 -4
- package/dist/src/plugins/typescript/tsup.js +114 -109
- package/dist/src/plugins/typescript/tsup.mjs +116 -111
- package/dist/src/plugins/typescript/untyped-schema.js +93 -77
- package/dist/src/plugins/typescript/untyped-schema.mjs +96 -80
- package/dist/src/types.js +1 -1
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.js +5 -5
- package/dist/src/utils/apply-workspace-tokens.mjs +4 -4
- package/dist/src/utils/cargo.js +3 -3
- package/dist/src/utils/cargo.mjs +2 -2
- package/dist/src/utils/create-cli-options.js +3 -3
- package/dist/src/utils/create-cli-options.mjs +2 -2
- package/dist/src/utils/get-project-configurations.js +5 -5
- package/dist/src/utils/get-project-configurations.mjs +4 -4
- package/dist/src/utils/index.js +15 -15
- package/dist/src/utils/index.mjs +14 -14
- package/dist/src/utils/lock-file.js +3 -3
- package/dist/src/utils/lock-file.mjs +2 -2
- package/dist/src/utils/package-helpers.js +5 -5
- package/dist/src/utils/package-helpers.mjs +4 -4
- package/dist/src/utils/plugin-helpers.js +4 -4
- package/dist/src/utils/plugin-helpers.mjs +3 -3
- package/dist/src/utils/pnpm-deps-update.js +4 -4
- package/dist/src/utils/pnpm-deps-update.mjs +3 -3
- package/dist/src/utils/project-tags.js +3 -3
- package/dist/src/utils/project-tags.mjs +2 -2
- package/dist/src/utils/toml.js +3 -3
- package/dist/src/utils/toml.mjs +2 -2
- package/dist/src/utils/typia-transform.js +3 -3
- package/dist/src/utils/typia-transform.mjs +2 -2
- package/dist/src/utils/versions.js +1 -1
- package/dist/src/utils/versions.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-3GQAWCBQ.js +0 -13
- package/dist/chunk-3IZ3O4OK.js +0 -30
- package/dist/chunk-6JJB5AYA.js +0 -51
- package/dist/chunk-6JTXR7YX.mjs +0 -18
- package/dist/chunk-6RHWGD7G.mjs +0 -48
- package/dist/chunk-7AXFMX2T.js +0 -37
- package/dist/chunk-A77TLQ44.mjs +0 -32
- package/dist/chunk-B3DVFXXD.js +0 -32
- package/dist/chunk-BC7L3S46.mjs +0 -51
- package/dist/chunk-BNMJYJOZ.mjs +0 -446
- package/dist/chunk-CUWWZLK7.mjs +0 -37
- package/dist/chunk-HOXPAVCL.js +0 -32
- package/dist/chunk-ICPUM2HS.js +0 -50
- package/dist/chunk-JJ4PSTY4.mjs +0 -32
- package/dist/chunk-JMCJJNBJ.mjs +0 -102
- package/dist/chunk-KEBNU3P2.js +0 -446
- package/dist/chunk-KTRA4YQT.mjs +0 -32
- package/dist/chunk-M2VZ44W7.mjs +0 -13
- package/dist/chunk-NG7BO4BF.mjs +0 -468
- package/dist/chunk-NSCWEC2S.js +0 -32
- package/dist/chunk-OQTJDGUH.js +0 -468
- package/dist/chunk-ORWCIVMB.mjs +0 -30
- package/dist/chunk-RUKOOSWL.js +0 -31
- package/dist/chunk-T6VIUVAL.mjs +0 -43
- package/dist/chunk-TET4GF3D.js +0 -43
- package/dist/chunk-XITP2BX2.js +0 -13
- package/dist/chunk-YMGMEPP5.mjs +0 -86
- package/dist/chunk-YW4UN25U.js +0 -86
- package/dist/chunk-ZJZOACSR.mjs +0 -31
- package/dist/chunk-ZTVHEV5N.mjs +0 -50
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3EDSGFA5.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5HUW3BTP.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-U7JFVMCK.mjs";
|
|
11
11
|
import {
|
|
12
|
-
__dirname
|
|
13
|
-
|
|
14
|
-
} from "./chunk-L2DHGVS5.mjs";
|
|
12
|
+
__dirname
|
|
13
|
+
} from "./chunk-IEZKYJSF.mjs";
|
|
15
14
|
|
|
16
15
|
// src/generators/browser-library/generator.ts
|
|
17
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
formatFiles,
|
|
18
|
+
generateFiles,
|
|
19
|
+
names,
|
|
20
|
+
offsetFromRoot
|
|
21
|
+
} from "@nx/devkit";
|
|
18
22
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
19
|
-
const filesDir = joinPaths(
|
|
23
|
+
const filesDir = joinPaths(
|
|
24
|
+
__dirname,
|
|
25
|
+
"src",
|
|
26
|
+
"generators",
|
|
27
|
+
"browser-library",
|
|
28
|
+
"files"
|
|
29
|
+
);
|
|
20
30
|
const tsLibraryGeneratorOptions = {
|
|
21
31
|
buildExecutor: "@storm-software/workspace-tools:unbuild",
|
|
22
32
|
platform: "browser",
|
|
@@ -42,7 +52,9 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
42
52
|
directory: schema.directory
|
|
43
53
|
};
|
|
44
54
|
const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
|
|
45
|
-
const { className, name, propertyName } = names(
|
|
55
|
+
const { className, name, propertyName } = names(
|
|
56
|
+
options.projectNames.projectFileName
|
|
57
|
+
);
|
|
46
58
|
generateFiles(tree, filesDir, options.projectRoot, {
|
|
47
59
|
...schema,
|
|
48
60
|
dot: ".",
|
|
@@ -73,16 +85,19 @@ async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
|
73
85
|
await formatFiles(tree);
|
|
74
86
|
return null;
|
|
75
87
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
options
|
|
82
|
-
|
|
83
|
-
|
|
88
|
+
var generator_default = withRunGenerator(
|
|
89
|
+
"TypeScript Library Creator (Browser Platform)",
|
|
90
|
+
browserLibraryGeneratorFn,
|
|
91
|
+
{
|
|
92
|
+
hooks: {
|
|
93
|
+
applyDefaultOptions: (options) => {
|
|
94
|
+
options.description ??= "A library used by Storm Software to support browser applications";
|
|
95
|
+
options.platform ??= "browser";
|
|
96
|
+
return options;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
84
99
|
}
|
|
85
|
-
|
|
100
|
+
);
|
|
86
101
|
|
|
87
102
|
export {
|
|
88
103
|
browserLibraryGeneratorFn,
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
3
|
+
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
7
4
|
|
|
8
5
|
// src/utils/get-project-configurations.ts
|
|
9
6
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
10
|
-
var getProjectConfigurations =
|
|
11
|
-
return _retrieveworkspacefiles.retrieveProjectConfigurationsWithoutPluginInference.call(void 0,
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
var getProjectConfigurations = async () => {
|
|
8
|
+
return _retrieveworkspacefiles.retrieveProjectConfigurationsWithoutPluginInference.call(void 0,
|
|
9
|
+
_chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, )
|
|
10
|
+
);
|
|
11
|
+
};
|
|
12
|
+
var getProjectConfiguration = (projectName) => _optionalChain([getProjectConfigurations, 'call', _ => _(), 'optionalAccess', _2 => _2[projectName]]);
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
|
|
@@ -1,29 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__name
|
|
3
|
-
} from "./chunk-L2DHGVS5.mjs";
|
|
4
|
-
|
|
5
1
|
// src/utils/lock-file.ts
|
|
6
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
output,
|
|
4
|
+
readJsonFile,
|
|
5
|
+
workspaceRoot
|
|
6
|
+
} from "@nx/devkit";
|
|
7
7
|
import { existsSync } from "node:fs";
|
|
8
8
|
import { join } from "node:path";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
import {
|
|
10
|
+
getNpmLockfileDependencies,
|
|
11
|
+
getNpmLockfileNodes
|
|
12
|
+
} from "nx/src/plugins/js/lock-file/npm-parser";
|
|
13
|
+
import {
|
|
14
|
+
getPnpmLockfileDependencies,
|
|
15
|
+
getPnpmLockfileNodes
|
|
16
|
+
} from "nx/src/plugins/js/lock-file/pnpm-parser";
|
|
17
|
+
import {
|
|
18
|
+
getYarnLockfileDependencies,
|
|
19
|
+
getYarnLockfileNodes
|
|
20
|
+
} from "nx/src/plugins/js/lock-file/yarn-parser";
|
|
12
21
|
var YARN_LOCK_FILE = "yarn.lock";
|
|
13
22
|
var NPM_LOCK_FILE = "package-lock.json";
|
|
14
23
|
var PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
15
|
-
var LOCK_FILES = [
|
|
16
|
-
YARN_LOCK_FILE,
|
|
17
|
-
NPM_LOCK_FILE,
|
|
18
|
-
PNPM_LOCK_FILE
|
|
19
|
-
];
|
|
24
|
+
var LOCK_FILES = [YARN_LOCK_FILE, NPM_LOCK_FILE, PNPM_LOCK_FILE];
|
|
20
25
|
var YARN_LOCK_PATH = join(workspaceRoot, YARN_LOCK_FILE);
|
|
21
26
|
var NPM_LOCK_PATH = join(workspaceRoot, NPM_LOCK_FILE);
|
|
22
27
|
var PNPM_LOCK_PATH = join(workspaceRoot, PNPM_LOCK_FILE);
|
|
23
28
|
function getLockFileNodes(packageManager, contents, lockFileHash, context) {
|
|
24
29
|
try {
|
|
25
30
|
if (packageManager === "yarn") {
|
|
26
|
-
const packageJson = readJsonFile(
|
|
31
|
+
const packageJson = readJsonFile(
|
|
32
|
+
join(context.workspaceRoot, "package.json")
|
|
33
|
+
);
|
|
27
34
|
return getYarnLockfileNodes(contents, lockFileHash, packageJson);
|
|
28
35
|
}
|
|
29
36
|
if (packageManager === "pnpm") {
|
|
@@ -43,7 +50,6 @@ function getLockFileNodes(packageManager, contents, lockFileHash, context) {
|
|
|
43
50
|
}
|
|
44
51
|
throw new Error(`Unknown package manager: ${packageManager}`);
|
|
45
52
|
}
|
|
46
|
-
__name(getLockFileNodes, "getLockFileNodes");
|
|
47
53
|
function getLockFileDependencies(packageManager, contents, lockFileHash, context) {
|
|
48
54
|
try {
|
|
49
55
|
if (packageManager === "yarn") {
|
|
@@ -66,7 +72,6 @@ function getLockFileDependencies(packageManager, contents, lockFileHash, context
|
|
|
66
72
|
}
|
|
67
73
|
throw new Error(`Unknown package manager: ${packageManager}`);
|
|
68
74
|
}
|
|
69
|
-
__name(getLockFileDependencies, "getLockFileDependencies");
|
|
70
75
|
function lockFileExists(packageManager) {
|
|
71
76
|
if (packageManager === "yarn") {
|
|
72
77
|
return existsSync(YARN_LOCK_PATH);
|
|
@@ -77,9 +82,10 @@ function lockFileExists(packageManager) {
|
|
|
77
82
|
if (packageManager === "npm") {
|
|
78
83
|
return existsSync(NPM_LOCK_PATH);
|
|
79
84
|
}
|
|
80
|
-
throw new Error(
|
|
85
|
+
throw new Error(
|
|
86
|
+
`Unknown package manager ${packageManager} or lock file missing`
|
|
87
|
+
);
|
|
81
88
|
}
|
|
82
|
-
__name(lockFileExists, "lockFileExists");
|
|
83
89
|
function getLockFileName(packageManager) {
|
|
84
90
|
if (packageManager === "yarn") {
|
|
85
91
|
return YARN_LOCK_FILE;
|
|
@@ -92,7 +98,6 @@ function getLockFileName(packageManager) {
|
|
|
92
98
|
}
|
|
93
99
|
throw new Error(`Unknown package manager: ${packageManager}`);
|
|
94
100
|
}
|
|
95
|
-
__name(getLockFileName, "getLockFileName");
|
|
96
101
|
function errorBodyLines(originalError, additionalInfo = []) {
|
|
97
102
|
const result = [
|
|
98
103
|
"Please open an issue at `https://github.com/storm-software/storm-ops/issues/new?template=1-bug.yml` and provide a reproduction.",
|
|
@@ -109,11 +114,9 @@ Original error: ${originalError.message}
|
|
|
109
114
|
}
|
|
110
115
|
return result;
|
|
111
116
|
}
|
|
112
|
-
__name(errorBodyLines, "errorBodyLines");
|
|
113
117
|
function isPostInstallProcess() {
|
|
114
118
|
return process.env.npm_command === "install" && process.env.npm_lifecycle_event === "postinstall";
|
|
115
119
|
}
|
|
116
|
-
__name(isPostInstallProcess, "isPostInstallProcess");
|
|
117
120
|
|
|
118
121
|
export {
|
|
119
122
|
YARN_LOCK_FILE,
|
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3EDSGFA5.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5HUW3BTP.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-U7JFVMCK.mjs";
|
|
11
11
|
import {
|
|
12
|
-
__dirname
|
|
13
|
-
|
|
14
|
-
} from "./chunk-L2DHGVS5.mjs";
|
|
12
|
+
__dirname
|
|
13
|
+
} from "./chunk-IEZKYJSF.mjs";
|
|
15
14
|
|
|
16
15
|
// src/generators/neutral-library/generator.ts
|
|
17
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
formatFiles,
|
|
18
|
+
generateFiles,
|
|
19
|
+
names,
|
|
20
|
+
offsetFromRoot
|
|
21
|
+
} from "@nx/devkit";
|
|
18
22
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
19
|
-
const filesDir = joinPaths(
|
|
23
|
+
const filesDir = joinPaths(
|
|
24
|
+
__dirname,
|
|
25
|
+
"src",
|
|
26
|
+
"generators",
|
|
27
|
+
"neutral-library",
|
|
28
|
+
"files"
|
|
29
|
+
);
|
|
20
30
|
const tsLibraryGeneratorOptions = {
|
|
21
31
|
...schema,
|
|
22
32
|
platform: "neutral",
|
|
@@ -24,7 +34,9 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
24
34
|
buildExecutor: "@storm-software/workspace-tools:unbuild"
|
|
25
35
|
};
|
|
26
36
|
const options = await normalizeOptions(tree, tsLibraryGeneratorOptions);
|
|
27
|
-
const { className, name, propertyName } = names(
|
|
37
|
+
const { className, name, propertyName } = names(
|
|
38
|
+
options.projectNames.projectFileName
|
|
39
|
+
);
|
|
28
40
|
generateFiles(tree, filesDir, options.projectRoot, {
|
|
29
41
|
...schema,
|
|
30
42
|
dot: ".",
|
|
@@ -45,16 +57,19 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
45
57
|
await formatFiles(tree);
|
|
46
58
|
return null;
|
|
47
59
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
options
|
|
54
|
-
|
|
55
|
-
|
|
60
|
+
var generator_default = withRunGenerator(
|
|
61
|
+
"TypeScript Library Creator (Neutral Platform)",
|
|
62
|
+
neutralLibraryGeneratorFn,
|
|
63
|
+
{
|
|
64
|
+
hooks: {
|
|
65
|
+
applyDefaultOptions: (options) => {
|
|
66
|
+
options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
|
|
67
|
+
options.platform = "neutral";
|
|
68
|
+
return options;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
56
71
|
}
|
|
57
|
-
|
|
72
|
+
);
|
|
58
73
|
|
|
59
74
|
export {
|
|
60
75
|
neutralLibraryGeneratorFn,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,61 +12,75 @@ var _chunkUALZJZUKjs = require('./chunk-UALZJZUK.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkWE4HK4RNjs = require('./chunk-WE4HK4RN.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
18
|
+
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
22
19
|
|
|
23
20
|
// src/base/base-executor.ts
|
|
24
21
|
var _defu = require('defu');
|
|
25
|
-
var withRunExecutor =
|
|
26
|
-
const stopwatch =
|
|
22
|
+
var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
23
|
+
const stopwatch = _chunkWE4HK4RNjs.getStopwatch.call(void 0, name);
|
|
27
24
|
let options = _options;
|
|
28
25
|
let config = {};
|
|
29
26
|
try {
|
|
30
27
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
31
|
-
throw new Error(
|
|
28
|
+
throw new Error(
|
|
29
|
+
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
30
|
+
);
|
|
32
31
|
}
|
|
33
|
-
const workspaceRoot =
|
|
32
|
+
const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
|
|
34
33
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot;
|
|
35
34
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
36
35
|
const projectName = context.projectName;
|
|
37
36
|
config.workspaceRoot = workspaceRoot;
|
|
38
|
-
|
|
37
|
+
_chunkWE4HK4RNjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
39
38
|
if (!executorOptions.skipReadingConfig) {
|
|
40
|
-
|
|
39
|
+
_chunkWE4HK4RNjs.writeTrace.call(void 0,
|
|
40
|
+
`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
|
-
`,
|
|
46
|
-
|
|
45
|
+
`,
|
|
46
|
+
config
|
|
47
|
+
);
|
|
48
|
+
config = await _chunkWE4HK4RNjs.getConfig.call(void 0, workspaceRoot);
|
|
47
49
|
}
|
|
48
50
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
49
|
-
|
|
50
|
-
options = await Promise.resolve(
|
|
51
|
-
|
|
51
|
+
_chunkWE4HK4RNjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
52
|
+
options = await Promise.resolve(
|
|
53
|
+
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
54
|
+
);
|
|
55
|
+
_chunkWE4HK4RNjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
52
56
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
workspaceRoot,
|
|
58
|
-
projectRoot,
|
|
59
|
-
sourceRoot,
|
|
60
|
-
projectName,
|
|
57
|
+
_chunkWE4HK4RNjs.writeTrace.call(void 0,
|
|
58
|
+
`Executor schema options \u2699\uFE0F
|
|
59
|
+
${_chunkWE4HK4RNjs.formatLogMessage.call(void 0, options)}
|
|
60
|
+
`,
|
|
61
61
|
config
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
);
|
|
63
|
+
const tokenized = await _chunkJ2Z4WP3Ejs.applyWorkspaceTokens.call(void 0,
|
|
64
|
+
options,
|
|
65
|
+
_defu.defu.call(void 0,
|
|
66
|
+
{ workspaceRoot, projectRoot, sourceRoot, projectName, config },
|
|
67
|
+
config,
|
|
68
|
+
context.projectsConfigurations.projects[context.projectName]
|
|
69
|
+
),
|
|
70
|
+
_chunkJ2Z4WP3Ejs.applyWorkspaceProjectTokens
|
|
71
|
+
);
|
|
72
|
+
_chunkWE4HK4RNjs.writeTrace.call(void 0,
|
|
73
|
+
`Executor schema tokenized options \u2699\uFE0F
|
|
74
|
+
${_chunkWE4HK4RNjs.formatLogMessage.call(void 0, tokenized)}
|
|
75
|
+
`,
|
|
76
|
+
config
|
|
77
|
+
);
|
|
66
78
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
67
|
-
|
|
68
|
-
await Promise.resolve(
|
|
69
|
-
|
|
79
|
+
_chunkWE4HK4RNjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
80
|
+
await Promise.resolve(
|
|
81
|
+
executorOptions.hooks.preProcess(tokenized, config)
|
|
82
|
+
);
|
|
83
|
+
_chunkWE4HK4RNjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
70
84
|
}
|
|
71
85
|
const ret = executorFn(tokenized, context, config);
|
|
72
86
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -75,44 +89,55 @@ ${_chunkG4QFSE5Bjs.formatLogMessage.call(void 0, tokenized)}
|
|
|
75
89
|
void iter;
|
|
76
90
|
}
|
|
77
91
|
}
|
|
78
|
-
const result = await Promise.resolve(
|
|
92
|
+
const result = await Promise.resolve(
|
|
93
|
+
ret
|
|
94
|
+
);
|
|
79
95
|
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")) {
|
|
80
|
-
|
|
81
|
-
${
|
|
96
|
+
_chunkWE4HK4RNjs.writeTrace.call(void 0,
|
|
97
|
+
`Failure determined by the ${name} executor
|
|
98
|
+
${_chunkWE4HK4RNjs.formatLogMessage.call(void 0, result)}`,
|
|
99
|
+
config
|
|
100
|
+
);
|
|
82
101
|
console.error(result);
|
|
83
102
|
throw new Error(`The ${name} executor failed to run`, {
|
|
84
103
|
cause: _optionalChain([result, 'optionalAccess', _16 => _16.error])
|
|
85
104
|
});
|
|
86
105
|
}
|
|
87
106
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
88
|
-
|
|
107
|
+
_chunkWE4HK4RNjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
89
108
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
90
|
-
|
|
109
|
+
_chunkWE4HK4RNjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
91
110
|
}
|
|
92
|
-
|
|
111
|
+
_chunkWE4HK4RNjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
93
112
|
`, config);
|
|
94
113
|
return {
|
|
95
114
|
success: true
|
|
96
115
|
};
|
|
97
116
|
} catch (error) {
|
|
98
|
-
|
|
99
|
-
|
|
117
|
+
_chunkWE4HK4RNjs.writeFatal.call(void 0,
|
|
118
|
+
"A fatal error occurred while running the executor - the process was forced to terminate",
|
|
119
|
+
config
|
|
120
|
+
);
|
|
121
|
+
_chunkWE4HK4RNjs.writeError.call(void 0,
|
|
122
|
+
`An exception was thrown in the executor's process
|
|
100
123
|
- Details: ${error.message}
|
|
101
|
-
- Stacktrace: ${error.stack}`,
|
|
124
|
+
- Stacktrace: ${error.stack}`,
|
|
125
|
+
config
|
|
126
|
+
);
|
|
102
127
|
return {
|
|
103
128
|
success: false
|
|
104
129
|
};
|
|
105
130
|
} finally {
|
|
106
131
|
stopwatch();
|
|
107
132
|
}
|
|
108
|
-
}
|
|
109
|
-
var _isFunction =
|
|
133
|
+
};
|
|
134
|
+
var _isFunction = (value) => {
|
|
110
135
|
try {
|
|
111
136
|
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _19 => _19.constructor]) && _optionalChain([value, 'optionalAccess', _20 => _20.call]) && _optionalChain([value, 'optionalAccess', _21 => _21.apply]));
|
|
112
137
|
} catch (e) {
|
|
113
138
|
return false;
|
|
114
139
|
}
|
|
115
|
-
}
|
|
140
|
+
};
|
|
116
141
|
|
|
117
142
|
|
|
118
143
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-UYSJG2E5.mjs";
|
|
4
|
+
import {
|
|
5
|
+
writeInfo
|
|
6
|
+
} from "./chunk-2M22JVJQ.mjs";
|
|
7
|
+
|
|
8
|
+
// src/executors/size-limit/executor.ts
|
|
9
|
+
import { joinPathFragments } from "@nx/devkit";
|
|
10
|
+
import esBuildPlugin from "@size-limit/esbuild";
|
|
11
|
+
import esBuildWhyPlugin from "@size-limit/esbuild-why";
|
|
12
|
+
import filePlugin from "@size-limit/file";
|
|
13
|
+
import sizeLimit from "size-limit";
|
|
14
|
+
async function sizeLimitExecutorFn(options, context, config) {
|
|
15
|
+
if (!context?.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName]) {
|
|
16
|
+
throw new Error(
|
|
17
|
+
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
21
|
+
sizeLimit([filePlugin, esBuildPlugin, esBuildWhyPlugin], {
|
|
22
|
+
checks: options.entry ?? context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? joinPathFragments(
|
|
23
|
+
context.projectsConfigurations.projects[context.projectName]?.root ?? "./",
|
|
24
|
+
"src"
|
|
25
|
+
)
|
|
26
|
+
}).then((result) => {
|
|
27
|
+
writeInfo(
|
|
28
|
+
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
29
|
+
config
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
return {
|
|
33
|
+
success: true
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
var executor_default = withRunExecutor(
|
|
37
|
+
"Size-Limit Performance Test Executor",
|
|
38
|
+
sizeLimitExecutorFn,
|
|
39
|
+
{
|
|
40
|
+
skipReadingConfig: false,
|
|
41
|
+
hooks: {
|
|
42
|
+
applyDefaultOptions: (options) => {
|
|
43
|
+
return options;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
sizeLimitExecutorFn,
|
|
51
|
+
executor_default
|
|
52
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunk4BECJRPPjs = require('./chunk-4BECJRPP.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkAJ3C2EDWjs = require('./chunk-AJ3C2EDW.js');
|
|
8
|
+
|
|
9
|
+
// src/executors/cargo-check/executor.ts
|
|
10
|
+
async function cargoCheckExecutor(options, context) {
|
|
11
|
+
const command = _chunk4BECJRPPjs.buildCargoCommand.call(void 0, "check", options, context);
|
|
12
|
+
return await _chunk4BECJRPPjs.cargoCommand.call(void 0, ...command);
|
|
13
|
+
}
|
|
14
|
+
var executor_default = _chunkAJ3C2EDWjs.withRunExecutor.call(void 0,
|
|
15
|
+
"Cargo Check",
|
|
16
|
+
cargoCheckExecutor,
|
|
17
|
+
{
|
|
18
|
+
skipReadingConfig: false,
|
|
19
|
+
hooks: {
|
|
20
|
+
applyDefaultOptions: (options) => {
|
|
21
|
+
options.toolchain ??= "stable";
|
|
22
|
+
return options;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
exports.cargoCheckExecutor = cargoCheckExecutor; exports.executor_default = executor_default;
|