@storm-software/build-tools 0.144.19 → 0.144.21
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-6KESXKM3.mjs → chunk-2IACGL5A.mjs} +69 -34
- package/dist/{chunk-XLAPHZPX.mjs → chunk-3VZVP5XV.mjs} +0 -5
- package/dist/{chunk-MY55IIR6.js → chunk-673CAI2G.js} +5 -14
- package/dist/{chunk-M5AC3COW.mjs → chunk-7NL4YIH3.mjs} +4 -13
- package/dist/{chunk-LCPSDCDB.mjs → chunk-7YKXR5JJ.mjs} +1 -8
- package/dist/{chunk-F7WSCB6H.js → chunk-A75DEKU5.js} +1 -6
- package/dist/{chunk-H2MR24BL.mjs → chunk-BKMDH7XQ.mjs} +10 -16
- package/dist/chunk-D7ZBIHS7.mjs +76 -0
- package/dist/{chunk-STJ5NLSZ.mjs → chunk-DLSOQQ2X.mjs} +24 -11
- package/dist/{chunk-LWYVLXCJ.js → chunk-ECGZDTG2.js} +72 -37
- package/dist/{chunk-NSNKG4UV.js → chunk-EGKFW7BM.js} +168 -114
- package/dist/{chunk-T2R2KKTW.mjs → chunk-HGTDDXA5.mjs} +2 -5
- package/dist/{chunk-2TV7ZJSK.js → chunk-HQD5ZBIU.js} +2 -9
- package/dist/{chunk-A6F6NNS6.mjs → chunk-JJQN3HTQ.mjs} +183 -119
- package/dist/{chunk-CNURHK3D.mjs → chunk-KUEYIH7W.mjs} +2 -6
- package/dist/{chunk-Y3HRAWPU.js → chunk-N7HP2YYE.js} +9 -8
- package/dist/chunk-ODQKLK6L.mjs +69 -0
- package/dist/{chunk-CNKJQMCL.js → chunk-TABRPMJB.js} +28 -15
- package/dist/{chunk-JP4YIUPA.js → chunk-TQIOTV5X.js} +25 -21
- package/dist/{chunk-4Y7DUAMQ.js → chunk-TSUTFOQG.js} +17 -23
- package/dist/{chunk-PBTSVWXL.js → chunk-UHJ5ACWH.js} +3 -7
- package/dist/chunk-UNY7ZVZF.js +76 -0
- package/dist/{chunk-VQUREEMI.mjs → chunk-VGLIZ2H3.mjs} +8 -7
- package/dist/{chunk-QKEUU3L3.mjs → chunk-VWJLKDCB.mjs} +141 -87
- package/dist/{chunk-5HOBE4TZ.js → chunk-WLW3DA6X.js} +2 -5
- package/dist/{chunk-VSAQXEXD.js → chunk-WNMPQTPH.js} +39 -31
- package/dist/{chunk-QCTHJR6E.js → chunk-XXESPGZP.js} +184 -120
- package/dist/{chunk-67VZRCF5.mjs → chunk-YZ6ZTM5M.mjs} +27 -23
- package/dist/config.js +0 -1
- package/dist/config.mjs +0 -1
- package/dist/index.js +16 -17
- package/dist/index.mjs +15 -16
- package/dist/plugins/analyze.js +3 -4
- package/dist/plugins/analyze.mjs +2 -3
- package/dist/plugins/index.js +6 -7
- package/dist/plugins/index.mjs +5 -6
- package/dist/plugins/swc.js +2 -3
- package/dist/plugins/swc.mjs +1 -2
- package/dist/plugins/ts-resolve.js +3 -4
- package/dist/plugins/ts-resolve.mjs +2 -3
- package/dist/plugins/type-definitions.js +2 -3
- package/dist/plugins/type-definitions.mjs +1 -2
- package/dist/types.js +1 -1
- package/dist/types.mjs +1 -1
- package/dist/utilities/copy-assets.js +3 -4
- package/dist/utilities/copy-assets.mjs +2 -3
- package/dist/utilities/generate-package-json.js +3 -4
- package/dist/utilities/generate-package-json.mjs +2 -3
- package/dist/utilities/get-entry-points.js +3 -4
- package/dist/utilities/get-entry-points.mjs +2 -3
- package/dist/utilities/get-env.js +2 -3
- package/dist/utilities/get-env.mjs +1 -2
- package/dist/utilities/get-file-banner.js +2 -3
- package/dist/utilities/get-file-banner.mjs +1 -2
- package/dist/utilities/get-out-extension.js +2 -3
- package/dist/utilities/get-out-extension.mjs +1 -2
- package/dist/utilities/get-project-deps.js +2 -3
- package/dist/utilities/get-project-deps.mjs +1 -2
- package/dist/utilities/index.js +11 -12
- package/dist/utilities/index.mjs +10 -11
- package/dist/utilities/read-nx-config.js +3 -4
- package/dist/utilities/read-nx-config.mjs +2 -3
- package/dist/utilities/task-graph.js +2 -3
- package/dist/utilities/task-graph.mjs +1 -2
- package/package.json +1 -1
- package/dist/chunk-O6YSETKJ.mjs +0 -6
- package/dist/chunk-S5V4ROWC.js +0 -67
- package/dist/chunk-S7LT43EW.mjs +0 -67
- package/dist/chunk-SHUYVCID.js +0 -6
- package/dist/chunk-ZW5JWBA4.mjs +0 -61
- /package/dist/{chunk-GGNOJ77I.js → chunk-6F4PWJZI.js} +0 -0
- /package/dist/{chunk-WAXGOBY2.mjs → chunk-WBQAMGXK.mjs} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/build-tools",
|
|
3
|
-
"version": "0.144.
|
|
3
|
+
"version": "0.144.21",
|
|
4
4
|
"description": "A comprehensive set of tools for building and managing projects within a Storm workspace. Includes builders such as rollup, rolldown, tsup, and unbuild, along with various utilities.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
package/dist/chunk-O6YSETKJ.mjs
DELETED
package/dist/chunk-S5V4ROWC.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkQCTHJR6Ejs = require('./chunk-QCTHJR6E.js');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunkSHUYVCIDjs = require('./chunk-SHUYVCID.js');
|
|
10
|
-
|
|
11
|
-
// src/utilities/get-entry-points.ts
|
|
12
|
-
var _glob = require('glob');
|
|
13
|
-
var getEntryPoints = /* @__PURE__ */ _chunkSHUYVCIDjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
14
|
-
const workspaceRoot = config.workspaceRoot || _chunkQCTHJR6Ejs.findWorkspaceRoot.call(void 0, );
|
|
15
|
-
const entryPoints = [];
|
|
16
|
-
if (entry) {
|
|
17
|
-
if (typeof entry === "string") {
|
|
18
|
-
entryPoints.push(entry);
|
|
19
|
-
} else if (Array.isArray(entry)) {
|
|
20
|
-
entryPoints.push(...entry);
|
|
21
|
-
} else {
|
|
22
|
-
entryPoints.push(...Object.values(entry));
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (emitOnAll) {
|
|
26
|
-
entryPoints.push(_chunkQCTHJR6Ejs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
27
|
-
}
|
|
28
|
-
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
29
|
-
const paths = [];
|
|
30
|
-
if (entryPoint.includes("*")) {
|
|
31
|
-
const files = await _glob.glob.call(void 0, entryPoint, {
|
|
32
|
-
withFileTypes: true,
|
|
33
|
-
ignore: [
|
|
34
|
-
"**/node_modules/**"
|
|
35
|
-
]
|
|
36
|
-
});
|
|
37
|
-
paths.push(...files.reduce((ret, filePath) => {
|
|
38
|
-
const result = _chunkQCTHJR6Ejs.correctPaths.call(void 0, _chunkQCTHJR6Ejs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkQCTHJR6Ejs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkQCTHJR6Ejs.correctPaths.call(void 0, projectRoot), ""));
|
|
39
|
-
if (result) {
|
|
40
|
-
_chunkQCTHJR6Ejs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkQCTHJR6Ejs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
41
|
-
if (!paths.includes(result)) {
|
|
42
|
-
paths.push(result);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return ret;
|
|
46
|
-
}, []));
|
|
47
|
-
} else {
|
|
48
|
-
_chunkQCTHJR6Ejs.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
|
|
49
|
-
if (!paths.includes(entryPoint)) {
|
|
50
|
-
paths.push(entryPoint);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return paths;
|
|
54
|
-
}));
|
|
55
|
-
return results.filter(Boolean).reduce((ret, result) => {
|
|
56
|
-
result.forEach((res) => {
|
|
57
|
-
if (res && !ret.includes(res)) {
|
|
58
|
-
ret.push(res);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
return ret;
|
|
62
|
-
}, []);
|
|
63
|
-
}, "getEntryPoints");
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
exports.getEntryPoints = getEntryPoints;
|
package/dist/chunk-S7LT43EW.mjs
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
correctPaths,
|
|
3
|
-
findWorkspaceRoot,
|
|
4
|
-
joinPaths,
|
|
5
|
-
writeDebug
|
|
6
|
-
} from "./chunk-A6F6NNS6.mjs";
|
|
7
|
-
import {
|
|
8
|
-
__name
|
|
9
|
-
} from "./chunk-O6YSETKJ.mjs";
|
|
10
|
-
|
|
11
|
-
// src/utilities/get-entry-points.ts
|
|
12
|
-
import { glob } from "glob";
|
|
13
|
-
var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
14
|
-
const workspaceRoot = config.workspaceRoot || findWorkspaceRoot();
|
|
15
|
-
const entryPoints = [];
|
|
16
|
-
if (entry) {
|
|
17
|
-
if (typeof entry === "string") {
|
|
18
|
-
entryPoints.push(entry);
|
|
19
|
-
} else if (Array.isArray(entry)) {
|
|
20
|
-
entryPoints.push(...entry);
|
|
21
|
-
} else {
|
|
22
|
-
entryPoints.push(...Object.values(entry));
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (emitOnAll) {
|
|
26
|
-
entryPoints.push(joinPaths(workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
27
|
-
}
|
|
28
|
-
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
29
|
-
const paths = [];
|
|
30
|
-
if (entryPoint.includes("*")) {
|
|
31
|
-
const files = await glob(entryPoint, {
|
|
32
|
-
withFileTypes: true,
|
|
33
|
-
ignore: [
|
|
34
|
-
"**/node_modules/**"
|
|
35
|
-
]
|
|
36
|
-
});
|
|
37
|
-
paths.push(...files.reduce((ret, filePath) => {
|
|
38
|
-
const result = correctPaths(joinPaths(filePath.path, filePath.name).replaceAll(correctPaths(workspaceRoot), "").replaceAll(correctPaths(projectRoot), ""));
|
|
39
|
-
if (result) {
|
|
40
|
-
writeDebug(`Trying to add entry point ${result} at "${joinPaths(filePath.path, filePath.name)}"`, config);
|
|
41
|
-
if (!paths.includes(result)) {
|
|
42
|
-
paths.push(result);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return ret;
|
|
46
|
-
}, []));
|
|
47
|
-
} else {
|
|
48
|
-
writeDebug(`Trying to add entry point ${entryPoint}"`, config);
|
|
49
|
-
if (!paths.includes(entryPoint)) {
|
|
50
|
-
paths.push(entryPoint);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return paths;
|
|
54
|
-
}));
|
|
55
|
-
return results.filter(Boolean).reduce((ret, result) => {
|
|
56
|
-
result.forEach((res) => {
|
|
57
|
-
if (res && !ret.includes(res)) {
|
|
58
|
-
ret.push(res);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
return ret;
|
|
62
|
-
}, []);
|
|
63
|
-
}, "getEntryPoints");
|
|
64
|
-
|
|
65
|
-
export {
|
|
66
|
-
getEntryPoints
|
|
67
|
-
};
|
package/dist/chunk-SHUYVCID.js
DELETED
package/dist/chunk-ZW5JWBA4.mjs
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__name
|
|
3
|
-
} from "./chunk-O6YSETKJ.mjs";
|
|
4
|
-
|
|
5
|
-
// src/utilities/get-project-deps.ts
|
|
6
|
-
function getExtraDependencies(projectName, graph) {
|
|
7
|
-
const deps = /* @__PURE__ */ new Map();
|
|
8
|
-
recur(projectName);
|
|
9
|
-
function recur(currProjectName) {
|
|
10
|
-
const allDeps = graph.dependencies[currProjectName];
|
|
11
|
-
const externalDeps = allDeps?.reduce((acc, node) => {
|
|
12
|
-
const found = graph.externalNodes?.[node.target];
|
|
13
|
-
if (found) {
|
|
14
|
-
acc.push(found);
|
|
15
|
-
}
|
|
16
|
-
return acc;
|
|
17
|
-
}, []) ?? [];
|
|
18
|
-
const internalDeps = allDeps?.reduce((acc, node) => {
|
|
19
|
-
const found = graph.nodes[node.target];
|
|
20
|
-
if (found) acc.push(found);
|
|
21
|
-
return acc;
|
|
22
|
-
}, []) ?? [];
|
|
23
|
-
for (const externalDep of externalDeps) {
|
|
24
|
-
deps.set(externalDep.name, {
|
|
25
|
-
name: externalDep.name,
|
|
26
|
-
outputs: [],
|
|
27
|
-
node: externalDep
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
for (const internalDep of internalDeps) {
|
|
31
|
-
recur(internalDep.name);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
__name(recur, "recur");
|
|
35
|
-
return Array.from(deps.values());
|
|
36
|
-
}
|
|
37
|
-
__name(getExtraDependencies, "getExtraDependencies");
|
|
38
|
-
function getInternalDependencies(projectName, graph) {
|
|
39
|
-
const allDeps = graph.dependencies[projectName] ?? [];
|
|
40
|
-
return Array.from(allDeps.reduce((acc, node) => {
|
|
41
|
-
const found = graph.nodes[node.target];
|
|
42
|
-
if (found) acc.push(found);
|
|
43
|
-
return acc;
|
|
44
|
-
}, []));
|
|
45
|
-
}
|
|
46
|
-
__name(getInternalDependencies, "getInternalDependencies");
|
|
47
|
-
function getExternalDependencies(projectName, graph) {
|
|
48
|
-
const allDeps = graph.dependencies[projectName];
|
|
49
|
-
return Array.from(allDeps?.reduce((acc, node) => {
|
|
50
|
-
const found = graph.externalNodes?.[node.target];
|
|
51
|
-
if (found) acc.push(found);
|
|
52
|
-
return acc;
|
|
53
|
-
}, []) ?? []) ?? [];
|
|
54
|
-
}
|
|
55
|
-
__name(getExternalDependencies, "getExternalDependencies");
|
|
56
|
-
|
|
57
|
-
export {
|
|
58
|
-
getExtraDependencies,
|
|
59
|
-
getInternalDependencies,
|
|
60
|
-
getExternalDependencies
|
|
61
|
-
};
|
|
File without changes
|
|
File without changes
|