@storm-software/workspace-tools 1.277.7 → 1.277.9
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 +29 -0
- package/README.md +1 -1
- package/dist/{chunk-ROUPDDKO.js → chunk-2PUPHPOJ.js} +2 -2
- package/dist/{chunk-J5A3Y3G5.js → chunk-3UVNYXYI.js} +5 -5
- package/dist/{chunk-EFH34LC5.mjs → chunk-47CXMAEH.mjs} +1 -1
- package/dist/{chunk-5WY7NHKV.mjs → chunk-4HHGLAPQ.mjs} +1 -1
- package/dist/{chunk-OH3V3U2Y.mjs → chunk-5GTHSO2R.mjs} +2 -2
- package/dist/{chunk-4NWZ4KD2.js → chunk-6Q2Y66TS.js} +3 -3
- package/dist/{chunk-ZGOX7MFJ.mjs → chunk-7GFI5NEV.mjs} +3 -3
- package/dist/{chunk-OCYB7SCB.js → chunk-7HVQI7WW.js} +4 -4
- package/dist/{chunk-XAJCDEYJ.js → chunk-7YMXPT6I.js} +2 -2
- package/dist/{chunk-74JNZHSJ.js → chunk-AIVSNOK4.js} +2 -2
- package/dist/{chunk-5MRXAUW6.js → chunk-AZKUROKO.js} +2 -2
- package/dist/{chunk-L6OPSM7E.mjs → chunk-BSS2A4AL.mjs} +1 -1
- package/dist/{chunk-KANZLWVO.js → chunk-D3XFXIFX.js} +16 -16
- package/dist/{chunk-ITC3V764.js → chunk-DFJRCZFN.js} +31 -31
- package/dist/{chunk-HZJXVCFK.js → chunk-DSJCQI5S.js} +21 -21
- package/dist/{chunk-DSRBTIPK.mjs → chunk-EPFDTN7R.mjs} +1 -1
- package/dist/{chunk-6VDYBMO4.js → chunk-ERFJDNXJ.js} +2 -2
- package/dist/{chunk-WH3MH2I6.js → chunk-GBTS7H65.js} +5 -5
- package/dist/{chunk-365RZOGB.mjs → chunk-GKC5XPSV.mjs} +2 -2
- package/dist/{chunk-F4SQU5Y2.js → chunk-HISN3Z5I.js} +2 -2
- package/dist/{chunk-PS3432IT.mjs → chunk-IDAYVU2C.mjs} +1 -1
- package/dist/{chunk-LKRSPDSS.mjs → chunk-JTI4PXEQ.mjs} +1 -1
- package/dist/{chunk-ZD4D4MY4.mjs → chunk-KHCEET27.mjs} +1 -1
- package/dist/{chunk-KJ2ULYCE.js → chunk-KJIU36CM.js} +2 -2
- package/dist/{chunk-ILR6AEPP.mjs → chunk-L7QFWSJD.mjs} +2 -2
- package/dist/{chunk-HG6OPRGR.mjs → chunk-LJAZ5CQD.mjs} +2 -2
- package/dist/{chunk-Q5A2LDFQ.mjs → chunk-M4PXZVBW.mjs} +1 -1
- package/dist/{chunk-FEUT3FDU.mjs → chunk-NBVO7LQ2.mjs} +1 -1
- package/dist/{chunk-36R7TF76.js → chunk-NLXICBLZ.js} +2 -2
- package/dist/{chunk-O7MERT47.mjs → chunk-NVXDTWNV.mjs} +2 -2
- package/dist/{chunk-QWLC2FWC.js → chunk-NZYVBMLP.js} +2 -2
- package/dist/{chunk-SAZWUDK5.js → chunk-OTQAMNZT.js} +20 -20
- package/dist/{chunk-Q3DXBN5Z.js → chunk-OYT6QM36.js} +19 -19
- package/dist/{chunk-RNRIQ4GZ.js → chunk-PI6NLMF6.js} +2 -2
- package/dist/{chunk-HL26TB4X.js → chunk-PKGXXU7F.js} +2 -2
- package/dist/{chunk-CUCHWMHH.js → chunk-QHVPVDNI.js} +2 -2
- package/dist/{chunk-RNMLNZSH.mjs → chunk-QKPZ75FD.mjs} +3 -3
- package/dist/{chunk-YF2MVXJK.mjs → chunk-RTDH7GPK.mjs} +1 -1
- package/dist/{chunk-7BTN6YLA.js → chunk-S7K4PA4H.js} +2 -2
- package/dist/{chunk-HQ56LF4F.mjs → chunk-TD6EY72I.mjs} +3 -3
- package/dist/{chunk-OXWLLHKL.mjs → chunk-TRQO3IPM.mjs} +1 -1
- package/dist/{chunk-GILVY57C.mjs → chunk-U2Z4J553.mjs} +2 -2
- package/dist/{chunk-R6MUFVIX.mjs → chunk-UB7FHYP6.mjs} +1 -1
- package/dist/{chunk-5EPZGGBU.mjs → chunk-VCUOEWPH.mjs} +1 -1
- package/dist/{chunk-MF7TU7MV.mjs → chunk-XSQHJSOQ.mjs} +1 -1
- package/dist/{chunk-PGYZNSVE.js → chunk-XXPTIATG.js} +9 -9
- package/dist/executors.js +17 -17
- package/dist/executors.mjs +16 -16
- package/dist/generators.js +11 -11
- package/dist/generators.mjs +10 -10
- package/dist/index.js +24 -24
- package/dist/index.mjs +23 -23
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-generator.js +4 -4
- package/dist/src/base/base-generator.mjs +3 -3
- 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.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- 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.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +4 -4
- 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.js +5 -5
- package/dist/src/generators/browser-library/generator.mjs +4 -4
- 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.js +5 -5
- package/dist/src/generators/neutral-library/generator.mjs +4 -4
- 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.js +5 -5
- package/dist/src/generators/preset/generator.mjs +4 -4
- package/dist/src/generators/release-version/generator.js +5 -5
- package/dist/src/generators/release-version/generator.mjs +4 -4
- 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/package.json +5 -5
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkJ2Z4WP3Ejs = require('./chunk-J2Z4WP3E.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkOYT6QM36js = require('./chunk-OYT6QM36.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ var _chunkQ3DXBN5Zjs = require('./chunk-Q3DXBN5Z.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk6Q2Y66TSjs = require('./chunk-6Q2Y66TS.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 = _chunk6Q2Y66TSjs.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
|
+
_chunk6Q2Y66TSjs.writeInfo.call(void 0, `\u26A1 Running the ${name} executor for ${projectName} `, config);
|
|
40
40
|
if (!executorOptions.skipReadingConfig) {
|
|
41
|
-
|
|
41
|
+
_chunk6Q2Y66TSjs.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 _chunkOYT6QM36js.getConfig.call(void 0, workspaceRoot);
|
|
51
51
|
}
|
|
52
52
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
53
|
-
|
|
53
|
+
_chunk6Q2Y66TSjs.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
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0, "Completed the applyDefaultOptions hook", config);
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
_chunk6Q2Y66TSjs.writeTrace.call(void 0,
|
|
60
60
|
`Executor schema options \u2699\uFE0F
|
|
61
|
-
${
|
|
61
|
+
${_chunk6Q2Y66TSjs.formatLogMessage.call(void 0, options)}
|
|
62
62
|
`,
|
|
63
63
|
config
|
|
64
64
|
);
|
|
@@ -71,18 +71,18 @@ ${_chunk4NWZ4KD2js.formatLogMessage.call(void 0, options)}
|
|
|
71
71
|
),
|
|
72
72
|
_chunkJ2Z4WP3Ejs.applyWorkspaceProjectTokens
|
|
73
73
|
);
|
|
74
|
-
|
|
74
|
+
_chunk6Q2Y66TSjs.writeTrace.call(void 0,
|
|
75
75
|
`Executor schema tokenized options \u2699\uFE0F
|
|
76
|
-
${
|
|
76
|
+
${_chunk6Q2Y66TSjs.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
|
+
_chunk6Q2Y66TSjs.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
|
+
_chunk6Q2Y66TSjs.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 @@ ${_chunk4NWZ4KD2js.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
|
+
_chunk6Q2Y66TSjs.writeTrace.call(void 0,
|
|
99
99
|
`Failure determined by the ${name} executor
|
|
100
|
-
${
|
|
100
|
+
${_chunk6Q2Y66TSjs.formatLogMessage.call(void 0, result)}`,
|
|
101
101
|
config
|
|
102
102
|
);
|
|
103
103
|
console.error(result);
|
|
@@ -106,21 +106,21 @@ ${_chunk4NWZ4KD2js.formatLogMessage.call(void 0, result)}`,
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
if (_optionalChain([executorOptions, 'optionalAccess', _17 => _17.hooks, 'optionalAccess', _18 => _18.postProcess])) {
|
|
109
|
-
|
|
109
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0, "Running the postProcess hook...", config);
|
|
110
110
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
111
|
-
|
|
111
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0, "Completed the postProcess hook", config);
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
_chunk6Q2Y66TSjs.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
|
+
_chunk6Q2Y66TSjs.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
|
+
_chunk6Q2Y66TSjs.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 @@
|
|
|
4
4
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkD3XFXIFXjs = require('./chunk-D3XFXIFX.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 = _chunkD3XFXIFXjs.withRunGenerator.call(void 0,
|
|
243
243
|
"Storm Workspace Preset Generator",
|
|
244
244
|
presetGeneratorFn
|
|
245
245
|
);
|
|
@@ -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 _chunkDSJCQI5Sjs = require('./chunk-DSJCQI5S.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6Q2Y66TSjs = require('./chunk-6Q2Y66TS.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
|
+
_chunk6Q2Y66TSjs.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
|
+
_chunk6Q2Y66TSjs.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 = _chunkDSJCQI5Sjs.withRunExecutor.call(void 0,
|
|
37
37
|
"Size-Limit Performance Test Executor",
|
|
38
38
|
sizeLimitExecutorFn,
|
|
39
39
|
{
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkGYLUTELWjs = require('./chunk-GYLUTELW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkD3XFXIFXjs = require('./chunk-D3XFXIFX.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 = _chunkD3XFXIFXjs.withRunGenerator.call(void 0,
|
|
86
86
|
"TypeScript Library Creator (Browser Platform)",
|
|
87
87
|
browserLibraryGeneratorFn,
|
|
88
88
|
{
|
|
@@ -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 _chunkQHVPVDNIjs = require('./chunk-QHVPVDNI.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 = _chunkQHVPVDNIjs.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 {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-X6PHOMFB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KHCEET27.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-QKPZ75FD.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
19
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NVXDTWNV.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QKPZ75FD.mjs";
|
|
7
7
|
|
|
8
8
|
// src/executors/typia/executor.ts
|
|
9
9
|
import { removeSync } from "fs-extra";
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkDSJCQI5Sjs = require('./chunk-DSJCQI5S.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 = _chunkDSJCQI5Sjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Format",
|
|
16
16
|
cargoFormatExecutor,
|
|
17
17
|
{
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-X6PHOMFB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KHCEET27.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-QKPZ75FD.mjs";
|
|
18
18
|
import {
|
|
19
19
|
findWorkspaceRoot
|
|
20
20
|
} from "./chunk-LSF4BHCI.mjs";
|
|
@@ -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 _chunk2PUPHPOJjs = require('./chunk-2PUPHPOJ.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 _chunk2PUPHPOJjs.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`
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQHVPVDNIjs = require('./chunk-QHVPVDNI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkOYT6QM36js = require('./chunk-OYT6QM36.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ var _chunkQ3DXBN5Zjs = require('./chunk-Q3DXBN5Z.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk6Q2Y66TSjs = require('./chunk-6Q2Y66TS.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunk4WHSR4FKjs = require('./chunk-4WHSR4FK.js');
|
|
@@ -255,19 +255,19 @@ var _versionlegacy = require('nx/src/command-line/release/version-legacy');
|
|
|
255
255
|
var _utils = require('nx/src/tasks-runner/utils');
|
|
256
256
|
var _semver3 = require('semver');
|
|
257
257
|
async function releaseVersionGeneratorFn(tree, options, config) {
|
|
258
|
-
|
|
258
|
+
_chunk6Q2Y66TSjs.writeInfo.call(void 0, `\u26A1 Running the Storm Release Version generator...
|
|
259
259
|
|
|
260
260
|
`, config);
|
|
261
|
-
const stopwatch =
|
|
261
|
+
const stopwatch = _chunk6Q2Y66TSjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
262
262
|
try {
|
|
263
263
|
const workspaceRoot = _chunk4WHSR4FKjs.findWorkspaceRoot.call(void 0, );
|
|
264
|
-
|
|
264
|
+
_chunk6Q2Y66TSjs.writeDebug.call(void 0,
|
|
265
265
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
266
266
|
- workspaceRoot: ${workspaceRoot}`,
|
|
267
267
|
config
|
|
268
268
|
);
|
|
269
|
-
config = await
|
|
270
|
-
|
|
269
|
+
config = await _chunkOYT6QM36js.getConfig.call(void 0, workspaceRoot);
|
|
270
|
+
_chunk6Q2Y66TSjs.writeTrace.call(void 0,
|
|
271
271
|
`Generator schema options \u2699\uFE0F
|
|
272
272
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).filter(
|
|
273
273
|
(key) => ![
|
|
@@ -348,9 +348,9 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
348
348
|
tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath
|
|
349
349
|
);
|
|
350
350
|
const log = (msg) => {
|
|
351
|
-
|
|
351
|
+
_chunk6Q2Y66TSjs.writeInfo.call(void 0, `${projectName}: ${msg}`, config);
|
|
352
352
|
};
|
|
353
|
-
|
|
353
|
+
_chunk6Q2Y66TSjs.writeInfo.call(void 0, `Running release version for project: ${project.name}`, config);
|
|
354
354
|
let packageName;
|
|
355
355
|
let currentVersionFromDisk;
|
|
356
356
|
if (tree.exists(packageJsonPath)) {
|
|
@@ -361,7 +361,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
361
361
|
packageName = projectPackageJson.name;
|
|
362
362
|
currentVersionFromDisk = projectPackageJson.version;
|
|
363
363
|
} else if (tree.exists(cargoTomlPath)) {
|
|
364
|
-
const cargoToml =
|
|
364
|
+
const cargoToml = _chunkQHVPVDNIjs.parseCargoToml.call(void 0,
|
|
365
365
|
_optionalChain([tree, 'access', _10 => _10.read, 'call', _11 => _11(cargoTomlPath), 'optionalAccess', _12 => _12.toString, 'call', _13 => _13("utf-8")])
|
|
366
366
|
);
|
|
367
367
|
log(
|
|
@@ -632,12 +632,12 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
632
632
|
version: newVersion
|
|
633
633
|
});
|
|
634
634
|
} else if (tree.exists(cargoTomlPath)) {
|
|
635
|
-
const cargoToml =
|
|
635
|
+
const cargoToml = _chunkQHVPVDNIjs.parseCargoToml.call(void 0,
|
|
636
636
|
_optionalChain([tree, 'access', _23 => _23.read, 'call', _24 => _24(cargoTomlPath), 'optionalAccess', _25 => _25.toString, 'call', _26 => _26("utf-8")])
|
|
637
637
|
);
|
|
638
638
|
cargoToml.package ??= {};
|
|
639
639
|
cargoToml.package.version = newVersion;
|
|
640
|
-
tree.write(cargoTomlPath,
|
|
640
|
+
tree.write(cargoTomlPath, _chunkQHVPVDNIjs.stringifyCargoToml.call(void 0, cargoToml));
|
|
641
641
|
}
|
|
642
642
|
log(
|
|
643
643
|
`\u270D\uFE0F New version ${newVersion} written to ${workspaceRelativePackagePath}`
|
|
@@ -685,7 +685,7 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
685
685
|
return json;
|
|
686
686
|
});
|
|
687
687
|
} else if (tree.exists(dependentCargoTomlPath)) {
|
|
688
|
-
const dependentPkg =
|
|
688
|
+
const dependentPkg = _chunkQHVPVDNIjs.parseCargoTomlWithTree.call(void 0,
|
|
689
689
|
tree,
|
|
690
690
|
dependentPackageRoot,
|
|
691
691
|
dependentProject.source
|
|
@@ -727,18 +727,18 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
727
727
|
dependentPackageRoot,
|
|
728
728
|
"Cargo.toml"
|
|
729
729
|
);
|
|
730
|
-
|
|
730
|
+
_chunkQHVPVDNIjs.modifyCargoTable.call(void 0,
|
|
731
731
|
dependentPkg,
|
|
732
732
|
dependentProject.dependencyCollection,
|
|
733
733
|
dependentProject.target,
|
|
734
734
|
updatedDependencyData
|
|
735
735
|
);
|
|
736
|
-
tree.write(cargoTomlToUpdate,
|
|
736
|
+
tree.write(cargoTomlToUpdate, _chunkQHVPVDNIjs.stringifyCargoToml.call(void 0, dependentPkg));
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
await _devkit.formatFiles.call(void 0, tree);
|
|
741
|
-
|
|
741
|
+
_chunk6Q2Y66TSjs.writeSuccess.call(void 0,
|
|
742
742
|
`Completed running the Storm Release Version generator!
|
|
743
743
|
`,
|
|
744
744
|
config
|
|
@@ -777,11 +777,11 @@ Projects with packageRoot configured: ${Array.from(projectNameToPackageRootMap.k
|
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
779
|
} catch (error) {
|
|
780
|
-
|
|
780
|
+
_chunk6Q2Y66TSjs.writeFatal.call(void 0,
|
|
781
781
|
"A fatal error occurred while running the Storm Release Version generator - the process was forced to terminate",
|
|
782
782
|
config
|
|
783
783
|
);
|
|
784
|
-
|
|
784
|
+
_chunk6Q2Y66TSjs.writeError.call(void 0,
|
|
785
785
|
`An exception was thrown in the Storm Release Version generator's process
|
|
786
786
|
- Details: ${error.message}
|
|
787
787
|
- Stacktrace: ${error.stack}`,
|
|
@@ -880,7 +880,7 @@ function resolveLocalPackageCargoDependencies(tree, projectGraph, filteredProjec
|
|
|
880
880
|
`The project "${dep.target}" does not have a packageRoot available.`
|
|
881
881
|
);
|
|
882
882
|
}
|
|
883
|
-
const cargoToml =
|
|
883
|
+
const cargoToml = _chunkQHVPVDNIjs.parseCargoTomlWithTree.call(void 0,
|
|
884
884
|
tree,
|
|
885
885
|
resolvePackageRoot(projectNode),
|
|
886
886
|
projectNode.name
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk6Q2Y66TSjs = require('./chunk-6Q2Y66TS.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
|
+
_chunk6Q2Y66TSjs.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
|
+
_chunk6Q2Y66TSjs.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"
|
|
@@ -193,13 +193,13 @@ var getConfigEnv = () => {
|
|
|
193
193
|
},
|
|
194
194
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
195
195
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
196
|
-
) ?
|
|
196
|
+
) ? _chunk6Q2Y66TSjs.getLogLevelLabel.call(void 0,
|
|
197
197
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
198
198
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
199
199
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
200
200
|
};
|
|
201
201
|
const themeNames = Object.keys(process.env).filter(
|
|
202
|
-
(envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
202
|
+
(envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunk6Q2Y66TSjs.COLOR_KEYS.every(
|
|
203
203
|
(colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
|
|
204
204
|
)
|
|
205
205
|
);
|
|
@@ -210,16 +210,16 @@ var getConfigEnv = () => {
|
|
|
210
210
|
},
|
|
211
211
|
{}
|
|
212
212
|
) : getThemeColorConfigEnv(prefix);
|
|
213
|
-
if (config.docs ===
|
|
214
|
-
if (config.homepage ===
|
|
215
|
-
config.docs = `${
|
|
213
|
+
if (config.docs === _chunk6Q2Y66TSjs.STORM_DEFAULT_DOCS) {
|
|
214
|
+
if (config.homepage === _chunk6Q2Y66TSjs.STORM_DEFAULT_HOMEPAGE) {
|
|
215
|
+
config.docs = `${_chunk6Q2Y66TSjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
216
216
|
} else {
|
|
217
217
|
config.docs = `${config.homepage}/docs`;
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
if (config.licensing ===
|
|
221
|
-
if (config.homepage ===
|
|
222
|
-
config.licensing = `${
|
|
220
|
+
if (config.licensing === _chunk6Q2Y66TSjs.STORM_DEFAULT_LICENSING) {
|
|
221
|
+
if (config.homepage === _chunk6Q2Y66TSjs.STORM_DEFAULT_HOMEPAGE) {
|
|
222
|
+
config.licensing = `${_chunk6Q2Y66TSjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
223
223
|
} else {
|
|
224
224
|
config.licensing = `${config.homepage}/docs`;
|
|
225
225
|
}
|
|
@@ -520,9 +520,9 @@ var setConfigEnv = (config) => {
|
|
|
520
520
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
521
521
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
522
522
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
523
|
-
|
|
523
|
+
_chunk6Q2Y66TSjs.getLogLevel.call(void 0, config.logLevel) >= _chunk6Q2Y66TSjs.LogLevel.DEBUG ? true : false
|
|
524
524
|
);
|
|
525
|
-
process.env.RUST_BACKTRACE =
|
|
525
|
+
process.env.RUST_BACKTRACE = _chunk6Q2Y66TSjs.getLogLevel.call(void 0, config.logLevel) >= _chunk6Q2Y66TSjs.LogLevel.DEBUG ? "full" : "none";
|
|
526
526
|
}
|
|
527
527
|
if (config.skipConfigLogging !== void 0) {
|
|
528
528
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -648,7 +648,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
648
648
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
649
649
|
if (!configFile) {
|
|
650
650
|
if (!skipLogs) {
|
|
651
|
-
|
|
651
|
+
_chunk6Q2Y66TSjs.writeWarning.call(void 0,
|
|
652
652
|
"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",
|
|
653
653
|
{ logLevel: "all" }
|
|
654
654
|
);
|
|
@@ -657,9 +657,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
657
657
|
return void 0;
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
|
-
const defaultConfig = await
|
|
661
|
-
result =
|
|
662
|
-
await
|
|
660
|
+
const defaultConfig = await _chunk6Q2Y66TSjs.getPackageJsonConfig.call(void 0, _workspaceRoot);
|
|
661
|
+
result = _chunk6Q2Y66TSjs.applyDefaultConfig.call(void 0,
|
|
662
|
+
await _chunk6Q2Y66TSjs.stormWorkspaceConfigSchema.parseAsync(
|
|
663
663
|
_defu2.default.call(void 0, configEnv, configFile, defaultConfig)
|
|
664
664
|
)
|
|
665
665
|
);
|
|
@@ -701,9 +701,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
701
701
|
);
|
|
702
702
|
setConfigEnv(config);
|
|
703
703
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
704
|
-
|
|
704
|
+
_chunk6Q2Y66TSjs.writeTrace.call(void 0,
|
|
705
705
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
706
|
-
${
|
|
706
|
+
${_chunk6Q2Y66TSjs.formatLogMessage.call(void 0, config)}`,
|
|
707
707
|
config
|
|
708
708
|
);
|
|
709
709
|
}
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkDSJCQI5Sjs = require('./chunk-DSJCQI5S.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-build/executor.ts
|
|
10
10
|
async function cargoBuildExecutor(options, context) {
|
|
11
11
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "build", options, context);
|
|
12
12
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkDSJCQI5Sjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Build",
|
|
16
16
|
cargoBuildExecutor,
|
|
17
17
|
{
|