@storm-software/build-tools 0.151.8 → 0.151.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/README.md +1 -1
- package/dist/{chunk-3Z3XGHR2.mjs → chunk-2XBT7L44.mjs} +2 -2
- package/dist/{chunk-PW2E4KBD.mjs → chunk-46D6MNXS.mjs} +1 -1
- package/dist/{chunk-HDBGACMY.js → chunk-AF2TCIHF.js} +8 -8
- package/dist/{chunk-G473ISDX.mjs → chunk-AFBMMFQN.mjs} +1 -1
- package/dist/{chunk-HXOL4XNP.mjs → chunk-BLY6BYC6.mjs} +1 -1
- package/dist/{chunk-ZDJWHRO7.mjs → chunk-ENFZY5GA.mjs} +1 -1
- package/dist/{chunk-NTFTBMMV.js → chunk-F4WUX2LJ.js} +2 -2
- package/dist/{chunk-LXDS235I.js → chunk-IVICX4OH.js} +8 -8
- package/dist/{chunk-ZPVBBSRY.mjs → chunk-PJ5CGKV4.mjs} +1 -1
- package/dist/{chunk-77VWOMEL.js → chunk-PWWAXIKO.js} +10 -10
- package/dist/{chunk-ZQA63YFS.js → chunk-QEEDXYKL.js} +9 -9
- package/dist/{chunk-WHADZWHO.mjs → chunk-UC4C5SCY.mjs} +1 -1
- package/dist/{chunk-BGIPYCLA.js → chunk-XBURNOOH.js} +84 -84
- package/dist/{chunk-CMTNPFIF.js → chunk-Y4N6UQVD.js} +43 -43
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/plugins/analyze.js +3 -3
- package/dist/plugins/analyze.mjs +2 -2
- package/dist/plugins/index.js +4 -4
- package/dist/plugins/index.mjs +3 -3
- package/dist/plugins/ts-resolve.js +3 -3
- package/dist/plugins/ts-resolve.mjs +2 -2
- package/dist/types-B4rGVLza.d.mts +267 -0
- package/dist/types-B4rGVLza.d.ts +267 -0
- package/dist/types.d.mts +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/utilities/copy-assets.d.mts +2 -2
- package/dist/utilities/copy-assets.d.ts +2 -2
- package/dist/utilities/copy-assets.js +3 -3
- package/dist/utilities/copy-assets.mjs +2 -2
- package/dist/utilities/generate-package-json.d.mts +2 -2
- package/dist/utilities/generate-package-json.d.ts +2 -2
- package/dist/utilities/generate-package-json.js +3 -3
- package/dist/utilities/generate-package-json.mjs +2 -2
- package/dist/utilities/get-entry-points.d.mts +2 -2
- package/dist/utilities/get-entry-points.d.ts +2 -2
- package/dist/utilities/get-entry-points.js +3 -3
- package/dist/utilities/get-entry-points.mjs +2 -2
- package/dist/utilities/get-env.d.mts +2 -2
- package/dist/utilities/get-env.d.ts +2 -2
- package/dist/utilities/index.d.mts +2 -2
- package/dist/utilities/index.d.ts +2 -2
- package/dist/utilities/index.js +6 -6
- package/dist/utilities/index.mjs +5 -5
- package/dist/utilities/read-nx-config.js +3 -3
- package/dist/utilities/read-nx-config.mjs +2 -2
- package/package.json +1 -1
- package/dist/types-BTxn49UW.d.mts +0 -1322
- package/dist/types-BTxn49UW.d.ts +0 -1322
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -265,7 +265,7 @@ If this sounds interesting, and you would like to help us in creating the next g
|
|
|
265
265
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
266
266
|
|
|
267
267
|
// ../config/src/schema.ts
|
|
268
|
-
import z from "zod";
|
|
268
|
+
import * as z from "zod/v4";
|
|
269
269
|
var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
|
|
270
270
|
var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
|
|
271
271
|
var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
|
|
@@ -481,7 +481,7 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
481
481
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
|
|
482
482
|
"Storm theme config values used for styling various package elements"
|
|
483
483
|
),
|
|
484
|
-
extensions: z.record(z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
484
|
+
extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
|
|
485
485
|
}).describe(
|
|
486
486
|
"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
487
487
|
);
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXBURNOOHjs = require('./chunk-XBURNOOH.js');
|
|
7
7
|
|
|
8
8
|
// src/utilities/get-entry-points.ts
|
|
9
9
|
var _glob = require('glob');
|
|
10
10
|
var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
11
|
-
const workspaceRoot = config.workspaceRoot ||
|
|
11
|
+
const workspaceRoot = config.workspaceRoot || _chunkXBURNOOHjs.findWorkspaceRoot.call(void 0, );
|
|
12
12
|
const entryPoints = [];
|
|
13
13
|
if (entry) {
|
|
14
14
|
if (typeof entry === "string") {
|
|
@@ -21,7 +21,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
|
|
|
21
21
|
}
|
|
22
22
|
if (emitOnAll) {
|
|
23
23
|
entryPoints.push(
|
|
24
|
-
|
|
24
|
+
_chunkXBURNOOHjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}")
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
27
|
const results = await Promise.all(
|
|
@@ -34,12 +34,12 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
|
|
|
34
34
|
});
|
|
35
35
|
paths.push(
|
|
36
36
|
...files.reduce((ret, filePath) => {
|
|
37
|
-
const result =
|
|
38
|
-
|
|
37
|
+
const result = _chunkXBURNOOHjs.correctPaths.call(void 0,
|
|
38
|
+
_chunkXBURNOOHjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXBURNOOHjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXBURNOOHjs.correctPaths.call(void 0, projectRoot), "")
|
|
39
39
|
);
|
|
40
40
|
if (result) {
|
|
41
|
-
|
|
42
|
-
`Trying to add entry point ${result} at "${
|
|
41
|
+
_chunkXBURNOOHjs.writeDebug.call(void 0,
|
|
42
|
+
`Trying to add entry point ${result} at "${_chunkXBURNOOHjs.joinPaths.call(void 0,
|
|
43
43
|
filePath.path,
|
|
44
44
|
filePath.name
|
|
45
45
|
)}"`,
|
|
@@ -53,7 +53,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
|
|
|
53
53
|
}, [])
|
|
54
54
|
);
|
|
55
55
|
} else {
|
|
56
|
-
|
|
56
|
+
_chunkXBURNOOHjs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
|
|
57
57
|
if (!paths.includes(entryPoint)) {
|
|
58
58
|
paths.push(entryPoint);
|
|
59
59
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkXBURNOOHjs = require('./chunk-XBURNOOH.js');
|
|
4
4
|
|
|
5
5
|
// src/plugins/analyze.ts
|
|
6
6
|
var formatBytes = (bytes) => {
|
|
@@ -22,7 +22,7 @@ function analyze() {
|
|
|
22
22
|
renderChunk(source, chunk) {
|
|
23
23
|
const sourceBytes = formatBytes(source.length);
|
|
24
24
|
const fileName = chunk.fileName;
|
|
25
|
-
|
|
25
|
+
_chunkXBURNOOHjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
@@ -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 _chunkXBURNOOHjs = require('./chunk-XBURNOOH.js');
|
|
4
4
|
|
|
5
5
|
// src/plugins/ts-resolve.ts
|
|
6
6
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
@@ -26,8 +26,8 @@ var tsResolvePlugin = ({
|
|
|
26
26
|
return {
|
|
27
27
|
name: `storm:ts-resolve`,
|
|
28
28
|
async resolveId(source, importer) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
_chunkXBURNOOHjs.writeDebug.call(void 0, `ts-resolve - resolveId source: ${source}`);
|
|
30
|
+
_chunkXBURNOOHjs.writeDebug.call(void 0, `ts-resolve - resolveId importer: ${importer}`);
|
|
31
31
|
if (!importer) {
|
|
32
32
|
return null;
|
|
33
33
|
}
|
|
@@ -38,7 +38,7 @@ var tsResolvePlugin = ({
|
|
|
38
38
|
return false;
|
|
39
39
|
}
|
|
40
40
|
if (ignore && ignore(source, importer)) {
|
|
41
|
-
|
|
41
|
+
_chunkXBURNOOHjs.writeDebug.call(void 0, `ts-resolve - ignored ${source}`);
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
44
|
if (resolveOnly) {
|
|
@@ -47,12 +47,12 @@ var tsResolvePlugin = ({
|
|
|
47
47
|
return v.test(source);
|
|
48
48
|
});
|
|
49
49
|
if (!shouldResolve) {
|
|
50
|
-
|
|
50
|
+
_chunkXBURNOOHjs.writeDebug.call(void 0, `ts-resolve - skipped by matching resolveOnly ${source}`);
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
if (_path2.default.isAbsolute(source)) {
|
|
55
|
-
|
|
55
|
+
_chunkXBURNOOHjs.writeDebug.call(void 0, `ts-resolve - skipped absolute path: ${source}`);
|
|
56
56
|
return null;
|
|
57
57
|
}
|
|
58
58
|
const basedir = importer ? await _fs2.default.promises.realpath(_path2.default.dirname(importer)) : process.cwd();
|
|
@@ -81,10 +81,10 @@ var tsResolvePlugin = ({
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
if (id) {
|
|
84
|
-
|
|
84
|
+
_chunkXBURNOOHjs.writeDebug.call(void 0, `ts-resolve - resolved ${source} to ${id}`);
|
|
85
85
|
return id;
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
_chunkXBURNOOHjs.writeDebug.call(void 0, `ts-resolve - mark ${source} as external`);
|
|
88
88
|
return false;
|
|
89
89
|
}
|
|
90
90
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXBURNOOHjs = require('./chunk-XBURNOOH.js');
|
|
6
6
|
|
|
7
7
|
// src/utilities/generate-package-json.ts
|
|
8
8
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
@@ -42,7 +42,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
42
42
|
)) {
|
|
43
43
|
const projectNode = project.node;
|
|
44
44
|
if (projectNode.data.root) {
|
|
45
|
-
const projectPackageJsonPath =
|
|
45
|
+
const projectPackageJsonPath = _chunkXBURNOOHjs.joinPaths.call(void 0,
|
|
46
46
|
workspaceRoot,
|
|
47
47
|
projectNode.data.root,
|
|
48
48
|
"package.json"
|
|
@@ -60,11 +60,11 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
if (localPackages.length > 0) {
|
|
63
|
-
|
|
63
|
+
_chunkXBURNOOHjs.writeTrace.call(void 0,
|
|
64
64
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
65
65
|
);
|
|
66
66
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
67
|
-
|
|
67
|
+
_chunkXBURNOOHjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
68
68
|
"utf8"
|
|
69
69
|
);
|
|
70
70
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -77,7 +77,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
77
77
|
}
|
|
78
78
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _9 => _9.projects, 'optionalAccess', _10 => _10[projectName2], 'access', _11 => _11.implicitDependencies, 'optionalAccess', _12 => _12.reduce, 'call', _13 => _13((ret, dep) => {
|
|
79
79
|
if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
|
|
80
|
-
const depPackageJsonPath =
|
|
80
|
+
const depPackageJsonPath = _chunkXBURNOOHjs.joinPaths.call(void 0,
|
|
81
81
|
workspaceRoot,
|
|
82
82
|
projectConfigurations.projects[dep].root,
|
|
83
83
|
"package.json"
|
|
@@ -108,14 +108,14 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
108
108
|
return ret;
|
|
109
109
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
110
110
|
} else {
|
|
111
|
-
|
|
111
|
+
_chunkXBURNOOHjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
112
112
|
}
|
|
113
113
|
return packageJson;
|
|
114
114
|
};
|
|
115
115
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
116
|
-
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
116
|
+
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunkXBURNOOHjs.findWorkspaceRoot.call(void 0, );
|
|
117
117
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
118
|
-
|
|
118
|
+
_chunkXBURNOOHjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
119
119
|
"utf8"
|
|
120
120
|
);
|
|
121
121
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -126,7 +126,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
126
126
|
if (distSrc.startsWith("/")) {
|
|
127
127
|
distSrc = distSrc.substring(1);
|
|
128
128
|
}
|
|
129
|
-
packageJson.source ??= `${
|
|
129
|
+
packageJson.source ??= `${_chunkXBURNOOHjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
130
130
|
}
|
|
131
131
|
packageJson.files ??= ["dist/**/*"];
|
|
132
132
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -151,7 +151,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
151
151
|
packageJson.contributors = [packageJson.author];
|
|
152
152
|
}
|
|
153
153
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
154
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
154
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkXBURNOOHjs.joinPaths.call(void 0, "packages", projectName);
|
|
155
155
|
return packageJson;
|
|
156
156
|
};
|
|
157
157
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXBURNOOHjs = require('./chunk-XBURNOOH.js');
|
|
6
6
|
|
|
7
7
|
// src/utilities/copy-assets.ts
|
|
8
8
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
@@ -34,9 +34,9 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
34
34
|
output: "src/"
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
_chunkXBURNOOHjs.writeTrace.call(void 0,
|
|
38
38
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
39
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
39
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkXBURNOOHjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
40
40
|
config
|
|
41
41
|
);
|
|
42
42
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -47,18 +47,18 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
47
47
|
});
|
|
48
48
|
await assetHandler.processAllAssetsOnce();
|
|
49
49
|
if (includeSrc === true) {
|
|
50
|
-
|
|
51
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
50
|
+
_chunkXBURNOOHjs.writeDebug.call(void 0,
|
|
51
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkXBURNOOHjs.joinPaths.call(void 0,
|
|
52
52
|
outputPath,
|
|
53
53
|
"src"
|
|
54
54
|
)}`,
|
|
55
55
|
config
|
|
56
56
|
);
|
|
57
57
|
const files = await _glob.glob.call(void 0, [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
_chunkXBURNOOHjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
59
|
+
_chunkXBURNOOHjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
60
|
+
_chunkXBURNOOHjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
61
|
+
_chunkXBURNOOHjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
62
62
|
]);
|
|
63
63
|
await Promise.allSettled(
|
|
64
64
|
files.map(
|