@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
package/dist/chunk-YMGMEPP5.mjs
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
withRunExecutor
|
|
3
|
-
} from "./chunk-LSG534D5.mjs";
|
|
4
|
-
import {
|
|
5
|
-
writeInfo
|
|
6
|
-
} from "./chunk-VW3PZOJ4.mjs";
|
|
7
|
-
import {
|
|
8
|
-
joinPaths
|
|
9
|
-
} from "./chunk-AVJVDD4L.mjs";
|
|
10
|
-
import {
|
|
11
|
-
__name
|
|
12
|
-
} from "./chunk-L2DHGVS5.mjs";
|
|
13
|
-
|
|
14
|
-
// src/executors/unbuild/executor.ts
|
|
15
|
-
import { defu } from "defu";
|
|
16
|
-
import { createJiti } from "jiti";
|
|
17
|
-
async function unbuildExecutorFn(options, context, config) {
|
|
18
|
-
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
19
|
-
if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
20
|
-
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
21
|
-
}
|
|
22
|
-
if (!context.projectsConfigurations.projects[context.projectName].root) {
|
|
23
|
-
throw new Error("The Build process failed because the project root is not valid. Please run this command from a workspace root directory.");
|
|
24
|
-
}
|
|
25
|
-
if (!context.projectsConfigurations.projects[context.projectName].sourceRoot) {
|
|
26
|
-
throw new Error("The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory.");
|
|
27
|
-
}
|
|
28
|
-
const jiti = createJiti(config.workspaceRoot, {
|
|
29
|
-
fsCache: config.skipCache ? false : joinPaths(config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
30
|
-
interopDefault: true
|
|
31
|
-
});
|
|
32
|
-
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
33
|
-
await stormUnbuild.build(defu({
|
|
34
|
-
...options,
|
|
35
|
-
projectRoot: context.projectsConfigurations.projects[context.projectName].root,
|
|
36
|
-
projectName: context.projectName,
|
|
37
|
-
sourceRoot: context.projectsConfigurations.projects[context.projectName].sourceRoot,
|
|
38
|
-
platform: options.platform
|
|
39
|
-
}, {
|
|
40
|
-
stubOptions: {
|
|
41
|
-
jiti: {
|
|
42
|
-
fsCache: config.skipCache ? false : joinPaths(config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
rollup: {
|
|
46
|
-
emitCJS: true,
|
|
47
|
-
watch: false,
|
|
48
|
-
dts: {
|
|
49
|
-
respectExternal: true
|
|
50
|
-
},
|
|
51
|
-
esbuild: {
|
|
52
|
-
target: options.target,
|
|
53
|
-
format: "esm",
|
|
54
|
-
platform: options.platform,
|
|
55
|
-
minify: options.minify ?? !options.debug,
|
|
56
|
-
sourcemap: options.sourcemap ?? options.debug,
|
|
57
|
-
treeShaking: options.treeShaking
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}));
|
|
61
|
-
return {
|
|
62
|
-
success: true
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
__name(unbuildExecutorFn, "unbuildExecutorFn");
|
|
66
|
-
var executor_default = withRunExecutor("TypeScript Unbuild build", unbuildExecutorFn, {
|
|
67
|
-
skipReadingConfig: false,
|
|
68
|
-
hooks: {
|
|
69
|
-
applyDefaultOptions: /* @__PURE__ */ __name(async (options, config) => {
|
|
70
|
-
options.debug ??= false;
|
|
71
|
-
options.treeShaking ??= true;
|
|
72
|
-
options.buildOnly ??= false;
|
|
73
|
-
options.platform ??= "neutral";
|
|
74
|
-
options.entry ??= [
|
|
75
|
-
"{sourceRoot}"
|
|
76
|
-
];
|
|
77
|
-
options.tsconfig ??= "{projectRoot}/tsconfig.json";
|
|
78
|
-
return options;
|
|
79
|
-
}, "applyDefaultOptions")
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
export {
|
|
84
|
-
unbuildExecutorFn,
|
|
85
|
-
executor_default
|
|
86
|
-
};
|
package/dist/chunk-YW4UN25U.js
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
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
|
-
|
|
3
|
-
var _chunk6CGAYKQLjs = require('./chunk-6CGAYKQL.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkG4QFSE5Bjs = require('./chunk-G4QFSE5B.js');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
13
|
-
|
|
14
|
-
// src/executors/unbuild/executor.ts
|
|
15
|
-
var _defu = require('defu');
|
|
16
|
-
var _jiti = require('jiti');
|
|
17
|
-
async function unbuildExecutorFn(options, context, config) {
|
|
18
|
-
_chunkG4QFSE5Bjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
19
|
-
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
20
|
-
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
21
|
-
}
|
|
22
|
-
if (!context.projectsConfigurations.projects[context.projectName].root) {
|
|
23
|
-
throw new Error("The Build process failed because the project root is not valid. Please run this command from a workspace root directory.");
|
|
24
|
-
}
|
|
25
|
-
if (!context.projectsConfigurations.projects[context.projectName].sourceRoot) {
|
|
26
|
-
throw new Error("The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory.");
|
|
27
|
-
}
|
|
28
|
-
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
29
|
-
fsCache: config.skipCache ? false : _chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
30
|
-
interopDefault: true
|
|
31
|
-
});
|
|
32
|
-
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
33
|
-
await stormUnbuild.build(_defu.defu.call(void 0, {
|
|
34
|
-
...options,
|
|
35
|
-
projectRoot: context.projectsConfigurations.projects[context.projectName].root,
|
|
36
|
-
projectName: context.projectName,
|
|
37
|
-
sourceRoot: context.projectsConfigurations.projects[context.projectName].sourceRoot,
|
|
38
|
-
platform: options.platform
|
|
39
|
-
}, {
|
|
40
|
-
stubOptions: {
|
|
41
|
-
jiti: {
|
|
42
|
-
fsCache: config.skipCache ? false : _chunkJTAXCQX6js.joinPaths.call(void 0, config.workspaceRoot, config.directories.cache || "node_modules/.cache/storm", "jiti")
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
rollup: {
|
|
46
|
-
emitCJS: true,
|
|
47
|
-
watch: false,
|
|
48
|
-
dts: {
|
|
49
|
-
respectExternal: true
|
|
50
|
-
},
|
|
51
|
-
esbuild: {
|
|
52
|
-
target: options.target,
|
|
53
|
-
format: "esm",
|
|
54
|
-
platform: options.platform,
|
|
55
|
-
minify: _nullishCoalesce(options.minify, () => ( !options.debug)),
|
|
56
|
-
sourcemap: _nullishCoalesce(options.sourcemap, () => ( options.debug)),
|
|
57
|
-
treeShaking: options.treeShaking
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}));
|
|
61
|
-
return {
|
|
62
|
-
success: true
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
_chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
66
|
-
var executor_default = _chunk6CGAYKQLjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
|
|
67
|
-
skipReadingConfig: false,
|
|
68
|
-
hooks: {
|
|
69
|
-
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
70
|
-
options.debug ??= false;
|
|
71
|
-
options.treeShaking ??= true;
|
|
72
|
-
options.buildOnly ??= false;
|
|
73
|
-
options.platform ??= "neutral";
|
|
74
|
-
options.entry ??= [
|
|
75
|
-
"{sourceRoot}"
|
|
76
|
-
];
|
|
77
|
-
options.tsconfig ??= "{projectRoot}/tsconfig.json";
|
|
78
|
-
return options;
|
|
79
|
-
}, "applyDefaultOptions")
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
exports.unbuildExecutorFn = unbuildExecutorFn; exports.executor_default = executor_default;
|
package/dist/chunk-ZJZOACSR.mjs
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
buildCargoCommand,
|
|
3
|
-
cargoCommand
|
|
4
|
-
} from "./chunk-62XRHQ44.mjs";
|
|
5
|
-
import {
|
|
6
|
-
withRunExecutor
|
|
7
|
-
} from "./chunk-LSG534D5.mjs";
|
|
8
|
-
import {
|
|
9
|
-
__name
|
|
10
|
-
} from "./chunk-L2DHGVS5.mjs";
|
|
11
|
-
|
|
12
|
-
// src/executors/cargo-check/executor.ts
|
|
13
|
-
async function cargoCheckExecutor(options, context) {
|
|
14
|
-
const command = buildCargoCommand("check", options, context);
|
|
15
|
-
return await cargoCommand(...command);
|
|
16
|
-
}
|
|
17
|
-
__name(cargoCheckExecutor, "cargoCheckExecutor");
|
|
18
|
-
var executor_default = withRunExecutor("Cargo Check", cargoCheckExecutor, {
|
|
19
|
-
skipReadingConfig: false,
|
|
20
|
-
hooks: {
|
|
21
|
-
applyDefaultOptions: /* @__PURE__ */ __name((options) => {
|
|
22
|
-
options.toolchain ??= "stable";
|
|
23
|
-
return options;
|
|
24
|
-
}, "applyDefaultOptions")
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
export {
|
|
29
|
-
cargoCheckExecutor,
|
|
30
|
-
executor_default
|
|
31
|
-
};
|
package/dist/chunk-ZTVHEV5N.mjs
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
withRunExecutor
|
|
3
|
-
} from "./chunk-LSG534D5.mjs";
|
|
4
|
-
import {
|
|
5
|
-
writeInfo
|
|
6
|
-
} from "./chunk-VW3PZOJ4.mjs";
|
|
7
|
-
import {
|
|
8
|
-
__name
|
|
9
|
-
} from "./chunk-L2DHGVS5.mjs";
|
|
10
|
-
|
|
11
|
-
// src/executors/typia/executor.ts
|
|
12
|
-
import { removeSync } from "fs-extra";
|
|
13
|
-
import { TypiaProgrammer } from "typia/lib/programmers/TypiaProgrammer.js";
|
|
14
|
-
async function typiaExecutorFn(options, _, config) {
|
|
15
|
-
if (options.clean !== false) {
|
|
16
|
-
writeInfo(`\u{1F9F9} Cleaning output path: ${options.outputPath}`, config);
|
|
17
|
-
removeSync(options.outputPath);
|
|
18
|
-
}
|
|
19
|
-
await Promise.all(options.entry.map((entry) => {
|
|
20
|
-
writeInfo(`\u{1F680} Running Typia on entry: ${entry}`, config);
|
|
21
|
-
return TypiaProgrammer.build({
|
|
22
|
-
input: entry,
|
|
23
|
-
output: options.outputPath,
|
|
24
|
-
project: options.tsconfig
|
|
25
|
-
});
|
|
26
|
-
}));
|
|
27
|
-
return {
|
|
28
|
-
success: true
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
__name(typiaExecutorFn, "typiaExecutorFn");
|
|
32
|
-
var executor_default = withRunExecutor("Typia runtime validation generator", typiaExecutorFn, {
|
|
33
|
-
skipReadingConfig: false,
|
|
34
|
-
hooks: {
|
|
35
|
-
applyDefaultOptions: /* @__PURE__ */ __name((options) => {
|
|
36
|
-
options.entry ??= [
|
|
37
|
-
"{sourceRoot}/index.ts"
|
|
38
|
-
];
|
|
39
|
-
options.outputPath ??= "{sourceRoot}/__generated__/typia";
|
|
40
|
-
options.tsconfig ??= "{projectRoot}/tsconfig.json";
|
|
41
|
-
options.clean ??= true;
|
|
42
|
-
return options;
|
|
43
|
-
}, "applyDefaultOptions")
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
export {
|
|
48
|
-
typiaExecutorFn,
|
|
49
|
-
executor_default
|
|
50
|
-
};
|