@storm-software/workspace-tools 1.277.34 → 1.277.35
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 +18 -0
- package/README.md +1 -2
- package/dist/{chunk-UXALGSQC.js → chunk-334J5IXK.js} +2 -2
- package/dist/{chunk-3TYXXJKV.js → chunk-4DLKOUQA.js} +2 -2
- package/dist/{chunk-R7DNGWVO.js → chunk-5BOL6D4L.js} +2 -2
- package/dist/{chunk-S2N53PIP.js → chunk-5L75MUAB.js} +2 -2
- package/dist/{chunk-ZFA26D42.mjs → chunk-7BLTZYJ3.mjs} +1 -1
- package/dist/{chunk-J2Z4WP3E.js → chunk-A77PFJ72.js} +2 -2
- package/dist/{chunk-6WBXO6UH.js → chunk-BWPSZXXW.js} +2 -2
- package/dist/{chunk-KZIA4CGL.js → chunk-CBPC6BVR.js} +24 -24
- package/dist/{chunk-SW2AFRXA.mjs → chunk-D4QG6XOG.mjs} +1 -1
- package/dist/{chunk-EUWPFP5C.mjs → chunk-DYIS436F.mjs} +1 -1
- package/dist/{chunk-K262HGVZ.mjs → chunk-ENPVXQZG.mjs} +1 -1
- package/dist/{chunk-3ZBMLG4D.mjs → chunk-FHBOYSRN.mjs} +17 -13
- package/dist/{chunk-PGIUP33N.mjs → chunk-FI4YJWQR.mjs} +4 -4
- package/dist/{chunk-QPCOSMXY.mjs → chunk-G4AFFXLB.mjs} +2 -2
- package/dist/{chunk-XBRR6YS3.js → chunk-GWJER63Y.js} +2 -2
- package/dist/{chunk-4WHSR4FK.js → chunk-HNFKVXBV.js} +0 -1
- package/dist/{chunk-6UFOMB3R.mjs → chunk-HTECEOBH.mjs} +40 -41
- package/dist/{chunk-NFK6PGAC.mjs → chunk-I2JPIOP6.mjs} +1 -1
- package/dist/{chunk-6XYAQUU3.js → chunk-IEZIXYOC.js} +26 -26
- package/dist/{chunk-GH5ABWPU.mjs → chunk-IMF332I2.mjs} +1 -1
- package/dist/{chunk-ABUZEUF7.js → chunk-IQCBMNCA.js} +2 -2
- package/dist/{chunk-ZRTYYXDL.mjs → chunk-K42K44IQ.mjs} +3 -3
- package/dist/{chunk-E566KBB3.js → chunk-KE2XVUHC.js} +5 -5
- package/dist/{chunk-VLOTOQYE.mjs → chunk-KLAMLNPM.mjs} +1 -1
- package/dist/{chunk-X6PHOMFB.mjs → chunk-KYGWN2MB.mjs} +1 -1
- package/dist/{chunk-NQ525HTH.mjs → chunk-L4RTU5C6.mjs} +4 -4
- package/dist/{chunk-LSF4BHCI.mjs → chunk-M5Z57CUO.mjs} +0 -1
- package/dist/{chunk-AQOT2IAM.js → chunk-MOD3ND43.js} +34 -34
- package/dist/{chunk-V5564COA.mjs → chunk-MY3L5HV6.mjs} +4 -4
- package/dist/{chunk-EC7YQEHT.js → chunk-NPYZUWJH.js} +2 -2
- package/dist/{chunk-5VY5IBBQ.js → chunk-NSSJMQFD.js} +16 -12
- package/dist/{chunk-RVJSZ7SI.js → chunk-NYAM2TPQ.js} +4 -4
- package/dist/{chunk-VRPEYRWI.mjs → chunk-OKEHKFS6.mjs} +1 -1
- package/dist/{chunk-L4NCVOB5.mjs → chunk-OWKH2ZBQ.mjs} +1 -1
- package/dist/{chunk-OQUI7H7Z.js → chunk-P7VPITZA.js} +2 -2
- package/dist/{chunk-V53473BD.js → chunk-Q4VGUJQZ.js} +2 -2
- package/dist/{chunk-Q7MIY2SX.mjs → chunk-QGUKFIB7.mjs} +1 -1
- package/dist/{chunk-XPFT4BMH.mjs → chunk-QMELEYB5.mjs} +1 -1
- package/dist/{chunk-65P2PGPR.js → chunk-QSAXCKSA.js} +5 -5
- package/dist/{chunk-3OVLNULV.js → chunk-S62KQPMR.js} +2 -2
- package/dist/{chunk-7IPJE3E3.mjs → chunk-T3MDVD7M.mjs} +4 -4
- package/dist/{chunk-PPMPCT7K.mjs → chunk-T5J6PFWJ.mjs} +2 -2
- package/dist/{chunk-7YUXBCFS.js → chunk-TXFPVY55.js} +11 -11
- package/dist/{chunk-A5CKB6IJ.js → chunk-UZ63ALZQ.js} +2 -2
- package/dist/{chunk-HWCERW6A.mjs → chunk-V3O4MYED.mjs} +1 -1
- package/dist/{chunk-BDA4N25E.js → chunk-VK52Z2DT.js} +25 -25
- package/dist/{chunk-YDXXSCNG.mjs → chunk-VZTL36R3.mjs} +1 -1
- package/dist/{chunk-ZLVVUMYO.js → chunk-WJ47CTAU.js} +2 -2
- package/dist/{chunk-3CPOV3N6.mjs → chunk-WMOEEQFZ.mjs} +1 -1
- package/dist/{chunk-TJ3JPU6C.js → chunk-X5VVVLBK.js} +2 -2
- package/dist/{chunk-BP22TRDI.js → chunk-X5WLGOL5.js} +2 -2
- package/dist/{chunk-55FODDLQ.mjs → chunk-XSLQUWWH.mjs} +2 -2
- package/dist/{chunk-3VAHUUNQ.mjs → chunk-XYJH3GTI.mjs} +1 -1
- package/dist/{chunk-6RHHYXZE.mjs → chunk-Y6HJGXM6.mjs} +1 -1
- package/dist/{chunk-QEU3B4T6.js → chunk-YQHPAR7K.js} +21 -21
- package/dist/{chunk-JRQIA2WV.js → chunk-YWOZ2IOU.js} +2 -2
- package/dist/{chunk-PG7GBHUM.mjs → chunk-ZB76VIIN.mjs} +2 -2
- package/dist/{chunk-TZJGO4US.js → chunk-ZX3GIY5S.js} +40 -41
- package/dist/executors.js +19 -19
- package/dist/executors.mjs +23 -23
- package/dist/generators.js +14 -14
- package/dist/generators.mjs +16 -16
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +32 -30
- package/dist/index.mjs +40 -38
- package/dist/src/base/base-executor.js +6 -6
- package/dist/src/base/base-executor.mjs +5 -5
- package/dist/src/base/base-generator.js +6 -6
- package/dist/src/base/base-generator.mjs +5 -5
- package/dist/src/base/index.js +7 -7
- package/dist/src/base/index.mjs +6 -6
- package/dist/src/executors/cargo-build/executor.js +7 -7
- package/dist/src/executors/cargo-build/executor.mjs +6 -6
- package/dist/src/executors/cargo-check/executor.js +7 -7
- package/dist/src/executors/cargo-check/executor.mjs +6 -6
- package/dist/src/executors/cargo-clippy/executor.js +7 -7
- package/dist/src/executors/cargo-clippy/executor.mjs +6 -6
- package/dist/src/executors/cargo-doc/executor.js +7 -7
- package/dist/src/executors/cargo-doc/executor.mjs +6 -6
- package/dist/src/executors/cargo-format/executor.js +7 -7
- package/dist/src/executors/cargo-format/executor.mjs +6 -6
- package/dist/src/executors/cargo-publish/executor.js +5 -5
- package/dist/src/executors/cargo-publish/executor.mjs +4 -4
- package/dist/src/executors/clean-package/executor.js +8 -8
- package/dist/src/executors/clean-package/executor.mjs +5 -5
- package/dist/src/executors/esbuild/executor.js +7 -7
- package/dist/src/executors/esbuild/executor.mjs +6 -6
- package/dist/src/executors/npm-publish/executor.js +6 -6
- package/dist/src/executors/npm-publish/executor.mjs +5 -5
- package/dist/src/executors/size-limit/executor.js +7 -7
- package/dist/src/executors/size-limit/executor.mjs +6 -6
- package/dist/src/executors/typia/executor.js +7 -7
- package/dist/src/executors/typia/executor.mjs +6 -6
- package/dist/src/executors/unbuild/executor.js +7 -7
- package/dist/src/executors/unbuild/executor.mjs +6 -6
- package/dist/src/generators/browser-library/generator.js +7 -7
- package/dist/src/generators/browser-library/generator.mjs +6 -6
- package/dist/src/generators/config-schema/generator.js +7 -7
- package/dist/src/generators/config-schema/generator.mjs +6 -6
- package/dist/src/generators/neutral-library/generator.js +7 -7
- package/dist/src/generators/neutral-library/generator.mjs +6 -6
- package/dist/src/generators/node-library/generator.js +7 -7
- package/dist/src/generators/node-library/generator.mjs +6 -6
- package/dist/src/generators/preset/generator.js +7 -7
- package/dist/src/generators/preset/generator.mjs +6 -6
- package/dist/src/generators/release-version/generator.js +6 -6
- package/dist/src/generators/release-version/generator.mjs +5 -5
- package/dist/src/plugins/typescript/index.js +3 -3
- package/dist/src/plugins/typescript/index.mjs +2 -2
- package/dist/src/plugins/typescript/project-config.js +3 -3
- package/dist/src/plugins/typescript/project-config.mjs +2 -2
- package/dist/src/plugins/typescript/tsup.js +22 -19
- package/dist/src/plugins/typescript/tsup.mjs +21 -18
- package/dist/src/plugins/typescript/untyped-schema.js +18 -15
- package/dist/src/plugins/typescript/untyped-schema.mjs +18 -15
- package/dist/src/utils/apply-workspace-tokens.js +3 -3
- package/dist/src/utils/apply-workspace-tokens.mjs +2 -2
- package/dist/src/utils/get-project-configurations.js +3 -3
- package/dist/src/utils/get-project-configurations.mjs +2 -2
- package/dist/src/utils/index.d.mts +1 -1
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/index.js +10 -8
- package/dist/src/utils/index.mjs +10 -8
- package/dist/src/utils/package-helpers.js +5 -5
- package/dist/src/utils/package-helpers.mjs +4 -4
- package/dist/src/utils/plugin-helpers.d.mts +7 -6
- package/dist/src/utils/plugin-helpers.d.ts +7 -6
- package/dist/src/utils/plugin-helpers.js +4 -2
- package/dist/src/utils/plugin-helpers.mjs +5 -3
- package/package.json +5 -5
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
getProjectPlatform
|
|
3
|
-
|
|
2
|
+
getProjectPlatform,
|
|
3
|
+
getRoot
|
|
4
|
+
} from "./chunk-FHBOYSRN.mjs";
|
|
4
5
|
import {
|
|
5
6
|
ProjectTagConstants,
|
|
6
7
|
addProjectTag,
|
|
@@ -12,6 +13,7 @@ import {
|
|
|
12
13
|
import {
|
|
13
14
|
createNodesFromFiles
|
|
14
15
|
} from "@nx/devkit";
|
|
16
|
+
import defu from "defu";
|
|
15
17
|
import { existsSync } from "node:fs";
|
|
16
18
|
import { dirname, join } from "node:path";
|
|
17
19
|
import { readNxJson } from "nx/src/config/nx-json.js";
|
|
@@ -22,38 +24,35 @@ var name = "storm-software/typescript";
|
|
|
22
24
|
var createNodesV2 = [
|
|
23
25
|
"{project.json,**/project.json}",
|
|
24
26
|
async (configFiles, options = { includeApps: true }, context) => {
|
|
25
|
-
return
|
|
27
|
+
return createNodesFromFiles(
|
|
26
28
|
async (file, options2 = { includeApps: true }, context2) => {
|
|
27
29
|
try {
|
|
28
30
|
const packageJson = createPackageJson(file, context2.workspaceRoot);
|
|
29
31
|
if (!packageJson) {
|
|
30
|
-
return
|
|
32
|
+
return {};
|
|
31
33
|
}
|
|
32
34
|
const tsconfig = await createTsconfig(file, context2.workspaceRoot);
|
|
33
35
|
if (!tsconfig) {
|
|
34
|
-
return
|
|
36
|
+
return {};
|
|
35
37
|
}
|
|
36
|
-
const
|
|
38
|
+
const projectConfig = createProjectFromPackageJsonNextToProjectJson(
|
|
37
39
|
file,
|
|
38
40
|
packageJson
|
|
39
41
|
);
|
|
40
|
-
if (options2?.includeApps === false &&
|
|
41
|
-
return
|
|
42
|
-
}
|
|
43
|
-
let relativeRoot = project.root.replaceAll("\\", "/").replace(context2.workspaceRoot.replaceAll("\\", "/"), "");
|
|
44
|
-
if (relativeRoot.startsWith("/")) {
|
|
45
|
-
relativeRoot = relativeRoot.slice(1);
|
|
42
|
+
if (options2?.includeApps === false && projectConfig.projectType === "application") {
|
|
43
|
+
return {};
|
|
46
44
|
}
|
|
45
|
+
const root = getRoot(projectConfig.root, context2);
|
|
47
46
|
const enableMarkdownlint = options2?.enableMarkdownlint !== false;
|
|
48
47
|
const enableEslint = options2?.enableEslint !== false;
|
|
49
48
|
const nxJson = readNxJson(context2.workspaceRoot);
|
|
50
49
|
const targets = readTargetsFromPackageJson(
|
|
51
50
|
packageJson,
|
|
52
51
|
nxJson,
|
|
53
|
-
|
|
52
|
+
projectConfig.root,
|
|
54
53
|
context2.workspaceRoot
|
|
55
54
|
);
|
|
56
|
-
if (join(context2.workspaceRoot,
|
|
55
|
+
if (join(context2.workspaceRoot, projectConfig.root).startsWith(
|
|
57
56
|
join(context2.workspaceRoot, "tools")
|
|
58
57
|
) && options2?.lintInternalTools !== true) {
|
|
59
58
|
targets.lint = {
|
|
@@ -92,7 +91,7 @@ var createNodesV2 = [
|
|
|
92
91
|
};
|
|
93
92
|
}
|
|
94
93
|
if (!targets.lint && enableEslint) {
|
|
95
|
-
let eslintConfig = checkEslintConfigAtPath(
|
|
94
|
+
let eslintConfig = checkEslintConfigAtPath(projectConfig.root);
|
|
96
95
|
if (!eslintConfig) {
|
|
97
96
|
eslintConfig = checkEslintConfigAtPath(context2.workspaceRoot);
|
|
98
97
|
}
|
|
@@ -189,11 +188,11 @@ var createNodesV2 = [
|
|
|
189
188
|
inputs: ["typescript", "default", "^production"],
|
|
190
189
|
outputs: ["{workspaceRoot}/dist/{projectRoot}"],
|
|
191
190
|
options: {
|
|
192
|
-
command: `pnpm exec nx run ${
|
|
191
|
+
command: `pnpm exec nx run ${projectConfig.name}:build`
|
|
193
192
|
}
|
|
194
193
|
};
|
|
195
194
|
}
|
|
196
|
-
if (!targets.test && checkJestConfigAtPath(
|
|
195
|
+
if (!targets.test && checkJestConfigAtPath(projectConfig.root)) {
|
|
197
196
|
targets.test = {
|
|
198
197
|
cache: true,
|
|
199
198
|
executor: "@nx/jest:jest",
|
|
@@ -223,7 +222,7 @@ var createNodesV2 = [
|
|
|
223
222
|
const isPrivate = packageJson.private ?? false;
|
|
224
223
|
if (!isPrivate) {
|
|
225
224
|
addProjectTag(
|
|
226
|
-
|
|
225
|
+
projectConfig,
|
|
227
226
|
ProjectTagConstants.Registry.TAG_ID,
|
|
228
227
|
ProjectTagConstants.Registry.NPM,
|
|
229
228
|
{ overwrite: true }
|
|
@@ -233,12 +232,12 @@ var createNodesV2 = [
|
|
|
233
232
|
executor: "@storm-software/workspace-tools:npm-publish",
|
|
234
233
|
options: {}
|
|
235
234
|
};
|
|
236
|
-
if (
|
|
237
|
-
|
|
235
|
+
if (projectConfig.projectType === "application" || isEqualProjectTag(
|
|
236
|
+
projectConfig,
|
|
238
237
|
ProjectTagConstants.ProjectType.TAG_ID,
|
|
239
238
|
ProjectTagConstants.ProjectType.APPLICATION
|
|
240
239
|
) || isEqualProjectTag(
|
|
241
|
-
|
|
240
|
+
projectConfig,
|
|
242
241
|
ProjectTagConstants.DistStyle.TAG_ID,
|
|
243
242
|
ProjectTagConstants.DistStyle.CLEAN
|
|
244
243
|
)) {
|
|
@@ -264,16 +263,16 @@ var createNodesV2 = [
|
|
|
264
263
|
}
|
|
265
264
|
}
|
|
266
265
|
addProjectTag(
|
|
267
|
-
|
|
266
|
+
projectConfig,
|
|
268
267
|
ProjectTagConstants.Language.TAG_ID,
|
|
269
268
|
ProjectTagConstants.Language.TYPESCRIPT,
|
|
270
269
|
{ overwrite: true }
|
|
271
270
|
);
|
|
272
|
-
const platform = getProjectPlatform(
|
|
271
|
+
const platform = getProjectPlatform(projectConfig);
|
|
273
272
|
switch (platform) {
|
|
274
273
|
case "worker":
|
|
275
274
|
addProjectTag(
|
|
276
|
-
|
|
275
|
+
projectConfig,
|
|
277
276
|
ProjectTagConstants.Platform.TAG_ID,
|
|
278
277
|
ProjectTagConstants.Platform.WORKER,
|
|
279
278
|
{ overwrite: true }
|
|
@@ -281,7 +280,7 @@ var createNodesV2 = [
|
|
|
281
280
|
break;
|
|
282
281
|
case "node":
|
|
283
282
|
addProjectTag(
|
|
284
|
-
|
|
283
|
+
projectConfig,
|
|
285
284
|
ProjectTagConstants.Platform.TAG_ID,
|
|
286
285
|
ProjectTagConstants.Platform.NODE,
|
|
287
286
|
{ overwrite: true }
|
|
@@ -289,7 +288,7 @@ var createNodesV2 = [
|
|
|
289
288
|
break;
|
|
290
289
|
case "browser":
|
|
291
290
|
addProjectTag(
|
|
292
|
-
|
|
291
|
+
projectConfig,
|
|
293
292
|
ProjectTagConstants.Platform.TAG_ID,
|
|
294
293
|
ProjectTagConstants.Platform.BROWSER,
|
|
295
294
|
{ overwrite: true }
|
|
@@ -297,30 +296,30 @@ var createNodesV2 = [
|
|
|
297
296
|
break;
|
|
298
297
|
default:
|
|
299
298
|
addProjectTag(
|
|
300
|
-
|
|
299
|
+
projectConfig,
|
|
301
300
|
ProjectTagConstants.Platform.TAG_ID,
|
|
302
301
|
ProjectTagConstants.Platform.NEUTRAL,
|
|
303
302
|
{ overwrite: true }
|
|
304
303
|
);
|
|
305
304
|
break;
|
|
306
305
|
}
|
|
307
|
-
setDefaultProjectTags(
|
|
308
|
-
return
|
|
306
|
+
setDefaultProjectTags(projectConfig, name);
|
|
307
|
+
return {
|
|
309
308
|
projects: {
|
|
310
|
-
[
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
generator: "@storm-software/workspace-tools:release-version"
|
|
309
|
+
[root]: defu(
|
|
310
|
+
{
|
|
311
|
+
root,
|
|
312
|
+
targets,
|
|
313
|
+
release: {
|
|
314
|
+
version: {
|
|
315
|
+
generator: "@storm-software/workspace-tools:release-version"
|
|
316
|
+
}
|
|
319
317
|
}
|
|
320
|
-
}
|
|
321
|
-
|
|
318
|
+
},
|
|
319
|
+
projectConfig
|
|
320
|
+
)
|
|
322
321
|
}
|
|
323
|
-
}
|
|
322
|
+
};
|
|
324
323
|
} catch (e) {
|
|
325
324
|
console.error(e);
|
|
326
325
|
return {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkA77PFJ72js = require('./chunk-A77PFJ72.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkVK52Z2DTjs = require('./chunk-VK52Z2DT.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,15 +14,15 @@ var _chunkBDA4N25Ejs = require('./chunk-BDA4N25E.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkX5WLGOL5js = require('./chunk-X5WLGOL5.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkHNFKVXBVjs = require('./chunk-HNFKVXBV.js');
|
|
21
21
|
|
|
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 = _chunkX5WLGOL5js.getStopwatch.call(void 0, name);
|
|
26
26
|
let options = _options;
|
|
27
27
|
let config = {};
|
|
28
28
|
try {
|
|
@@ -31,14 +31,14 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
31
31
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
|
-
const workspaceRoot =
|
|
34
|
+
const workspaceRoot = _chunkHNFKVXBVjs.findWorkspaceRoot.call(void 0, );
|
|
35
35
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot;
|
|
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
|
+
_chunkX5WLGOL5js.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
40
40
|
if (!executorOptions.skipReadingConfig) {
|
|
41
|
-
|
|
41
|
+
_chunkX5WLGOL5js.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,42 +47,42 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
47
47
|
`,
|
|
48
48
|
config
|
|
49
49
|
);
|
|
50
|
-
config = await
|
|
50
|
+
config = await _chunkVK52Z2DTjs.getConfig.call(void 0, workspaceRoot);
|
|
51
51
|
}
|
|
52
52
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
53
|
-
|
|
53
|
+
_chunkX5WLGOL5js.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
|
+
_chunkX5WLGOL5js.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
_chunkX5WLGOL5js.writeTrace.call(void 0,
|
|
60
60
|
`Executor schema options \u2699\uFE0F
|
|
61
|
-
${
|
|
61
|
+
${_chunkX5WLGOL5js.formatLogMessage.call(void 0, options)}
|
|
62
62
|
`,
|
|
63
63
|
config
|
|
64
64
|
);
|
|
65
|
-
const tokenized = await
|
|
65
|
+
const tokenized = await _chunkA77PFJ72js.applyWorkspaceTokens.call(void 0,
|
|
66
66
|
options,
|
|
67
67
|
_defu.defu.call(void 0,
|
|
68
68
|
{ workspaceRoot, projectRoot, sourceRoot, projectName, config },
|
|
69
69
|
config,
|
|
70
70
|
context.projectsConfigurations.projects[context.projectName]
|
|
71
71
|
),
|
|
72
|
-
|
|
72
|
+
_chunkA77PFJ72js.applyWorkspaceProjectTokens
|
|
73
73
|
);
|
|
74
|
-
|
|
74
|
+
_chunkX5WLGOL5js.writeTrace.call(void 0,
|
|
75
75
|
`Executor schema tokenized options \u2699\uFE0F
|
|
76
|
-
${
|
|
76
|
+
${_chunkX5WLGOL5js.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
|
+
_chunkX5WLGOL5js.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
|
+
_chunkX5WLGOL5js.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 @@ ${_chunkBP22TRDIjs.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
|
+
_chunkX5WLGOL5js.writeTrace.call(void 0,
|
|
99
99
|
`Failure determined by the ${name} executor
|
|
100
|
-
${
|
|
100
|
+
${_chunkX5WLGOL5js.formatLogMessage.call(void 0, result)}`,
|
|
101
101
|
config
|
|
102
102
|
);
|
|
103
103
|
console.error(result);
|
|
@@ -106,21 +106,21 @@ ${_chunkBP22TRDIjs.formatLogMessage.call(void 0, result)}`,
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
109
|
-
|
|
109
|
+
_chunkX5WLGOL5js.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
110
110
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
111
|
-
|
|
111
|
+
_chunkX5WLGOL5js.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
_chunkX5WLGOL5js.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
|
+
_chunkX5WLGOL5js.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
|
+
_chunkX5WLGOL5js.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}`,
|
|
@@ -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 _chunk334J5IXKjs = require('./chunk-334J5IXK.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 = _chunk334J5IXKjs.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,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FI4YJWQR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
stormWorkspaceConfigSchema,
|
|
6
6
|
writeInfo,
|
|
7
7
|
writeSuccess,
|
|
8
8
|
writeTrace
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D4QG6XOG.mjs";
|
|
10
10
|
import {
|
|
11
11
|
findWorkspaceRoot
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M5Z57CUO.mjs";
|
|
13
13
|
|
|
14
14
|
// src/generators/config-schema/generator.ts
|
|
15
15
|
import { formatFiles, writeJson } from "@nx/devkit";
|
|
@@ -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 _chunkIEZIXYOCjs = require('./chunk-IEZIXYOC.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkX5WLGOL5js = require('./chunk-X5WLGOL5.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
|
+
_chunkX5WLGOL5js.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
|
+
_chunkX5WLGOL5js.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 = _chunkIEZIXYOCjs.withRunExecutor.call(void 0,
|
|
37
37
|
"Size-Limit Performance Test Executor",
|
|
38
38
|
sizeLimitExecutorFn,
|
|
39
39
|
{
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
parseCargoToml,
|
|
4
4
|
parseCargoTomlWithTree,
|
|
5
5
|
stringifyCargoToml
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DYIS436F.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZB76VIIN.mjs";
|
|
10
10
|
import {
|
|
11
11
|
getStopwatch,
|
|
12
12
|
writeDebug,
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
writeInfo,
|
|
16
16
|
writeSuccess,
|
|
17
17
|
writeTrace
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-D4QG6XOG.mjs";
|
|
19
19
|
import {
|
|
20
20
|
findWorkspaceRoot
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-M5Z57CUO.mjs";
|
|
22
22
|
|
|
23
23
|
// src/generators/release-version/generator.ts
|
|
24
24
|
import {
|
|
@@ -28,7 +28,6 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
28
28
|
|
|
29
29
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
30
30
|
var rootFiles = [
|
|
31
|
-
"storm-workspace.json",
|
|
32
31
|
"storm-workspace.json",
|
|
33
32
|
"storm-workspace.yaml",
|
|
34
33
|
"storm-workspace.yml",
|