@storm-software/workspace-tools 1.277.23 → 1.277.25
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 +37 -0
- package/README.md +1 -1
- package/config/base.json +3 -0
- package/dist/{chunk-KWE63DHK.js → chunk-25VWKDTU.js} +2 -2
- package/dist/{chunk-5UKWSHUW.js → chunk-2BORL7LX.js} +2 -2
- package/dist/{chunk-2SY5D3PI.mjs → chunk-2TGFVUIR.mjs} +2 -2
- package/dist/{chunk-JJIKPU3E.js → chunk-3MSNXXXO.js} +2 -2
- package/dist/{chunk-2KDBMTM6.mjs → chunk-3YKD4Y7G.mjs} +1 -1
- package/dist/{chunk-EZMKL4CV.mjs → chunk-4JA63BTZ.mjs} +1 -1
- package/dist/{chunk-PYFRC2MV.js → chunk-4OBCRV37.js} +9 -9
- package/dist/{chunk-TUBBQE2B.js → chunk-5LD3ABVM.js} +2 -2
- package/dist/{chunk-SHPH36H4.js → chunk-CSCLNKMV.js} +2 -2
- package/dist/{chunk-3TR75B5Z.js → chunk-CSXGWGUK.js} +32 -32
- package/dist/{chunk-PEU7SFRD.js → chunk-D73OGSDF.js} +20 -20
- package/dist/{chunk-QYWWSN2L.mjs → chunk-DASH2FOM.mjs} +2 -2
- package/dist/{chunk-KHCLYPHZ.mjs → chunk-EDHSPOFD.mjs} +1 -1
- package/dist/{chunk-AZFC3V6U.mjs → chunk-EOAKAELE.mjs} +1 -1
- package/dist/{chunk-JB2MEOFA.mjs → chunk-G4MTTQFI.mjs} +1 -1
- package/dist/{chunk-T367LPMJ.mjs → chunk-G4U3DGCJ.mjs} +2 -2
- package/dist/{chunk-5WYV3465.mjs → chunk-H5JCXWPB.mjs} +2 -2
- package/dist/{chunk-VAIVDQCB.js → chunk-HBNNRGCJ.js} +2 -2
- package/dist/{chunk-MWYUW3QE.mjs → chunk-HSJMJFKE.mjs} +1 -1
- package/dist/{chunk-GRZ4BTQO.mjs → chunk-IDQ4JCDX.mjs} +3 -3
- package/dist/{chunk-BYFYLNUZ.js → chunk-IWD5UVSO.js} +2 -2
- package/dist/{chunk-5S276C2K.mjs → chunk-JK77T25H.mjs} +2 -2
- package/dist/{chunk-CJ3DVM3K.js → chunk-JOG7WCHD.js} +2 -2
- package/dist/{chunk-RL3S6XUB.js → chunk-JTCJS4RS.js} +1 -2
- package/dist/{chunk-EJXP3VUY.mjs → chunk-JUSIKDWJ.mjs} +1 -1
- package/dist/{chunk-DDNMGN4P.js → chunk-KUYVHZWZ.js} +2 -2
- package/dist/{chunk-S342OMNG.js → chunk-KXUWH7QY.js} +2 -2
- package/dist/{chunk-T2P2Z3E5.mjs → chunk-KYIRUMWH.mjs} +2 -2
- package/dist/{chunk-EXKBH3RZ.js → chunk-KYU34QH5.js} +5 -5
- package/dist/{chunk-CRKJWAVI.js → chunk-LQV3CCWT.js} +4 -4
- package/dist/{chunk-3HCKYB27.js → chunk-M4TB3TOS.js} +16 -16
- package/dist/{chunk-5RIQD3HN.js → chunk-MSHTPMHQ.js} +2 -2
- package/dist/{chunk-5J72IVMZ.js → chunk-O4RSZYAD.js} +20 -20
- package/dist/{chunk-3VAXOI6B.mjs → chunk-OZRUZ6AM.mjs} +3 -3
- package/dist/{chunk-N7ZQWYNX.mjs → chunk-P5EIB5HG.mjs} +1 -1
- package/dist/{chunk-XOODDLD5.mjs → chunk-PKDVMEUW.mjs} +1 -2
- package/dist/{chunk-4K34KET6.mjs → chunk-POILBEZH.mjs} +1 -1
- package/dist/{chunk-UEKL4ZBE.js → chunk-QPPWAQNV.js} +2 -2
- package/dist/{chunk-X2DQATNQ.js → chunk-QZA6F5EA.js} +21 -21
- package/dist/{chunk-5RD2NO7O.js → chunk-RA2N6JZH.js} +2 -2
- package/dist/{chunk-U5H575C6.mjs → chunk-RUGDFSKK.mjs} +1 -1
- package/dist/{chunk-55KY4AT3.mjs → chunk-UWK5LEHA.mjs} +1 -1
- package/dist/{chunk-AQ434FMF.mjs → chunk-V7ERI6BM.mjs} +1 -1
- package/dist/{chunk-XEZ6HF6D.js → chunk-XPKUS7AG.js} +5 -5
- package/dist/{chunk-UMJOCQVM.mjs → chunk-YAEW3DQA.mjs} +1 -1
- package/dist/{chunk-ORFONJ7T.mjs → chunk-ZQHOT6H6.mjs} +1 -1
- package/dist/{executor-DJ1OHE0u.d.mts → executor-B8wLnXnx.d.mts} +1 -1
- package/dist/{executor-CnsG5-PG.d.mts → executor-BSkPYkkP.d.mts} +1 -1
- package/dist/{executor-85-gelUV.d.ts → executor-BpITPYcR.d.ts} +1 -1
- package/dist/{executor-DRwohIig.d.mts → executor-CFBDS3tc.d.mts} +1 -1
- package/dist/{executor-BNOormNj.d.ts → executor-CRnQhNlT.d.ts} +1 -1
- package/dist/{executor-BOSAIw2U.d.mts → executor-DPIWxm-x.d.mts} +1 -1
- package/dist/{executor-q9_8LrvX.d.ts → executor-L8Jmwybf.d.ts} +1 -1
- package/dist/{executor-DfXDHUQp.d.ts → executor-oIXMAz-g.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 +16 -16
- package/dist/{generator-DLbQ7xh2.d.mts → generator-BIMz19YK.d.mts} +2 -2
- package/dist/{generator-CYB_jETx.d.ts → generator-C0oESGRU.d.ts} +1 -1
- package/dist/{generator-BB21pYLa.d.mts → generator-CAV7jT3f.d.mts} +1 -1
- package/dist/{generator-BUsRHld1.d.mts → generator-CJABg49g.d.mts} +2 -2
- package/dist/{generator-fxlugQLz.d.mts → generator-Cb58mGnB.d.mts} +2 -2
- package/dist/{generator-CwlKBBMn.d.ts → generator-Cf30wgA4.d.ts} +2 -2
- package/dist/{generator-CI0jEcl2.d.ts → generator-Cj8BzNWS.d.ts} +2 -2
- package/dist/{generator-C1bQzXNi.d.mts → generator-DTjXg4Lz.d.mts} +2 -2
- package/dist/{generator-DgqXHHOr.d.mts → generator-Oe3vHbZC.d.mts} +1 -1
- package/dist/{generator-DwrR8IUN.d.ts → generator-Sm7r9ETR.d.ts} +2 -2
- package/dist/{generator-Be8tz_e_.d.ts → generator-mIOdDYVo.d.ts} +2 -2
- package/dist/{generator-Chux7y0F.d.ts → generator-rgiO0GJQ.d.ts} +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 +15 -15
- package/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +25 -25
- package/dist/index.mjs +28 -28
- 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-BYB4R0LJ.d.mts → types-DvynnIqE.d.mts} +1 -5
- package/dist/{types-BYB4R0LJ.d.ts → types-DvynnIqE.d.ts} +1 -5
- package/dist/{types-Zk-WdIrG.d.ts → types-SUxfrM7H.d.ts} +1 -1
- package/dist/{types-CZV1rPn5.d.mts → types-jXJWvL7s.d.mts} +1 -1
- package/package.json +5 -5
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-X6PHOMFB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-POILBEZH.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-PKDVMEUW.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
19
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-X6PHOMFB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-POILBEZH.mjs";
|
|
8
8
|
import {
|
|
9
9
|
formatLogMessage,
|
|
10
10
|
getStopwatch,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
writeInfo,
|
|
15
15
|
writeSuccess,
|
|
16
16
|
writeTrace
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PKDVMEUW.mjs";
|
|
18
18
|
import {
|
|
19
19
|
findWorkspaceRoot
|
|
20
20
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkM4TB3TOSjs = require('./chunk-M4TB3TOS.js');
|
|
8
8
|
|
|
9
9
|
// src/generators/preset/generator.ts
|
|
10
10
|
|
|
@@ -239,7 +239,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
239
239
|
);
|
|
240
240
|
return null;
|
|
241
241
|
}
|
|
242
|
-
var generator_default =
|
|
242
|
+
var generator_default = _chunkM4TB3TOSjs.withRunGenerator.call(void 0,
|
|
243
243
|
"Storm Workspace Preset Generator",
|
|
244
244
|
presetGeneratorFn
|
|
245
245
|
);
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
parseCargoToml,
|
|
4
4
|
parseCargoTomlWithTree,
|
|
5
5
|
stringifyCargoToml
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EDHSPOFD.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-POILBEZH.mjs";
|
|
10
10
|
import {
|
|
11
11
|
getStopwatch,
|
|
12
12
|
writeDebug,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
writeInfo,
|
|
16
16
|
writeSuccess,
|
|
17
17
|
writeTrace
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PKDVMEUW.mjs";
|
|
19
19
|
import {
|
|
20
20
|
findWorkspaceRoot
|
|
21
21
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkGYLUTELWjs = require('./chunk-GYLUTELW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkM4TB3TOSjs = require('./chunk-M4TB3TOS.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
@@ -54,7 +54,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
54
54
|
await _devkit.formatFiles.call(void 0, tree);
|
|
55
55
|
return null;
|
|
56
56
|
}
|
|
57
|
-
var generator_default =
|
|
57
|
+
var generator_default = _chunkM4TB3TOSjs.withRunGenerator.call(void 0,
|
|
58
58
|
"TypeScript Library Creator (Neutral Platform)",
|
|
59
59
|
neutralLibraryGeneratorFn,
|
|
60
60
|
{
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-G4U3DGCJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
stormWorkspaceConfigSchema,
|
|
6
6
|
writeInfo,
|
|
7
7
|
writeSuccess,
|
|
8
8
|
writeTrace
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PKDVMEUW.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findWorkspaceRoot
|
|
12
12
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQZA6F5EAjs = require('./chunk-QZA6F5EA.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 = _chunkQZA6F5EAjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Check",
|
|
16
16
|
cargoCheckExecutor,
|
|
17
17
|
{
|
|
@@ -179,7 +179,6 @@ var organizationConfigSchema = z.object({
|
|
|
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"];
|
|
183
182
|
var stormWorkspaceConfigSchema = z.object({
|
|
184
183
|
$schema: z.string().trim().default(
|
|
185
184
|
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
@@ -211,7 +210,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
211
210
|
release: WorkspaceReleaseConfigSchema,
|
|
212
211
|
socials: WorkspaceSocialsConfigSchema,
|
|
213
212
|
error: errorConfigSchema,
|
|
214
|
-
mode: z.
|
|
213
|
+
mode: z.string().trim().default("production").describe("The current runtime environment mode for the package"),
|
|
215
214
|
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
216
215
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
217
216
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -7,7 +7,7 @@ var _chunkGYLUTELWjs = require('./chunk-GYLUTELW.js');
|
|
|
7
7
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkM4TB3TOSjs = require('./chunk-M4TB3TOS.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
@@ -59,7 +59,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
59
59
|
await _devkit.formatFiles.call(void 0, tree);
|
|
60
60
|
return null;
|
|
61
61
|
}
|
|
62
|
-
var generator_default =
|
|
62
|
+
var generator_default = _chunkM4TB3TOSjs.withRunGenerator.call(void 0,
|
|
63
63
|
"TypeScript Library Creator (NodeJs Platform)",
|
|
64
64
|
nodeLibraryGeneratorFn,
|
|
65
65
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunk3MSNXXXOjs = require('./chunk-3MSNXXXO.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/cargo-publish/executor.ts
|
|
6
6
|
var _devkit = require('@nx/devkit');
|
|
@@ -25,7 +25,7 @@ async function runExecutor(options, context) {
|
|
|
25
25
|
context.root,
|
|
26
26
|
options.packageRoot ? options.packageRoot : root
|
|
27
27
|
);
|
|
28
|
-
const cargoToml =
|
|
28
|
+
const cargoToml = _chunk3MSNXXXOjs.parseCargoToml.call(void 0,
|
|
29
29
|
_fs.readFileSync.call(void 0, _devkit.joinPathFragments.call(void 0, packageRoot, "Cargo.toml"), "utf-8")
|
|
30
30
|
);
|
|
31
31
|
try {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H5JCXWPB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PKDVMEUW.mjs";
|
|
7
7
|
|
|
8
8
|
// src/executors/typia/executor.ts
|
|
9
9
|
import { removeSync } from "fs-extra";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkQZA6F5EAjs = require('./chunk-QZA6F5EA.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJTCJS4RSjs = require('./chunk-JTCJS4RS.js');
|
|
7
7
|
|
|
8
8
|
// src/executors/size-limit/executor.ts
|
|
9
9
|
var _devkit = require('@nx/devkit');
|
|
@@ -17,14 +17,14 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
17
17
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
_chunkJTCJS4RSjs.writeInfo.call(void 0, `\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
21
21
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
22
22
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _4 => _4.projectsConfigurations, 'access', _5 => _5.projects, 'access', _6 => _6[context.projectName], 'optionalAccess', _7 => _7.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
23
23
|
_nullishCoalesce(_optionalChain([context, 'access', _8 => _8.projectsConfigurations, 'access', _9 => _9.projects, 'access', _10 => _10[context.projectName], 'optionalAccess', _11 => _11.root]), () => ( "./")),
|
|
24
24
|
"src"
|
|
25
25
|
)))
|
|
26
26
|
}).then((result) => {
|
|
27
|
-
|
|
27
|
+
_chunkJTCJS4RSjs.writeInfo.call(void 0,
|
|
28
28
|
`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
|
|
29
29
|
config
|
|
30
30
|
);
|
|
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
33
33
|
success: true
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunkQZA6F5EAjs.withRunExecutor.call(void 0,
|
|
37
37
|
"Size-Limit Performance Test Executor",
|
|
38
38
|
sizeLimitExecutorFn,
|
|
39
39
|
{
|
|
@@ -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 _chunkQZA6F5EAjs = require('./chunk-QZA6F5EA.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJTCJS4RSjs = require('./chunk-JTCJS4RS.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
|
+
_chunkJTCJS4RSjs.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 = _chunkQZA6F5EAjs.withRunExecutor.call(void 0,
|
|
84
84
|
"TypeScript Unbuild build",
|
|
85
85
|
unbuildExecutorFn,
|
|
86
86
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkO4RSZYADjs = require('./chunk-O4RSZYAD.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ var _chunk5J72IVMZjs = require('./chunk-5J72IVMZ.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkJTCJS4RSjs = require('./chunk-JTCJS4RS.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 = _chunkJTCJS4RSjs.getStopwatch.call(void 0, name);
|
|
26
26
|
let options = _options;
|
|
27
27
|
let config;
|
|
28
28
|
try {
|
|
29
|
-
|
|
29
|
+
_chunkJTCJS4RSjs.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
|
+
_chunkJTCJS4RSjs.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 _chunkO4RSZYADjs.getConfig.call(void 0, workspaceRoot);
|
|
40
40
|
}
|
|
41
41
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
42
|
-
|
|
42
|
+
_chunkJTCJS4RSjs.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
|
+
_chunkJTCJS4RSjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
_chunkJTCJS4RSjs.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
|
+
_chunkJTCJS4RSjs.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
|
+
_chunkJTCJS4RSjs.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
|
+
_chunkJTCJS4RSjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
79
79
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
80
|
-
|
|
80
|
+
_chunkJTCJS4RSjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
81
81
|
}
|
|
82
82
|
return () => {
|
|
83
|
-
|
|
83
|
+
_chunkJTCJS4RSjs.writeSuccess.call(void 0, `Completed running the ${name} generator!
|
|
84
84
|
`, config);
|
|
85
85
|
};
|
|
86
86
|
} catch (error) {
|
|
87
87
|
return () => {
|
|
88
|
-
|
|
88
|
+
_chunkJTCJS4RSjs.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
|
+
_chunkJTCJS4RSjs.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 _chunk3MSNXXXOjs = require('./chunk-3MSNXXXO.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: _chunk3MSNXXXOjs.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,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkJTCJS4RSjs = require('./chunk-JTCJS4RS.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -68,7 +68,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
68
68
|
let config = result.config;
|
|
69
69
|
const configFile = result.configFile;
|
|
70
70
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
71
|
-
|
|
71
|
+
_chunkJTCJS4RSjs.writeTrace.call(void 0,
|
|
72
72
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
73
73
|
{
|
|
74
74
|
logLevel: "all"
|
|
@@ -84,7 +84,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
84
84
|
for (const result2 of results) {
|
|
85
85
|
if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
|
|
86
86
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
87
|
-
|
|
87
|
+
_chunkJTCJS4RSjs.writeTrace.call(void 0,
|
|
88
88
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
89
89
|
{
|
|
90
90
|
logLevel: "all"
|
|
@@ -192,13 +192,13 @@ var getConfigEnv = () => {
|
|
|
192
192
|
},
|
|
193
193
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
194
194
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
195
|
-
) ?
|
|
195
|
+
) ? _chunkJTCJS4RSjs.getLogLevelLabel.call(void 0,
|
|
196
196
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
197
197
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
198
198
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
199
199
|
};
|
|
200
200
|
const themeNames = Object.keys(process.env).filter(
|
|
201
|
-
(envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
201
|
+
(envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkJTCJS4RSjs.COLOR_KEYS.every(
|
|
202
202
|
(colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
|
|
203
203
|
)
|
|
204
204
|
);
|
|
@@ -209,16 +209,16 @@ var getConfigEnv = () => {
|
|
|
209
209
|
},
|
|
210
210
|
{}
|
|
211
211
|
) : getThemeColorConfigEnv(prefix);
|
|
212
|
-
if (config.docs ===
|
|
213
|
-
if (config.homepage ===
|
|
214
|
-
config.docs = `${
|
|
212
|
+
if (config.docs === _chunkJTCJS4RSjs.STORM_DEFAULT_DOCS) {
|
|
213
|
+
if (config.homepage === _chunkJTCJS4RSjs.STORM_DEFAULT_HOMEPAGE) {
|
|
214
|
+
config.docs = `${_chunkJTCJS4RSjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
215
215
|
} else {
|
|
216
216
|
config.docs = `${config.homepage}/docs`;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
if (config.licensing ===
|
|
220
|
-
if (config.homepage ===
|
|
221
|
-
config.licensing = `${
|
|
219
|
+
if (config.licensing === _chunkJTCJS4RSjs.STORM_DEFAULT_LICENSING) {
|
|
220
|
+
if (config.homepage === _chunkJTCJS4RSjs.STORM_DEFAULT_HOMEPAGE) {
|
|
221
|
+
config.licensing = `${_chunkJTCJS4RSjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
222
222
|
} else {
|
|
223
223
|
config.licensing = `${config.homepage}/docs`;
|
|
224
224
|
}
|
|
@@ -514,9 +514,9 @@ var setConfigEnv = (config) => {
|
|
|
514
514
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
515
515
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
516
516
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
517
|
-
|
|
517
|
+
_chunkJTCJS4RSjs.getLogLevel.call(void 0, config.logLevel) >= _chunkJTCJS4RSjs.LogLevel.DEBUG ? true : false
|
|
518
518
|
);
|
|
519
|
-
process.env.RUST_BACKTRACE =
|
|
519
|
+
process.env.RUST_BACKTRACE = _chunkJTCJS4RSjs.getLogLevel.call(void 0, config.logLevel) >= _chunkJTCJS4RSjs.LogLevel.DEBUG ? "full" : "none";
|
|
520
520
|
}
|
|
521
521
|
if (config.skipConfigLogging !== void 0) {
|
|
522
522
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -642,7 +642,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
642
642
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
643
643
|
if (!configFile) {
|
|
644
644
|
if (!skipLogs) {
|
|
645
|
-
|
|
645
|
+
_chunkJTCJS4RSjs.writeWarning.call(void 0,
|
|
646
646
|
"No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
|
|
647
647
|
{ logLevel: "all" }
|
|
648
648
|
);
|
|
@@ -651,22 +651,22 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
651
651
|
return void 0;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
const defaultConfig = await
|
|
654
|
+
const defaultConfig = await _chunkJTCJS4RSjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
|
|
655
655
|
const configInput = _defu2.default.call(void 0,
|
|
656
656
|
configEnv,
|
|
657
657
|
configFile,
|
|
658
658
|
defaultConfig
|
|
659
659
|
);
|
|
660
660
|
try {
|
|
661
|
-
result =
|
|
662
|
-
await
|
|
661
|
+
result = _chunkJTCJS4RSjs.applyDefaultConfig.call(void 0,
|
|
662
|
+
await _chunkJTCJS4RSjs.stormWorkspaceConfigSchema.parseAsync(configInput)
|
|
663
663
|
);
|
|
664
664
|
result.workspaceRoot ??= _workspaceRoot;
|
|
665
665
|
} catch (error) {
|
|
666
666
|
throw new Error(
|
|
667
667
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _31 => _31.message]) ? `: ${error.message}` : ""}
|
|
668
668
|
|
|
669
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
669
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkJTCJS4RSjs.formatLogMessage.call(void 0,
|
|
670
670
|
configInput
|
|
671
671
|
)}`,
|
|
672
672
|
{
|
|
@@ -711,9 +711,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
711
711
|
);
|
|
712
712
|
setConfigEnv(config);
|
|
713
713
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
714
|
-
|
|
714
|
+
_chunkJTCJS4RSjs.writeTrace.call(void 0,
|
|
715
715
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
716
|
-
${
|
|
716
|
+
${_chunkJTCJS4RSjs.formatLogMessage.call(void 0, config)}`,
|
|
717
717
|
config
|
|
718
718
|
);
|
|
719
719
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H5JCXWPB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getWorkspaceConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-POILBEZH.mjs";
|
|
7
7
|
import {
|
|
8
8
|
formatLogMessage,
|
|
9
9
|
getStopwatch,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
writeSuccess,
|
|
15
15
|
writeTrace,
|
|
16
16
|
writeWarning
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PKDVMEUW.mjs";
|
|
18
18
|
import {
|
|
19
19
|
findWorkspaceRoot
|
|
20
20
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -179,7 +179,6 @@ var organizationConfigSchema = z.object({
|
|
|
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"];
|
|
183
182
|
var stormWorkspaceConfigSchema = z.object({
|
|
184
183
|
$schema: z.string().trim().default(
|
|
185
184
|
"https://public.storm-cdn.com/schemas/storm-workspace.schema.json"
|
|
@@ -211,7 +210,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
211
210
|
release: WorkspaceReleaseConfigSchema,
|
|
212
211
|
socials: WorkspaceSocialsConfigSchema,
|
|
213
212
|
error: errorConfigSchema,
|
|
214
|
-
mode: z.
|
|
213
|
+
mode: z.string().trim().default("production").describe("The current runtime environment mode for the package"),
|
|
215
214
|
workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
|
|
216
215
|
skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
|
|
217
216
|
directories: WorkspaceDirectoryConfigSchema,
|
|
@@ -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 _chunkMSHTPMHQjs = require('./chunk-MSHTPMHQ.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 _chunkMSHTPMHQjs.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`
|