@storm-software/workspace-tools 1.267.20 → 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 +12 -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-YAKIVJU6.mjs → chunk-2M22JVJQ.mjs} +307 -192
- package/dist/{chunk-GXIIWSRN.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-7GXOAREP.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-23IRDNF3.mjs → chunk-5HUW3BTP.mjs} +37 -21
- package/dist/{chunk-7NN23VWS.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-MXS2AKLY.mjs → chunk-7HWV6U3E.mjs} +33 -18
- package/dist/{chunk-GKL4BY2Y.js → chunk-A5CKB6IJ.js} +7 -8
- package/dist/{chunk-HSN5YXMG.mjs → chunk-ABE7UOMX.mjs} +24 -21
- package/dist/{chunk-6W2B4WA4.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-BNYSKNEI.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-NM7WF6O5.mjs → chunk-HMJTTE4A.mjs} +39 -30
- package/dist/{chunk-ZCIEDGNG.mjs → chunk-HY3ZC5EZ.mjs} +10 -31
- package/dist/{chunk-OQPX75CG.js → chunk-I5MSPQMO.js} +31 -18
- package/dist/{chunk-WPRKDCZP.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-34WSVY5D.mjs → chunk-LSF4BHCI.mjs} +24 -14
- package/dist/chunk-M725BO42.mjs +32 -0
- package/dist/{chunk-SAWEMBTS.mjs → chunk-MF6VZSIO.mjs} +30 -17
- package/dist/{chunk-2I6S33ZD.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-LJFHW7ZR.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-KQL5XMNL.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-S3IPRXVE.mjs → chunk-U65XVJ4Y.mjs} +1 -12
- package/dist/{chunk-D3U4WMSI.mjs → chunk-U7JFVMCK.mjs} +6 -12
- package/dist/chunk-UIPUSUAB.js +425 -0
- package/dist/{chunk-O5QR3B3Z.mjs → chunk-UYSJG2E5.mjs} +56 -31
- package/dist/{chunk-SJGDCFBH.mjs → chunk-VLOTOQYE.mjs} +11 -8
- package/dist/{chunk-ENE6R7BT.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-RK3UDPDP.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-OBZTQWHM.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-7AXFMX2T.js +0 -37
- package/dist/chunk-B3DVFXXD.js +0 -32
- package/dist/chunk-DHOPT66G.mjs +0 -32
- package/dist/chunk-ECGUA6DW.mjs +0 -48
- package/dist/chunk-FMDP5I2Q.mjs +0 -446
- package/dist/chunk-GFHXZA2W.mjs +0 -31
- package/dist/chunk-HIZQZGPN.mjs +0 -32
- package/dist/chunk-HOXPAVCL.js +0 -32
- package/dist/chunk-ICPUM2HS.js +0 -50
- package/dist/chunk-ID7QJZH6.mjs +0 -37
- package/dist/chunk-KCUI5EYN.mjs +0 -468
- package/dist/chunk-KEBNU3P2.js +0 -446
- package/dist/chunk-KVZPB73M.mjs +0 -86
- package/dist/chunk-NSCWEC2S.js +0 -32
- package/dist/chunk-NX7JRHF4.mjs +0 -50
- package/dist/chunk-OQTJDGUH.js +0 -468
- package/dist/chunk-QCF7H4NZ.mjs +0 -32
- package/dist/chunk-QKHODSAV.mjs +0 -13
- package/dist/chunk-QMD25JYH.mjs +0 -43
- package/dist/chunk-RUKOOSWL.js +0 -31
- package/dist/chunk-SBJV4LAX.mjs +0 -51
- package/dist/chunk-TET4GF3D.js +0 -43
- package/dist/chunk-XITP2BX2.js +0 -13
- package/dist/chunk-XJZ5TRTJ.mjs +0 -102
- package/dist/chunk-Y4TQKFAH.mjs +0 -18
- package/dist/chunk-YW4UN25U.js +0 -86
- package/dist/chunk-ZUNLUDAB.mjs +0 -30
package/dist/chunk-XITP2BX2.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
|
-
|
|
3
|
-
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
4
|
-
|
|
5
|
-
// src/utils/typia-transform.ts
|
|
6
|
-
var _transform = require('typia/lib/transform'); var _transform2 = _interopRequireDefault(_transform);
|
|
7
|
-
var getTypiaTransform = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (program, diagnostics) => _transform2.default.call(void 0, program, {}, {
|
|
8
|
-
addDiagnostic: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (input) => diagnostics.push(input), "addDiagnostic")
|
|
9
|
-
}), "getTypiaTransform");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.getTypiaTransform = getTypiaTransform;
|
package/dist/chunk-XJZ5TRTJ.mjs
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__name
|
|
3
|
-
} from "./chunk-WPRKDCZP.mjs";
|
|
4
|
-
|
|
5
|
-
// src/utils/project-tags.ts
|
|
6
|
-
var ProjectTagConstants = {
|
|
7
|
-
Language: {
|
|
8
|
-
TAG_ID: "language",
|
|
9
|
-
TYPESCRIPT: "typescript",
|
|
10
|
-
RUST: "rust"
|
|
11
|
-
},
|
|
12
|
-
ProjectType: {
|
|
13
|
-
TAG_ID: "type",
|
|
14
|
-
LIBRARY: "library",
|
|
15
|
-
APPLICATION: "application"
|
|
16
|
-
},
|
|
17
|
-
DistStyle: {
|
|
18
|
-
TAG_ID: "dist-style",
|
|
19
|
-
NORMAL: "normal",
|
|
20
|
-
CLEAN: "clean"
|
|
21
|
-
},
|
|
22
|
-
Provider: {
|
|
23
|
-
TAG_ID: "provider"
|
|
24
|
-
},
|
|
25
|
-
Platform: {
|
|
26
|
-
TAG_ID: "platform",
|
|
27
|
-
NODE: "node",
|
|
28
|
-
BROWSER: "browser",
|
|
29
|
-
NEUTRAL: "neutral",
|
|
30
|
-
WORKER: "worker"
|
|
31
|
-
},
|
|
32
|
-
Registry: {
|
|
33
|
-
TAG_ID: "registry",
|
|
34
|
-
CARGO: "cargo",
|
|
35
|
-
NPM: "npm",
|
|
36
|
-
CONTAINER: "container",
|
|
37
|
-
CYCLONE: "cyclone"
|
|
38
|
-
},
|
|
39
|
-
Plugin: {
|
|
40
|
-
TAG_ID: "plugin"
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
var formatProjectTag = /* @__PURE__ */ __name((variant, value) => {
|
|
44
|
-
return `${variant}:${value}`;
|
|
45
|
-
}, "formatProjectTag");
|
|
46
|
-
var hasProjectTag = /* @__PURE__ */ __name((project, variant) => {
|
|
47
|
-
project.tags = project.tags ?? [];
|
|
48
|
-
const prefix = formatProjectTag(variant, "");
|
|
49
|
-
return project.tags.some((tag) => tag.startsWith(prefix) && tag.length > prefix.length);
|
|
50
|
-
}, "hasProjectTag");
|
|
51
|
-
var getProjectTag = /* @__PURE__ */ __name((project, variant) => {
|
|
52
|
-
if (!hasProjectTag(project, variant)) {
|
|
53
|
-
return void 0;
|
|
54
|
-
}
|
|
55
|
-
project.tags = project.tags ?? [];
|
|
56
|
-
const prefix = formatProjectTag(variant, "");
|
|
57
|
-
const tag = project.tags.find((tag2) => tag2.startsWith(prefix));
|
|
58
|
-
return tag?.replace(prefix, "");
|
|
59
|
-
}, "getProjectTag");
|
|
60
|
-
var isEqualProjectTag = /* @__PURE__ */ __name((project, variant, value) => {
|
|
61
|
-
const tag = getProjectTag(project, variant);
|
|
62
|
-
return !!(tag && tag?.toUpperCase() === value.toUpperCase());
|
|
63
|
-
}, "isEqualProjectTag");
|
|
64
|
-
var addProjectTag = /* @__PURE__ */ __name((project, variant, value, options = {
|
|
65
|
-
overwrite: false
|
|
66
|
-
}) => {
|
|
67
|
-
project.tags = project.tags ?? [];
|
|
68
|
-
if (options.overwrite || !hasProjectTag(project, variant)) {
|
|
69
|
-
project.tags = project.tags.filter((tag) => !tag.startsWith(formatProjectTag(variant, "")));
|
|
70
|
-
project.tags.push(formatProjectTag(variant, value));
|
|
71
|
-
}
|
|
72
|
-
}, "addProjectTag");
|
|
73
|
-
var addPluginProjectTag = /* @__PURE__ */ __name((project, plugin) => {
|
|
74
|
-
project.tags = project.tags ?? [];
|
|
75
|
-
project.tags.push(formatProjectTag(ProjectTagConstants.Plugin.TAG_ID, plugin));
|
|
76
|
-
}, "addPluginProjectTag");
|
|
77
|
-
var setDefaultProjectTags = /* @__PURE__ */ __name((project, plugin) => {
|
|
78
|
-
project.tags = project.tags ?? [];
|
|
79
|
-
addProjectTag(project, ProjectTagConstants.ProjectType.TAG_ID, project.projectType === "application" ? ProjectTagConstants.ProjectType.APPLICATION : ProjectTagConstants.ProjectType.LIBRARY, {
|
|
80
|
-
overwrite: true
|
|
81
|
-
});
|
|
82
|
-
addProjectTag(project, ProjectTagConstants.DistStyle.TAG_ID, project.targets && Object.keys(project.targets).includes("clean-package") ? ProjectTagConstants.DistStyle.CLEAN : ProjectTagConstants.DistStyle.NORMAL, {
|
|
83
|
-
overwrite: true
|
|
84
|
-
});
|
|
85
|
-
addProjectTag(project, ProjectTagConstants.Platform.TAG_ID, project.targets?.build?.options.platform === "node" ? ProjectTagConstants.Platform.NODE : project.targets?.build?.options.platform === "worker" ? ProjectTagConstants.Platform.WORKER : project.targets?.build?.options.platform === "browser" ? ProjectTagConstants.Platform.BROWSER : ProjectTagConstants.Platform.NEUTRAL, {
|
|
86
|
-
overwrite: false
|
|
87
|
-
});
|
|
88
|
-
if (plugin) {
|
|
89
|
-
addPluginProjectTag(project, plugin);
|
|
90
|
-
}
|
|
91
|
-
}, "setDefaultProjectTags");
|
|
92
|
-
|
|
93
|
-
export {
|
|
94
|
-
ProjectTagConstants,
|
|
95
|
-
formatProjectTag,
|
|
96
|
-
hasProjectTag,
|
|
97
|
-
getProjectTag,
|
|
98
|
-
isEqualProjectTag,
|
|
99
|
-
addProjectTag,
|
|
100
|
-
addPluginProjectTag,
|
|
101
|
-
setDefaultProjectTags
|
|
102
|
-
};
|
package/dist/chunk-Y4TQKFAH.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
findWorkspaceRoot
|
|
3
|
-
} from "./chunk-34WSVY5D.mjs";
|
|
4
|
-
import {
|
|
5
|
-
__name
|
|
6
|
-
} from "./chunk-WPRKDCZP.mjs";
|
|
7
|
-
|
|
8
|
-
// src/utils/get-project-configurations.ts
|
|
9
|
-
import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/project-graph/utils/retrieve-workspace-files";
|
|
10
|
-
var getProjectConfigurations = /* @__PURE__ */ __name(async () => {
|
|
11
|
-
return retrieveProjectConfigurationsWithoutPluginInference(findWorkspaceRoot());
|
|
12
|
-
}, "getProjectConfigurations");
|
|
13
|
-
var getProjectConfiguration = /* @__PURE__ */ __name((projectName) => getProjectConfigurations()?.[projectName], "getProjectConfiguration");
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
getProjectConfigurations,
|
|
17
|
-
getProjectConfiguration
|
|
18
|
-
};
|
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-ZUNLUDAB.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__name
|
|
3
|
-
} from "./chunk-WPRKDCZP.mjs";
|
|
4
|
-
|
|
5
|
-
// src/generators/init/init.ts
|
|
6
|
-
import { addDependenciesToPackageJson, formatFiles } from "@nx/devkit";
|
|
7
|
-
async function initGenerator(tree, schema) {
|
|
8
|
-
const task = addDependenciesToPackageJson(tree, {
|
|
9
|
-
nx: "^19.6.2",
|
|
10
|
-
"@nx/workspace": "^19.6.2",
|
|
11
|
-
"@nx/js": "^19.6.2",
|
|
12
|
-
"@storm-software/eslint": "latest",
|
|
13
|
-
"@storm-software/prettier": "latest",
|
|
14
|
-
"@storm-software/config-tools": "latest",
|
|
15
|
-
"@storm-software/testing-tools": "latest",
|
|
16
|
-
"@storm-software/git-tools": "latest",
|
|
17
|
-
"@storm-software/linting-tools": "latest"
|
|
18
|
-
}, {});
|
|
19
|
-
if (!schema.skipFormat) {
|
|
20
|
-
await formatFiles(tree);
|
|
21
|
-
}
|
|
22
|
-
return task;
|
|
23
|
-
}
|
|
24
|
-
__name(initGenerator, "initGenerator");
|
|
25
|
-
var init_default = initGenerator;
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
initGenerator,
|
|
29
|
-
init_default
|
|
30
|
-
};
|