@storm-software/workspace-tools 1.277.20 → 1.277.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 +13 -0
- package/README.md +1 -1
- package/dist/{chunk-VNFKHT7G.js → chunk-2JHF5IS5.js} +2 -2
- package/dist/{chunk-4H77H37J.mjs → chunk-4BGG5KKQ.mjs} +2 -2
- package/dist/{chunk-HA4W5J3L.js → chunk-4GLMTOQP.js} +14 -13
- package/dist/{chunk-S63NJ54N.mjs → chunk-4OXGU7IV.mjs} +1 -1
- package/dist/{chunk-BUYGDZSJ.js → chunk-5N6TQ2Q7.js} +2 -2
- package/dist/{chunk-LKEZCTL4.js → chunk-67VOWLCO.js} +2 -2
- package/dist/{chunk-FWDXHMEK.js → chunk-7JRJ7ITN.js} +2 -2
- package/dist/{chunk-Q2LFHRXR.js → chunk-AM2MMURU.js} +2 -2
- package/dist/{chunk-6YH3FSFC.js → chunk-BEW4BVPK.js} +16 -16
- package/dist/{chunk-AM4B2KNF.js → chunk-BGYHLARB.js} +2 -2
- package/dist/{chunk-HXYWGXOB.mjs → chunk-C2LQVLTD.mjs} +1 -1
- package/dist/{chunk-6JODU3UZ.mjs → chunk-DFI56II6.mjs} +1 -1
- package/dist/{chunk-YJWSOLY6.mjs → chunk-DHSUCTQM.mjs} +1 -1
- package/dist/{chunk-SOAXLDDB.mjs → chunk-DVHD56A6.mjs} +14 -13
- package/dist/{chunk-THCFFGCH.mjs → chunk-EQCZYIUE.mjs} +1 -1
- package/dist/{chunk-WC6B6ERL.js → chunk-F3T34ZU6.js} +21 -21
- package/dist/{chunk-D6UJ4HUZ.mjs → chunk-GXYQMSLG.mjs} +2 -2
- package/dist/{chunk-Y3FGWNNB.js → chunk-H6VAARZE.js} +4 -4
- package/dist/{chunk-DM7RP67R.js → chunk-HHPL5ID6.js} +2 -2
- package/dist/{chunk-3ELPBLDU.mjs → chunk-JC353UQP.mjs} +1 -1
- package/dist/{chunk-YLB53OQG.mjs → chunk-KXNKLBFZ.mjs} +1 -1
- package/dist/{chunk-H4NK5SAE.js → chunk-L7MNI24K.js} +2 -2
- package/dist/{chunk-CUDLNZFJ.mjs → chunk-MYXJTOEI.mjs} +1 -1
- package/dist/{chunk-U4NE2FOI.js → chunk-NCTBOEB6.js} +2 -2
- package/dist/{chunk-EWMCP653.mjs → chunk-NII223RE.mjs} +1 -1
- package/dist/{chunk-WFF5YHRP.mjs → chunk-OP2XRYHG.mjs} +2 -2
- package/dist/{chunk-CBMBAS6W.mjs → chunk-ORHXWW6Z.mjs} +1 -1
- package/dist/{chunk-FDZOCMGE.js → chunk-PFRPFUED.js} +2 -2
- package/dist/{chunk-XOL2OC2B.mjs → chunk-QEX7AIDZ.mjs} +2 -2
- package/dist/{chunk-PPI665B7.mjs → chunk-QMJOVAWO.mjs} +1 -1
- package/dist/{chunk-YTALFDTV.js → chunk-RSHD75IJ.js} +20 -20
- package/dist/{chunk-JY3FVWEU.js → chunk-SXCUWNQO.js} +2 -2
- package/dist/{chunk-4OOJ3GQ6.js → chunk-TL226NUR.js} +5 -5
- package/dist/{chunk-B763DIW7.mjs → chunk-UP425XDF.mjs} +3 -3
- package/dist/{chunk-BKARW2WP.mjs → chunk-VCZQSV5V.mjs} +1 -1
- package/dist/{chunk-HS7VVWGE.js → chunk-VF6V3QCQ.js} +2 -2
- package/dist/{chunk-7XMK3ECW.js → chunk-VLYV2HRU.js} +9 -9
- package/dist/{chunk-APTVAHTM.js → chunk-XBWF35MS.js} +20 -20
- package/dist/{chunk-2ZQMKGGX.mjs → chunk-XFGAP6WH.mjs} +2 -2
- package/dist/{chunk-MEWDABJB.js → chunk-YAMPLW2G.js} +2 -2
- package/dist/{chunk-GACEKLVS.mjs → chunk-YSFE5Q5D.mjs} +1 -1
- package/dist/{chunk-OTPG33ZD.mjs → chunk-YTQPCNAT.mjs} +1 -1
- package/dist/{chunk-H7K7JUH3.mjs → chunk-YXLNJX52.mjs} +2 -2
- package/dist/{chunk-67OBU6I4.js → chunk-YYQJS6BL.js} +5 -5
- package/dist/{chunk-R4RBCES4.mjs → chunk-Z6K5AW5Q.mjs} +3 -3
- package/dist/{chunk-CRY4A4IS.js → chunk-Z6MR2GWS.js} +32 -32
- package/dist/{executor-CNcQpUFx.d.ts → executor-BGlih0Ou.d.ts} +1 -1
- package/dist/{executor-DFhr-0jt.d.mts → executor-BjcGDiSg.d.mts} +1 -1
- package/dist/{executor-CtA9vyAd.d.mts → executor-Bv_NOfBv.d.mts} +1 -1
- package/dist/{executor-CZZ9eBEt.d.mts → executor-CQPJHucD.d.mts} +1 -1
- package/dist/{executor-CGTsha7t.d.mts → executor-DJt__8Y0.d.mts} +1 -1
- package/dist/{executor-BKGHjrPT.d.ts → executor-RP1lAVyh.d.ts} +1 -1
- package/dist/{executor-D6Hqra7r.d.ts → executor-fRL7fcY1.d.ts} +1 -1
- package/dist/{executor-LR45XLVO.d.ts → executor-or8S9oZd.d.ts} +1 -1
- package/dist/executors.d.mts +5 -5
- package/dist/executors.d.ts +5 -5
- package/dist/executors.js +17 -17
- package/dist/executors.mjs +23 -23
- package/dist/{generator-A3oNtvrm.d.mts → generator-BUI_P7Fb.d.mts} +2 -2
- package/dist/{generator-Ckkhxzbg.d.mts → generator-BgBa6_si.d.mts} +2 -2
- package/dist/{generator-CHMsjcnn.d.ts → generator-C43jwL2P.d.ts} +1 -1
- package/dist/{generator-Dqd1O04H.d.ts → generator-Cl_v4Cpk.d.ts} +1 -1
- package/dist/{generator-CLozYalA.d.ts → generator-CydFSI6G.d.ts} +2 -2
- package/dist/{generator-DA5lU8Ks.d.mts → generator-DBdrS_hk.d.mts} +2 -2
- package/dist/{generator-LxyZX4w_.d.ts → generator-DJeUJqyi.d.ts} +2 -2
- package/dist/{generator-BN6dvDuW.d.mts → generator-Da0hA_sC.d.mts} +1 -1
- package/dist/{generator-Ca_o3ijT.d.ts → generator-DkyIj7DQ.d.ts} +2 -2
- package/dist/{generator-B6WLqjc0.d.mts → generator-jnNJJJQw.d.mts} +2 -2
- package/dist/{generator-B4gcglEv.d.ts → generator-tOJG5CUs.d.ts} +2 -2
- package/dist/{generator-hYXoCXuR.d.mts → generator-u2v0eSLY.d.mts} +1 -1
- package/dist/generators.d.mts +8 -8
- package/dist/generators.d.ts +8 -8
- package/dist/generators.js +12 -12
- package/dist/generators.mjs +14 -14
- package/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +25 -25
- package/dist/index.mjs +34 -34
- package/dist/src/base/base-executor.d.mts +2 -2
- package/dist/src/base/base-executor.d.ts +2 -2
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-generator.d.mts +2 -2
- package/dist/src/base/base-generator.d.ts +2 -2
- package/dist/src/base/base-generator.js +4 -4
- package/dist/src/base/base-generator.mjs +3 -3
- package/dist/src/base/index.d.mts +2 -2
- package/dist/src/base/index.d.ts +2 -2
- package/dist/src/base/index.js +5 -5
- package/dist/src/base/index.mjs +4 -4
- package/dist/src/executors/cargo-build/executor.js +5 -5
- package/dist/src/executors/cargo-build/executor.mjs +4 -4
- package/dist/src/executors/cargo-check/executor.js +5 -5
- package/dist/src/executors/cargo-check/executor.mjs +4 -4
- package/dist/src/executors/cargo-clippy/executor.js +5 -5
- package/dist/src/executors/cargo-clippy/executor.mjs +4 -4
- package/dist/src/executors/cargo-doc/executor.js +5 -5
- package/dist/src/executors/cargo-doc/executor.mjs +4 -4
- package/dist/src/executors/cargo-format/executor.js +5 -5
- package/dist/src/executors/cargo-format/executor.mjs +4 -4
- package/dist/src/executors/cargo-publish/executor.js +4 -4
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/clean-package/executor.d.mts +1 -1
- package/dist/src/executors/clean-package/executor.d.ts +1 -1
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- package/dist/src/executors/esbuild/executor.d.mts +2 -2
- package/dist/src/executors/esbuild/executor.d.ts +2 -2
- package/dist/src/executors/esbuild/executor.js +5 -5
- package/dist/src/executors/esbuild/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/executor.js +5 -5
- package/dist/src/executors/npm-publish/executor.mjs +4 -4
- package/dist/src/executors/size-limit/executor.d.mts +2 -2
- package/dist/src/executors/size-limit/executor.d.ts +2 -2
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/typia/executor.d.mts +2 -2
- package/dist/src/executors/typia/executor.d.ts +2 -2
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +4 -4
- package/dist/src/executors/unbuild/executor.d.mts +2 -2
- package/dist/src/executors/unbuild/executor.d.ts +2 -2
- package/dist/src/executors/unbuild/executor.js +5 -5
- package/dist/src/executors/unbuild/executor.mjs +4 -4
- package/dist/src/generators/browser-library/generator.d.mts +3 -3
- package/dist/src/generators/browser-library/generator.d.ts +3 -3
- package/dist/src/generators/browser-library/generator.js +5 -5
- package/dist/src/generators/browser-library/generator.mjs +4 -4
- package/dist/src/generators/config-schema/generator.d.mts +3 -3
- package/dist/src/generators/config-schema/generator.d.ts +3 -3
- package/dist/src/generators/config-schema/generator.js +5 -5
- package/dist/src/generators/config-schema/generator.mjs +4 -4
- package/dist/src/generators/neutral-library/generator.d.mts +3 -3
- package/dist/src/generators/neutral-library/generator.d.ts +3 -3
- package/dist/src/generators/neutral-library/generator.js +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +4 -4
- package/dist/src/generators/node-library/generator.d.mts +3 -3
- package/dist/src/generators/node-library/generator.d.ts +3 -3
- package/dist/src/generators/node-library/generator.js +5 -5
- package/dist/src/generators/node-library/generator.mjs +4 -4
- package/dist/src/generators/preset/generator.d.mts +3 -3
- package/dist/src/generators/preset/generator.d.ts +3 -3
- package/dist/src/generators/preset/generator.js +5 -5
- package/dist/src/generators/preset/generator.mjs +4 -4
- package/dist/src/generators/release-version/generator.d.mts +2 -2
- package/dist/src/generators/release-version/generator.d.ts +2 -2
- package/dist/src/generators/release-version/generator.js +5 -5
- package/dist/src/generators/release-version/generator.mjs +4 -4
- package/dist/src/types.d.mts +2 -2
- package/dist/src/types.d.ts +2 -2
- package/dist/src/utils/apply-workspace-tokens.d.mts +1 -1
- package/dist/src/utils/apply-workspace-tokens.d.ts +1 -1
- package/dist/src/utils/index.d.mts +2 -2
- package/dist/src/utils/index.d.ts +2 -2
- package/dist/src/utils/index.js +4 -4
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/package-helpers.js +4 -4
- package/dist/src/utils/package-helpers.mjs +3 -3
- package/dist/src/utils/project-tags.d.mts +2 -2
- package/dist/src/utils/project-tags.d.ts +2 -2
- package/dist/{types-Bm4Fk9Mi.d.ts → types-BI3OX_IA.d.ts} +1 -1
- package/dist/{types-D6_s01MD.d.mts → types-Dgd3Nqzi.d.mts} +17 -17
- package/dist/{types-D6_s01MD.d.ts → types-Dgd3Nqzi.d.ts} +17 -17
- package/dist/{types-BFiF7NeK.d.mts → types-l0vW09YN.d.mts} +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.277.20](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.277.20) (2025-07-10)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate workspace artifacts
|
|
10
|
+
([f45c14e5f](https://github.com/storm-software/storm-ops/commit/f45c14e5f))
|
|
11
|
+
|
|
12
|
+
### Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated prettier to 0.51.46
|
|
15
|
+
- Updated esbuild to 0.45.33
|
|
16
|
+
- Updated unbuild to 0.49.44
|
|
17
|
+
|
|
5
18
|
## [1.277.19](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.277.19) (2025-07-10)
|
|
6
19
|
|
|
7
20
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkF3T34ZU6js = require('./chunk-F3T34ZU6.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 = _chunkF3T34ZU6js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Format",
|
|
16
16
|
cargoFormatExecutor,
|
|
17
17
|
{
|
|
@@ -96,7 +96,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
96
96
|
positive: PositiveColorSchema,
|
|
97
97
|
negative: NegativeColorSchema
|
|
98
98
|
});
|
|
99
|
-
var RegistryUrlConfigSchema = z.
|
|
99
|
+
var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
100
100
|
var RegistryConfigSchema = z.object({
|
|
101
101
|
github: RegistryUrlConfigSchema,
|
|
102
102
|
npm: RegistryUrlConfigSchema,
|
|
@@ -123,7 +123,7 @@ var WorkspaceBotConfigSchema = z.object({
|
|
|
123
123
|
name: z.string().trim().default("stormie-bot").describe(
|
|
124
124
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
125
125
|
),
|
|
126
|
-
email: z.
|
|
126
|
+
email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
127
127
|
}).describe(
|
|
128
128
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
129
129
|
);
|
|
@@ -166,19 +166,20 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
166
166
|
);
|
|
167
167
|
var errorConfigSchema = z.object({
|
|
168
168
|
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
169
|
-
url: z.
|
|
169
|
+
url: z.url().optional().describe(
|
|
170
170
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
171
171
|
)
|
|
172
172
|
}).describe("The workspace's error config used during the error process");
|
|
173
173
|
var organizationConfigSchema = z.object({
|
|
174
174
|
name: z.string().trim().describe("The name of the organization"),
|
|
175
175
|
description: z.string().trim().optional().describe("A description of the organization"),
|
|
176
|
-
logo: z.
|
|
177
|
-
icon: z.
|
|
178
|
-
url: z.
|
|
176
|
+
logo: z.url().optional().describe("A URL to the organization's logo image"),
|
|
177
|
+
icon: z.url().optional().describe("A URL to the organization's icon image"),
|
|
178
|
+
url: z.url().optional().describe(
|
|
179
179
|
"A URL to a page that provides more information about the organization"
|
|
180
180
|
)
|
|
181
181
|
}).describe("The workspace's organization details");
|
|
182
|
+
var MODE_OPTIONS = ["development", "staging", "production"];
|
|
182
183
|
var stormWorkspaceConfigSchema = z.object({
|
|
183
184
|
$schema: z.string().trim().default(
|
|
184
185
|
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
@@ -195,12 +196,12 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
195
196
|
),
|
|
196
197
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
197
198
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
198
|
-
homepage: z.
|
|
199
|
-
docs: z.
|
|
200
|
-
portal: z.
|
|
201
|
-
licensing: z.
|
|
202
|
-
contact: z.
|
|
203
|
-
support: z.
|
|
199
|
+
homepage: z.url().optional().describe("The homepage of the workspace"),
|
|
200
|
+
docs: z.url().optional().describe("The documentation site for the workspace"),
|
|
201
|
+
portal: z.url().optional().describe("The development portal site for the workspace"),
|
|
202
|
+
licensing: z.url().optional().describe("The licensing site for the workspace"),
|
|
203
|
+
contact: z.url().optional().describe("The contact site for the workspace"),
|
|
204
|
+
support: z.url().optional().describe(
|
|
204
205
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
205
206
|
),
|
|
206
207
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
@@ -210,7 +211,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
210
211
|
release: WorkspaceReleaseConfigSchema,
|
|
211
212
|
socials: WorkspaceSocialsConfigSchema,
|
|
212
213
|
error: errorConfigSchema,
|
|
213
|
-
mode: z.enum(
|
|
214
|
+
mode: z.enum(MODE_OPTIONS).prefault("production").describe("The current runtime environment mode for the package"),
|
|
214
215
|
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
215
216
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
216
217
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkF3T34ZU6js = require('./chunk-F3T34ZU6.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-doc/executor.ts
|
|
10
10
|
async function cargoDocExecutor(options, context) {
|
|
@@ -14,7 +14,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
14
14
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "doc", options, context);
|
|
15
15
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
|
-
var executor_default =
|
|
17
|
+
var executor_default = _chunkF3T34ZU6js.withRunExecutor.call(void 0,
|
|
18
18
|
"Cargo - Doc",
|
|
19
19
|
cargoDocExecutor,
|
|
20
20
|
{
|
|
@@ -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 _chunk4GLMTOQPjs = require('./chunk-4GLMTOQP.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
|
+
_chunk4GLMTOQPjs.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,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkF3T34ZU6js = require('./chunk-F3T34ZU6.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 = _chunkF3T34ZU6js.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Check",
|
|
16
16
|
cargoCheckExecutor,
|
|
17
17
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
3
|
+
var _chunkBGYHLARBjs = require('./chunk-BGYHLARB.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkF6X43VUXjs = require('./chunk-F6X43VUX.js');
|
|
@@ -86,7 +86,7 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
86
86
|
return { success: true };
|
|
87
87
|
}
|
|
88
88
|
await _chunkF6X43VUXjs.pnpmUpdate.call(void 0, packageRoot, context.root);
|
|
89
|
-
await
|
|
89
|
+
await _chunkBGYHLARBjs.addPackageJsonGitHead.call(void 0, packageRoot);
|
|
90
90
|
const npmPublishCommandSegments = [`npm publish --json`];
|
|
91
91
|
const npmViewCommandSegments = [
|
|
92
92
|
`npm view ${packageName} versions dist-tags --json`
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXBWF35MSjs = require('./chunk-XBWF35MS.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ var _chunkAPTVAHTMjs = require('./chunk-APTVAHTM.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk4GLMTOQPjs = require('./chunk-4GLMTOQP.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 = _chunk4GLMTOQPjs.getStopwatch.call(void 0, name);
|
|
26
26
|
let options = _options;
|
|
27
27
|
let config;
|
|
28
28
|
try {
|
|
29
|
-
|
|
29
|
+
_chunk4GLMTOQPjs.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
|
+
_chunk4GLMTOQPjs.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 _chunkXBWF35MSjs.getConfig.call(void 0, workspaceRoot);
|
|
40
40
|
}
|
|
41
41
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
42
|
-
|
|
42
|
+
_chunk4GLMTOQPjs.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
|
+
_chunk4GLMTOQPjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
_chunk4GLMTOQPjs.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
|
+
_chunk4GLMTOQPjs.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
|
+
_chunk4GLMTOQPjs.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
|
+
_chunk4GLMTOQPjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
79
79
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
80
|
-
|
|
80
|
+
_chunk4GLMTOQPjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
81
81
|
}
|
|
82
82
|
return () => {
|
|
83
|
-
|
|
83
|
+
_chunk4GLMTOQPjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
84
84
|
`, config);
|
|
85
85
|
};
|
|
86
86
|
} catch (error) {
|
|
87
87
|
return () => {
|
|
88
|
-
|
|
88
|
+
_chunk4GLMTOQPjs.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
|
+
_chunk4GLMTOQPjs.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}`,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk67VOWLCOjs = require('./chunk-67VOWLCO.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: _chunk67VOWLCOjs.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,
|
|
@@ -96,7 +96,7 @@ var SingleThemeColorConfigSchema = z.object({
|
|
|
96
96
|
positive: PositiveColorSchema,
|
|
97
97
|
negative: NegativeColorSchema
|
|
98
98
|
});
|
|
99
|
-
var RegistryUrlConfigSchema = z.
|
|
99
|
+
var RegistryUrlConfigSchema = z.url().optional().describe("A remote registry URL used to publish distributable packages");
|
|
100
100
|
var RegistryConfigSchema = z.object({
|
|
101
101
|
github: RegistryUrlConfigSchema,
|
|
102
102
|
npm: RegistryUrlConfigSchema,
|
|
@@ -123,7 +123,7 @@ var WorkspaceBotConfigSchema = z.object({
|
|
|
123
123
|
name: z.string().trim().default("stormie-bot").describe(
|
|
124
124
|
"The workspace bot user's name (this is the bot that will be used to perform various tasks)"
|
|
125
125
|
),
|
|
126
|
-
email: z.
|
|
126
|
+
email: z.email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
|
|
127
127
|
}).describe(
|
|
128
128
|
"The workspace's bot user's config used to automated various operations tasks"
|
|
129
129
|
);
|
|
@@ -166,19 +166,20 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
166
166
|
);
|
|
167
167
|
var errorConfigSchema = z.object({
|
|
168
168
|
codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
|
|
169
|
-
url: z.
|
|
169
|
+
url: z.url().optional().describe(
|
|
170
170
|
"A URL to a page that looks up the workspace's error messages given a specific error code"
|
|
171
171
|
)
|
|
172
172
|
}).describe("The workspace's error config used during the error process");
|
|
173
173
|
var organizationConfigSchema = z.object({
|
|
174
174
|
name: z.string().trim().describe("The name of the organization"),
|
|
175
175
|
description: z.string().trim().optional().describe("A description of the organization"),
|
|
176
|
-
logo: z.
|
|
177
|
-
icon: z.
|
|
178
|
-
url: z.
|
|
176
|
+
logo: z.url().optional().describe("A URL to the organization's logo image"),
|
|
177
|
+
icon: z.url().optional().describe("A URL to the organization's icon image"),
|
|
178
|
+
url: z.url().optional().describe(
|
|
179
179
|
"A URL to a page that provides more information about the organization"
|
|
180
180
|
)
|
|
181
181
|
}).describe("The workspace's organization details");
|
|
182
|
+
var MODE_OPTIONS = ["development", "staging", "production"];
|
|
182
183
|
var stormWorkspaceConfigSchema = z.object({
|
|
183
184
|
$schema: z.string().trim().default(
|
|
184
185
|
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
@@ -195,12 +196,12 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
195
196
|
),
|
|
196
197
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
197
198
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
198
|
-
homepage: z.
|
|
199
|
-
docs: z.
|
|
200
|
-
portal: z.
|
|
201
|
-
licensing: z.
|
|
202
|
-
contact: z.
|
|
203
|
-
support: z.
|
|
199
|
+
homepage: z.url().optional().describe("The homepage of the workspace"),
|
|
200
|
+
docs: z.url().optional().describe("The documentation site for the workspace"),
|
|
201
|
+
portal: z.url().optional().describe("The development portal site for the workspace"),
|
|
202
|
+
licensing: z.url().optional().describe("The licensing site for the workspace"),
|
|
203
|
+
contact: z.url().optional().describe("The contact site for the workspace"),
|
|
204
|
+
support: z.url().optional().describe(
|
|
204
205
|
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
205
206
|
),
|
|
206
207
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
@@ -210,7 +211,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
210
211
|
release: WorkspaceReleaseConfigSchema,
|
|
211
212
|
socials: WorkspaceSocialsConfigSchema,
|
|
212
213
|
error: errorConfigSchema,
|
|
213
|
-
mode: z.enum(
|
|
214
|
+
mode: z.enum(MODE_OPTIONS).prefault("production").describe("The current runtime environment mode for the package"),
|
|
214
215
|
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
215
216
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
216
217
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXBWF35MSjs = require('./chunk-XBWF35MS.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ var _chunkAPTVAHTMjs = require('./chunk-APTVAHTM.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk4GLMTOQPjs = require('./chunk-4GLMTOQP.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -22,7 +22,7 @@ var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
|
22
22
|
// src/base/base-executor.ts
|
|
23
23
|
var _defu = require('defu');
|
|
24
24
|
var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_options, context) => {
|
|
25
|
-
const stopwatch =
|
|
25
|
+
const stopwatch = _chunk4GLMTOQPjs.getStopwatch.call(void 0, name);
|
|
26
26
|
let options = _options;
|
|
27
27
|
let config = {};
|
|
28
28
|
try {
|
|
@@ -36,9 +36,9 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
36
36
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
37
37
|
const projectName = context.projectName;
|
|
38
38
|
config.workspaceRoot = workspaceRoot;
|
|
39
|
-
|
|
39
|
+
_chunk4GLMTOQPjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
40
40
|
if (!executorOptions.skipReadingConfig) {
|
|
41
|
-
|
|
41
|
+
_chunk4GLMTOQPjs.writeTrace.call(void 0,
|
|
42
42
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
43
43
|
- workspaceRoot: ${workspaceRoot}
|
|
44
44
|
- projectRoot: ${projectRoot}
|
|
@@ -47,18 +47,18 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
47
47
|
`,
|
|
48
48
|
config
|
|
49
49
|
);
|
|
50
|
-
config = await
|
|
50
|
+
config = await _chunkXBWF35MSjs.getConfig.call(void 0, workspaceRoot);
|
|
51
51
|
}
|
|
52
52
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
53
|
-
|
|
53
|
+
_chunk4GLMTOQPjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
54
54
|
options = await Promise.resolve(
|
|
55
55
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
56
56
|
);
|
|
57
|
-
|
|
57
|
+
_chunk4GLMTOQPjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
_chunk4GLMTOQPjs.writeTrace.call(void 0,
|
|
60
60
|
`Executor schema options \u2699\uFE0F
|
|
61
|
-
${
|
|
61
|
+
${_chunk4GLMTOQPjs.formatLogMessage.call(void 0, options)}
|
|
62
62
|
`,
|
|
63
63
|
config
|
|
64
64
|
);
|
|
@@ -71,18 +71,18 @@ ${_chunkHA4W5J3Ljs.formatLogMessage.call(void 0, options)}
|
|
|
71
71
|
),
|
|
72
72
|
_chunkJ2Z4WP3Ejs.applyWorkspaceProjectTokens
|
|
73
73
|
);
|
|
74
|
-
|
|
74
|
+
_chunk4GLMTOQPjs.writeTrace.call(void 0,
|
|
75
75
|
`Executor schema tokenized options \u2699\uFE0F
|
|
76
|
-
${
|
|
76
|
+
${_chunk4GLMTOQPjs.formatLogMessage.call(void 0, tokenized)}
|
|
77
77
|
`,
|
|
78
78
|
config
|
|
79
79
|
);
|
|
80
80
|
if (_optionalChain([executorOptions, 'optionalAccess', _5 => _5.hooks, 'optionalAccess', _6 => _6.preProcess])) {
|
|
81
|
-
|
|
81
|
+
_chunk4GLMTOQPjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
82
82
|
await Promise.resolve(
|
|
83
83
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
84
84
|
);
|
|
85
|
-
|
|
85
|
+
_chunk4GLMTOQPjs.writeDebug.call(void 0, "Completed the preProcess hook", config);
|
|
86
86
|
}
|
|
87
87
|
const ret = executorFn(tokenized, context, config);
|
|
88
88
|
if (_isFunction(_optionalChain([ret, 'optionalAccess', _7 => _7.next]))) {
|
|
@@ -95,9 +95,9 @@ ${_chunkHA4W5J3Ljs.formatLogMessage.call(void 0, tokenized)}
|
|
|
95
95
|
ret
|
|
96
96
|
);
|
|
97
97
|
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")) {
|
|
98
|
-
|
|
98
|
+
_chunk4GLMTOQPjs.writeTrace.call(void 0,
|
|
99
99
|
`Failure determined by the ${name} executor
|
|
100
|
-
${
|
|
100
|
+
${_chunk4GLMTOQPjs.formatLogMessage.call(void 0, result)}`,
|
|
101
101
|
config
|
|
102
102
|
);
|
|
103
103
|
console.error(result);
|
|
@@ -106,21 +106,21 @@ ${_chunkHA4W5J3Ljs.formatLogMessage.call(void 0, result)}`,
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
109
|
-
|
|
109
|
+
_chunk4GLMTOQPjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
110
110
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
111
|
-
|
|
111
|
+
_chunk4GLMTOQPjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
_chunk4GLMTOQPjs.writeSuccess.call(void 0, `Completed running the ${name} task executor!
|
|
114
114
|
`, config);
|
|
115
115
|
return {
|
|
116
116
|
success: true
|
|
117
117
|
};
|
|
118
118
|
} catch (error) {
|
|
119
|
-
|
|
119
|
+
_chunk4GLMTOQPjs.writeFatal.call(void 0,
|
|
120
120
|
"A fatal error occurred while running the executor - the process was forced to terminate",
|
|
121
121
|
config
|
|
122
122
|
);
|
|
123
|
-
|
|
123
|
+
_chunk4GLMTOQPjs.writeError.call(void 0,
|
|
124
124
|
`An exception was thrown in the executor's process
|
|
125
125
|
- Details: ${error.message}
|
|
126
126
|
- Stacktrace: ${error.stack}`,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-X6PHOMFB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KXNKLBFZ.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-DVHD56A6.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
19
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -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 _chunkF3T34ZU6js = require('./chunk-F3T34ZU6.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4GLMTOQPjs = require('./chunk-4GLMTOQP.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
|
+
_chunk4GLMTOQPjs.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 = _chunkF3T34ZU6js.withRunExecutor.call(void 0,
|
|
84
84
|
"TypeScript Unbuild build",
|
|
85
85
|
unbuildExecutorFn,
|
|
86
86
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkGYLUTELWjs = require('./chunk-GYLUTELW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBEW4BVPKjs = require('./chunk-BEW4BVPK.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 = _chunkBEW4BVPKjs.withRunGenerator.call(void 0,
|
|
86
86
|
"TypeScript Library Creator (Browser Platform)",
|
|
87
87
|
browserLibraryGeneratorFn,
|
|
88
88
|
{
|