@storm-software/workspace-tools 1.294.10 → 1.294.11
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 +19 -0
- package/README.md +2 -1
- package/dist/{chunk-DK3UBNIE.mjs → chunk-2OYCCICJ.mjs} +1 -1
- package/dist/{chunk-QYHQD375.mjs → chunk-2QMGYIOO.mjs} +1 -1
- package/dist/{chunk-GSZ2BO7G.mjs → chunk-3J2CP54B.mjs} +1 -3
- package/dist/{chunk-HFXXGJRH.js → chunk-3T64LUNP.js} +2 -2
- package/dist/{chunk-QU7P2GBV.mjs → chunk-3WCCKGWO.mjs} +1 -1
- package/dist/{chunk-4KWCRJ42.js → chunk-4GHVWMHE.js} +2 -2
- package/dist/{chunk-73YOO2B5.js → chunk-5FIKIPZW.js} +7 -7
- package/dist/{chunk-LOAR62VZ.js → chunk-5G4PATLH.js} +2 -2
- package/dist/{chunk-KXLPRYBL.js → chunk-5O25TKHC.js} +7 -7
- package/dist/{chunk-GE2RNRVQ.js → chunk-6N7EMPGL.js} +2 -2
- package/dist/{chunk-U7S4BEIK.mjs → chunk-6PFAU5XI.mjs} +4 -4
- package/dist/{chunk-RIWQVAMX.js → chunk-6TMK5JR2.js} +11 -11
- package/dist/{chunk-7OGVJELA.js → chunk-6UJMT3W5.js} +6 -6
- package/dist/{chunk-YZCS5LKY.mjs → chunk-AGUQYTSQ.mjs} +1 -1
- package/dist/{chunk-P6JV6ABK.mjs → chunk-AH7KAAQJ.mjs} +1 -1
- package/dist/{chunk-65F3OZIF.mjs → chunk-AOETUPU5.mjs} +1 -1
- package/dist/{chunk-ASZ5SAXJ.mjs → chunk-ASZOMYCS.mjs} +1 -1
- package/dist/{chunk-44IQ5DGO.mjs → chunk-BAVHV5RH.mjs} +2 -2
- package/dist/{chunk-R5MXU5BG.js → chunk-DIUWF7BW.js} +2 -2
- package/dist/{chunk-46BG6NUY.js → chunk-EMCTCFOX.js} +2 -2
- package/dist/{chunk-WI26APPF.js → chunk-EVPYSTFN.js} +2 -2
- package/dist/{chunk-T5345GNL.mjs → chunk-FORQKF7Q.mjs} +1 -1
- package/dist/{chunk-VLLHDGHA.mjs → chunk-H7GLZOOC.mjs} +3 -3
- package/dist/{chunk-LYJNZCO4.mjs → chunk-HX75TMCP.mjs} +1 -1
- package/dist/{chunk-ML2VHRB6.js → chunk-HXQRGLII.js} +2 -2
- package/dist/{chunk-BXU3UQQF.mjs → chunk-IKTHRMUF.mjs} +1 -1
- package/dist/{chunk-L7PM76XK.js → chunk-IPYOIFXP.js} +2 -2
- package/dist/{chunk-V4QXOWGL.mjs → chunk-JM62BQSM.mjs} +3 -3
- package/dist/{chunk-C7TDCMF3.js → chunk-KV6U4IX6.js} +2 -2
- package/dist/{chunk-X3JM5ONC.js → chunk-LB7DV74C.js} +2 -2
- package/dist/{chunk-MLGPE4F7.mjs → chunk-LDAAAQLZ.mjs} +1 -1
- package/dist/{chunk-322ASCCN.js → chunk-LMYTVXGX.js} +1 -3
- package/dist/{chunk-EOQB5BBV.js → chunk-LYXDMWXF.js} +2 -2
- package/dist/{chunk-BWI3GPA4.mjs → chunk-MCVES7TN.mjs} +1 -1
- package/dist/{chunk-MENBSPZ6.mjs → chunk-MPUFSH52.mjs} +1 -1
- package/dist/{chunk-3GKMFXQ6.js → chunk-N3LEHWBY.js} +8 -8
- package/dist/{chunk-3X7FM2RU.mjs → chunk-NT3NFCMA.mjs} +1 -1
- package/dist/{chunk-Z2GJI23Y.mjs → chunk-NURKEB3S.mjs} +1 -1
- package/dist/{chunk-2ZQ423JU.mjs → chunk-PHVIQYYJ.mjs} +3 -3
- package/dist/{chunk-3L2TGJ7P.js → chunk-QEHJJFRA.js} +14 -14
- package/dist/{chunk-R2H2PZOY.js → chunk-RXSB4AVK.js} +2 -2
- package/dist/{chunk-3ZXQER7B.mjs → chunk-SJCAWCXW.mjs} +1 -1
- package/dist/{chunk-HYK7X5TY.js → chunk-SVIR2XZM.js} +7 -7
- package/dist/{chunk-QKCIIWYL.js → chunk-SVWY4Z75.js} +2 -2
- package/dist/{chunk-P3ARBU5S.mjs → chunk-SXC4J7LO.mjs} +1 -1
- package/dist/{chunk-ERLIBMRM.mjs → chunk-T2MIMLK4.mjs} +1 -1
- package/dist/{chunk-RMVPAFL5.js → chunk-TKN4IGLS.js} +2 -2
- package/dist/{chunk-WHGUOK37.mjs → chunk-UBVTASOE.mjs} +1 -1
- package/dist/{chunk-I6XZ4REQ.js → chunk-VHTTZP53.js} +2 -2
- package/dist/{chunk-ZHQMYWUC.mjs → chunk-VWP4LOTY.mjs} +1 -1
- package/dist/{chunk-YXJ3YDLQ.js → chunk-VXHOSAQ7.js} +2 -2
- package/dist/{chunk-YHHWYI4X.mjs → chunk-X3HM2IHO.mjs} +3 -3
- package/dist/{chunk-B7RA32TM.js → chunk-X3ZCGPHB.js} +2 -2
- package/dist/{chunk-UASDV4HB.js → chunk-YK4JWL7A.js} +2 -2
- package/dist/executors.js +18 -18
- package/dist/executors.mjs +17 -17
- package/dist/generators.js +10 -10
- package/dist/generators.mjs +9 -9
- package/dist/index.js +28 -28
- package/dist/index.mjs +27 -27
- package/dist/src/base/base-executor.js +5 -5
- package/dist/src/base/base-executor.mjs +4 -4
- package/dist/src/base/base-generator.js +5 -5
- package/dist/src/base/base-generator.mjs +4 -4
- package/dist/src/base/index.js +6 -6
- package/dist/src/base/index.mjs +5 -5
- package/dist/src/executors/cargo-build/executor.js +6 -6
- package/dist/src/executors/cargo-build/executor.mjs +5 -5
- package/dist/src/executors/cargo-check/executor.js +6 -6
- package/dist/src/executors/cargo-check/executor.mjs +5 -5
- package/dist/src/executors/cargo-clippy/executor.js +6 -6
- package/dist/src/executors/cargo-clippy/executor.mjs +5 -5
- package/dist/src/executors/cargo-doc/executor.js +6 -6
- package/dist/src/executors/cargo-doc/executor.mjs +5 -5
- package/dist/src/executors/cargo-format/executor.js +6 -6
- package/dist/src/executors/cargo-format/executor.mjs +5 -5
- package/dist/src/executors/clean-package/executor.js +5 -5
- package/dist/src/executors/clean-package/executor.mjs +4 -4
- package/dist/src/executors/esbuild/executor.js +7 -7
- package/dist/src/executors/esbuild/executor.mjs +6 -6
- package/dist/src/executors/napi/executor.js +6 -6
- package/dist/src/executors/napi/executor.mjs +5 -5
- package/dist/src/executors/npm-publish/executor.js +4 -4
- package/dist/src/executors/npm-publish/executor.mjs +3 -3
- package/dist/src/executors/size-limit/executor.js +6 -6
- package/dist/src/executors/size-limit/executor.mjs +5 -5
- package/dist/src/executors/tsdown/executor.js +7 -7
- package/dist/src/executors/tsdown/executor.mjs +6 -6
- package/dist/src/executors/typia/executor.js +6 -6
- package/dist/src/executors/typia/executor.mjs +5 -5
- package/dist/src/executors/unbuild/executor.js +6 -6
- package/dist/src/executors/unbuild/executor.mjs +5 -5
- package/dist/src/generators/browser-library/generator.js +6 -6
- package/dist/src/generators/browser-library/generator.mjs +5 -5
- package/dist/src/generators/config-schema/generator.js +6 -6
- package/dist/src/generators/config-schema/generator.mjs +5 -5
- package/dist/src/generators/neutral-library/generator.js +6 -6
- package/dist/src/generators/neutral-library/generator.mjs +5 -5
- package/dist/src/generators/node-library/generator.js +6 -6
- package/dist/src/generators/node-library/generator.mjs +5 -5
- package/dist/src/generators/preset/generator.js +6 -6
- package/dist/src/generators/preset/generator.mjs +5 -5
- package/dist/src/release/index.js +5 -5
- package/dist/src/release/index.mjs +4 -4
- package/dist/src/release/js-version-actions.js +4 -4
- package/dist/src/release/js-version-actions.mjs +3 -3
- package/dist/src/release/rust-version-actions.js +4 -4
- package/dist/src/release/rust-version-actions.mjs +3 -3
- 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.js +4 -4
- package/dist/src/utils/index.mjs +3 -3
- package/package.json +9 -9
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5FIKIPZWjs = require('./chunk-5FIKIPZW.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-format/executor.ts
|
|
10
10
|
async function cargoFormatExecutor(options, context) {
|
|
11
11
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "fmt", options, context);
|
|
12
12
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunk5FIKIPZWjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Format",
|
|
16
16
|
cargoFormatExecutor,
|
|
17
17
|
{
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5FIKIPZWjs = require('./chunk-5FIKIPZW.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-check/executor.ts
|
|
10
10
|
async function cargoCheckExecutor(options, context) {
|
|
11
11
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "check", options, context);
|
|
12
12
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunk5FIKIPZWjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Check",
|
|
16
16
|
cargoCheckExecutor,
|
|
17
17
|
{
|
|
@@ -14,9 +14,7 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
|
14
14
|
)) {
|
|
15
15
|
return _startPath;
|
|
16
16
|
}
|
|
17
|
-
if (endFileNames.some(
|
|
18
|
-
(endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName))
|
|
19
|
-
)) {
|
|
17
|
+
if (endFileNames.some((endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName)))) {
|
|
20
18
|
return _startPath;
|
|
21
19
|
}
|
|
22
20
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunk5FIKIPZWjs = require('./chunk-5FIKIPZW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk4BWM53AAjs = require('./chunk-4BWM53AA.js');
|
|
@@ -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 = _chunk5FIKIPZWjs.withRunExecutor.call(void 0,
|
|
84
84
|
"TypeScript Unbuild build",
|
|
85
85
|
unbuildExecutorFn,
|
|
86
86
|
{
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var _chunkLZC7BM3Djs = require('./chunk-LZC7BM3D.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6UJMT3W5js = require('./chunk-6UJMT3W5.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -35,7 +35,7 @@ async function getNpmRegistry() {
|
|
|
35
35
|
if (process.env.STORM_REGISTRY_NPM) {
|
|
36
36
|
return process.env.STORM_REGISTRY_NPM;
|
|
37
37
|
}
|
|
38
|
-
const workspaceConfig = await
|
|
38
|
+
const workspaceConfig = await _chunk6UJMT3W5js.getConfig.call(void 0, );
|
|
39
39
|
if (_optionalChain([workspaceConfig, 'optionalAccess', _ => _.registry, 'optionalAccess', _2 => _2.npm])) {
|
|
40
40
|
return _optionalChain([workspaceConfig, 'optionalAccess', _3 => _3.registry, 'optionalAccess', _4 => _4.npm]);
|
|
41
41
|
}
|
|
@@ -61,7 +61,7 @@ var _semver = require('semver');
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
var _yaml = require('yaml');
|
|
64
|
-
function getPnpmWorkspaceFilePath(workspaceRoot =
|
|
64
|
+
function getPnpmWorkspaceFilePath(workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, process.cwd())) {
|
|
65
65
|
const pnpmWorkspacePath = _chunkCQDBLKPFjs.joinPaths.call(void 0, workspaceRoot, "pnpm-workspace.yaml");
|
|
66
66
|
if (!_fs.existsSync.call(void 0, pnpmWorkspacePath)) {
|
|
67
67
|
throw new Error(
|
|
@@ -70,7 +70,7 @@ function getPnpmWorkspaceFilePath(workspaceRoot = _chunk322ASCCNjs.findWorkspace
|
|
|
70
70
|
}
|
|
71
71
|
return pnpmWorkspacePath;
|
|
72
72
|
}
|
|
73
|
-
async function readPnpmWorkspaceFile(workspaceRoot =
|
|
73
|
+
async function readPnpmWorkspaceFile(workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, process.cwd())) {
|
|
74
74
|
const result = await _promises.readFile.call(void 0,
|
|
75
75
|
getPnpmWorkspaceFilePath(workspaceRoot),
|
|
76
76
|
"utf8"
|
|
@@ -82,7 +82,7 @@ async function readPnpmWorkspaceFile(workspaceRoot = _chunk322ASCCNjs.findWorksp
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
85
|
-
async function getCatalogSafe(workspaceRoot =
|
|
85
|
+
async function getCatalogSafe(workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, process.cwd())) {
|
|
86
86
|
const pnpmWorkspaceFile = await readPnpmWorkspaceFile(workspaceRoot);
|
|
87
87
|
if (!pnpmWorkspaceFile) {
|
|
88
88
|
throw new Error("No pnpm-workspace.yaml file found");
|
|
@@ -105,7 +105,7 @@ File content: ${JSON.stringify(
|
|
|
105
105
|
}
|
|
106
106
|
return void 0;
|
|
107
107
|
}
|
|
108
|
-
async function getCatalog(workspaceRoot =
|
|
108
|
+
async function getCatalog(workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, process.cwd())) {
|
|
109
109
|
const catalog = await getCatalogSafe(workspaceRoot);
|
|
110
110
|
if (!catalog) {
|
|
111
111
|
throw new Error("No catalog entries found in pnpm-workspace.yaml file");
|
|
@@ -114,7 +114,7 @@ async function getCatalog(workspaceRoot = _chunk322ASCCNjs.findWorkspaceRoot.cal
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
117
|
-
async function replaceDepsAliases(packageRoot = process.cwd(), workspaceRoot =
|
|
117
|
+
async function replaceDepsAliases(packageRoot = process.cwd(), workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, packageRoot)) {
|
|
118
118
|
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0, packageRoot, "package.json");
|
|
119
119
|
const packageJsonFile = await _promises.readFile.call(void 0, packageJsonPath, "utf8");
|
|
120
120
|
if (!packageJsonFile) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceBaseTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2QMGYIOO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FORQKF7Q.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getStopwatch,
|
|
10
10
|
writeDebug,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-6MATO2MJ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3J2CP54B.mjs";
|
|
20
20
|
|
|
21
21
|
// src/base/base-generator.ts
|
|
22
22
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk6N7EMPGLjs = require('./chunk-6N7EMPGL.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk5FIKIPZWjs = require('./chunk-5FIKIPZW.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk6UJMT3W5js = require('./chunk-6UJMT3W5.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -22,7 +22,7 @@ var _chunk7OGVJELAjs = require('./chunk-7OGVJELA.js');
|
|
|
22
22
|
var _chunk4BWM53AAjs = require('./chunk-4BWM53AA.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
@@ -75,11 +75,11 @@ function toTSDownFormat(format) {
|
|
|
75
75
|
// ../tsdown/src/build.ts
|
|
76
76
|
var resolveOptions = async (userOptions) => {
|
|
77
77
|
const options = getDefaultOptions(userOptions);
|
|
78
|
-
const workspaceRoot =
|
|
78
|
+
const workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, options.projectRoot);
|
|
79
79
|
if (!workspaceRoot) {
|
|
80
80
|
throw new Error("Cannot find Nx workspace root");
|
|
81
81
|
}
|
|
82
|
-
const workspaceConfig = await
|
|
82
|
+
const workspaceConfig = await _chunk6UJMT3W5js.getWorkspaceConfig.call(void 0, options.debug === true, {
|
|
83
83
|
workspaceRoot
|
|
84
84
|
});
|
|
85
85
|
_chunk4BWM53AAjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
@@ -117,7 +117,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
117
117
|
const result = {
|
|
118
118
|
name: projectName,
|
|
119
119
|
mode: "production",
|
|
120
|
-
target:
|
|
120
|
+
target: _chunk6N7EMPGLjs.DEFAULT_TARGET,
|
|
121
121
|
generatePackageJson: true,
|
|
122
122
|
outDir: _chunkCQDBLKPFjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
123
123
|
minify: !debug,
|
|
@@ -149,7 +149,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
149
149
|
};
|
|
150
150
|
result.env = _defu2.default.call(void 0,
|
|
151
151
|
options.env,
|
|
152
|
-
|
|
152
|
+
_chunk6N7EMPGLjs.getEnv.call(void 0, "tsdown", result)
|
|
153
153
|
);
|
|
154
154
|
stopwatch();
|
|
155
155
|
return result;
|
|
@@ -174,13 +174,13 @@ async function generatePackageJson(options) {
|
|
|
174
174
|
throw new Error("Cannot find package.json configuration file");
|
|
175
175
|
}
|
|
176
176
|
let packageJson = JSON.parse(packageJsonFile);
|
|
177
|
-
packageJson = await
|
|
177
|
+
packageJson = await _chunk6N7EMPGLjs.addPackageDependencies.call(void 0,
|
|
178
178
|
options.workspaceConfig.workspaceRoot,
|
|
179
179
|
options.projectRoot,
|
|
180
180
|
options.projectName,
|
|
181
181
|
packageJson
|
|
182
182
|
);
|
|
183
|
-
packageJson = await
|
|
183
|
+
packageJson = await _chunk6N7EMPGLjs.addWorkspacePackageJsonFields.call(void 0,
|
|
184
184
|
options.workspaceConfig,
|
|
185
185
|
options.projectRoot,
|
|
186
186
|
options.sourceRoot,
|
|
@@ -190,7 +190,7 @@ async function generatePackageJson(options) {
|
|
|
190
190
|
);
|
|
191
191
|
packageJson.exports ??= {};
|
|
192
192
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
193
|
-
packageJson.exports["."] ??=
|
|
193
|
+
packageJson.exports["."] ??= _chunk6N7EMPGLjs.addPackageJsonExport.call(void 0,
|
|
194
194
|
"index",
|
|
195
195
|
packageJson.type,
|
|
196
196
|
options.sourceRoot
|
|
@@ -206,7 +206,7 @@ async function generatePackageJson(options) {
|
|
|
206
206
|
const split = entryPoint.out.split(".");
|
|
207
207
|
split.pop();
|
|
208
208
|
const entry2 = split.join(".").replaceAll("\\", "/");
|
|
209
|
-
packageJson.exports[`./${entry2}`] ??=
|
|
209
|
+
packageJson.exports[`./${entry2}`] ??= _chunk6N7EMPGLjs.addPackageJsonExport.call(void 0,
|
|
210
210
|
entry2,
|
|
211
211
|
options.fixedExtension ? "fixed" : packageJson.type,
|
|
212
212
|
options.sourceRoot
|
|
@@ -247,7 +247,7 @@ async function copyBuildAssets(options) {
|
|
|
247
247
|
options.workspaceConfig
|
|
248
248
|
);
|
|
249
249
|
const stopwatch = _chunk4BWM53AAjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
250
|
-
await
|
|
250
|
+
await _chunk6N7EMPGLjs.copyAssets.call(void 0,
|
|
251
251
|
options.workspaceConfig,
|
|
252
252
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
253
253
|
options.outDir,
|
|
@@ -341,7 +341,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
341
341
|
success: true
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
|
-
var executor_default =
|
|
344
|
+
var executor_default = _chunk5FIKIPZWjs.withRunExecutor.call(void 0,
|
|
345
345
|
"Storm TSDown build",
|
|
346
346
|
tsdownExecutorFn,
|
|
347
347
|
{
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5FIKIPZWjs = require('./chunk-5FIKIPZW.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-clippy/executor.ts
|
|
10
10
|
async function cargoClippyExecutor(options, context) {
|
|
11
11
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "clippy", options, context);
|
|
12
12
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunk5FIKIPZWjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Clippy",
|
|
16
16
|
cargoClippyExecutor,
|
|
17
17
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkHXQRGLIIjs = require('./chunk-HXQRGLII.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6UJMT3W5js = require('./chunk-6UJMT3W5.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ var _chunk7OGVJELAjs = require('./chunk-7OGVJELA.js');
|
|
|
16
16
|
var _chunk4BWM53AAjs = require('./chunk-4BWM53AA.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
20
20
|
|
|
21
21
|
// src/base/base-generator.ts
|
|
22
22
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
@@ -29,14 +29,14 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
29
29
|
_chunk4BWM53AAjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
30
30
|
|
|
31
31
|
`, config);
|
|
32
|
-
const workspaceRoot =
|
|
32
|
+
const workspaceRoot = _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, );
|
|
33
33
|
if (!generatorOptions.skipReadingConfig) {
|
|
34
34
|
_chunk4BWM53AAjs.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 _chunk6UJMT3W5js.getConfig.call(void 0, workspaceRoot);
|
|
40
40
|
}
|
|
41
41
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
42
42
|
_chunk4BWM53AAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
@@ -50,10 +50,10 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
50
50
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
51
51
|
config
|
|
52
52
|
);
|
|
53
|
-
const tokenized = await
|
|
53
|
+
const tokenized = await _chunkHXQRGLIIjs.applyWorkspaceTokens.call(void 0,
|
|
54
54
|
options,
|
|
55
55
|
{ workspaceRoot: tree.root, config },
|
|
56
|
-
|
|
56
|
+
_chunkHXQRGLIIjs.applyWorkspaceBaseTokens
|
|
57
57
|
);
|
|
58
58
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
59
59
|
_chunk4BWM53AAjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkSZWM7COVjs = require('./chunk-SZWM7COV.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSVIR2XZMjs = require('./chunk-SVIR2XZM.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 = _chunkSVIR2XZMjs.withRunGenerator.call(void 0,
|
|
243
243
|
"Storm Workspace Preset Generator",
|
|
244
244
|
presetGeneratorFn
|
|
245
245
|
);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk5FIKIPZWjs = require('./chunk-5FIKIPZW.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -89,7 +89,7 @@ async function napiExecutor(options, context, config) {
|
|
|
89
89
|
const { task } = await napi.build(normalizedOptions);
|
|
90
90
|
return { success: true, terminalOutput: await task };
|
|
91
91
|
}
|
|
92
|
-
var executor_default =
|
|
92
|
+
var executor_default = _chunk5FIKIPZWjs.withRunExecutor.call(void 0,
|
|
93
93
|
"Napi - Build Bindings",
|
|
94
94
|
napiExecutor,
|
|
95
95
|
{
|
|
@@ -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 _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 _chunk5FIKIPZWjs = require('./chunk-5FIKIPZW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk4BWM53AAjs = require('./chunk-4BWM53AA.js');
|
|
@@ -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 = _chunk5FIKIPZWjs.withRunExecutor.call(void 0,
|
|
37
37
|
"Size-Limit Performance Test Executor",
|
|
38
38
|
sizeLimitExecutorFn,
|
|
39
39
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
|
|
4
4
|
|
|
5
5
|
// src/utils/apply-workspace-tokens.ts
|
|
6
6
|
var applyWorkspaceExecutorTokens = async (option, tokenizerOptions) => {
|
|
@@ -51,7 +51,7 @@ var applyWorkspaceExecutorTokens = async (option, tokenizerOptions) => {
|
|
|
51
51
|
if (result.includes("{workspaceRoot}")) {
|
|
52
52
|
result = result.replaceAll(
|
|
53
53
|
"{workspaceRoot}",
|
|
54
|
-
_nullishCoalesce(tokenizerOptions.workspaceRoot, () => (
|
|
54
|
+
_nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, )))
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
57
|
return result;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PHVIQYYJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
schemaRegistry,
|
|
6
6
|
workspaceConfigSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FORQKF7Q.mjs";
|
|
8
8
|
import {
|
|
9
9
|
writeInfo,
|
|
10
10
|
writeSuccess,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-6MATO2MJ.mjs";
|
|
13
13
|
import {
|
|
14
14
|
findWorkspaceRoot
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3J2CP54B.mjs";
|
|
16
16
|
|
|
17
17
|
// src/generators/config-schema/generator.ts
|
|
18
18
|
import { formatFiles, writeJson } from "@nx/devkit";
|
|
@@ -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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk6UJMT3W5js = require('./chunk-6UJMT3W5.js');
|
|
4
4
|
|
|
5
5
|
// src/release/js-version-actions.ts
|
|
6
6
|
var _versionactionsjs = require('@nx/js/src/release/version-actions.js'); var _versionactionsjs2 = _interopRequireDefault(_versionactionsjs);
|
|
@@ -24,7 +24,7 @@ var StormJsVersionActions = (_class = class extends _versionactionsjs2.default {
|
|
|
24
24
|
* @params tree - The file system tree to read from.
|
|
25
25
|
*/
|
|
26
26
|
async init(tree) {
|
|
27
|
-
this.workspaceConfig = await
|
|
27
|
+
this.workspaceConfig = await _chunk6UJMT3W5js.getWorkspaceConfig.call(void 0, );
|
|
28
28
|
return super.init(tree);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5FIKIPZWjs = require('./chunk-5FIKIPZW.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-doc/executor.ts
|
|
10
10
|
async function cargoDocExecutor(options, context) {
|
|
@@ -14,7 +14,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
14
14
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "doc", options, context);
|
|
15
15
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
16
16
|
}
|
|
17
|
-
var executor_default =
|
|
17
|
+
var executor_default = _chunk5FIKIPZWjs.withRunExecutor.call(void 0,
|
|
18
18
|
"Cargo - Doc",
|
|
19
19
|
cargoDocExecutor,
|
|
20
20
|
{
|
package/dist/executors.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-P6HSE7LH.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkVHTTZP53js = require('./chunk-VHTTZP53.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQEHJJFRAjs = require('./chunk-QEHJJFRA.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkEMCTCFOXjs = require('./chunk-EMCTCFOX.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkLYXDMWXFjs = require('./chunk-LYXDMWXF.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
17
|
-
require('./chunk-
|
|
16
|
+
var _chunk6TMK5JR2js = require('./chunk-6TMK5JR2.js');
|
|
17
|
+
require('./chunk-6N7EMPGL.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkTKN4IGLSjs = require('./chunk-TKN4IGLS.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkN3LEHWBYjs = require('./chunk-N3LEHWBY.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkRXSB4AVKjs = require('./chunk-RXSB4AVK.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkYK4JWL7Ajs = require('./chunk-YK4JWL7A.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkKV6U4IX6js = require('./chunk-KV6U4IX6.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunk66Q42VH2js = require('./chunk-66Q42VH2.js');
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunk3T64LUNPjs = require('./chunk-3T64LUNP.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkLB7DV74Cjs = require('./chunk-LB7DV74C.js');
|
|
42
42
|
require('./chunk-D2PV33E5.js');
|
|
43
43
|
require('./chunk-LZC7BM3D.js');
|
|
44
44
|
require('./chunk-GXTFFUML.js');
|
|
45
45
|
require('./chunk-UHTWNVEZ.js');
|
|
46
|
-
require('./chunk-
|
|
47
|
-
require('./chunk-
|
|
48
|
-
require('./chunk-
|
|
46
|
+
require('./chunk-5FIKIPZW.js');
|
|
47
|
+
require('./chunk-HXQRGLII.js');
|
|
48
|
+
require('./chunk-6UJMT3W5.js');
|
|
49
49
|
require('./chunk-4BWM53AA.js');
|
|
50
|
-
require('./chunk-
|
|
50
|
+
require('./chunk-LMYTVXGX.js');
|
|
51
51
|
require('./chunk-CQDBLKPF.js');
|
|
52
52
|
|
|
53
53
|
|
|
@@ -63,4 +63,4 @@ require('./chunk-CQDBLKPF.js');
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
exports.LARGE_BUFFER =
|
|
66
|
+
exports.LARGE_BUFFER = _chunkN3LEHWBYjs.LARGE_BUFFER; exports.cargoBuildExecutor = _chunk3T64LUNPjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkLB7DV74Cjs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkRXSB4AVKjs.cargoClippyExecutor; exports.cargoDocExecutor = _chunkYK4JWL7Ajs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkKV6U4IX6js.cargoFormatExecutor; exports.esbuildExecutorFn = _chunk6TMK5JR2js.esbuildExecutorFn; exports.getRegistryVersion = _chunk66Q42VH2js.getRegistryVersion; exports.napiExecutor = _chunkTKN4IGLSjs.napiExecutor; exports.sizeLimitExecutorFn = _chunkVHTTZP53js.sizeLimitExecutorFn; exports.tsdownExecutorFn = _chunkQEHJJFRAjs.tsdownExecutorFn; exports.typiaExecutorFn = _chunkEMCTCFOXjs.typiaExecutorFn; exports.unbuildExecutorFn = _chunkLYXDMWXFjs.unbuildExecutorFn;
|