@storm-software/workspace-tools 1.49.23 → 1.49.25
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 +24 -0
- package/index.js +39 -24
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +13 -2
- package/src/executors/design-tokens/executor.js +13 -2
- package/src/executors/tsup/executor.js +36 -16
- package/src/executors/tsup-browser/executor.js +37 -17
- package/src/executors/tsup-neutral/executor.js +37 -17
- package/src/executors/tsup-node/executor.js +37 -17
- package/src/executors/typia/executor.js +13 -2
- package/src/utils/index.js +14 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 1.49.25 (2024-01-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **workspace-tools:** Moved the tsup config logging ([451d4fcc](https://github.com/storm-software/storm-ops/commit/451d4fcc))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
13
|
+
## 1.49.24 (2024-01-26)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🩹 Fixes
|
|
17
|
+
|
|
18
|
+
- **workspace-tools:** Improvements to options printing process ([87342329](https://github.com/storm-software/storm-ops/commit/87342329))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### ❤️ Thank You
|
|
22
|
+
|
|
23
|
+
- Patrick Sullivan
|
|
24
|
+
|
|
1
25
|
## 1.49.23 (2024-01-26)
|
|
2
26
|
|
|
3
27
|
|
package/index.js
CHANGED
|
@@ -132079,7 +132079,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
132079
132079
|
writeTrace(
|
|
132080
132080
|
config,
|
|
132081
132081
|
`Loaded Storm config into env:
|
|
132082
|
-
${Object.keys(process.env).map(
|
|
132082
|
+
${Object.keys(process.env).map(
|
|
132083
|
+
(key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
|
|
132084
|
+
).join("\n")}`
|
|
132083
132085
|
);
|
|
132084
132086
|
}
|
|
132085
132087
|
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
@@ -132090,7 +132092,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
132090
132092
|
writeTrace(
|
|
132091
132093
|
config,
|
|
132092
132094
|
`Executor schema options \u2699\uFE0F
|
|
132093
|
-
${Object.keys(options).map(
|
|
132095
|
+
${Object.keys(options).map(
|
|
132096
|
+
(key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
132097
|
+
).join("\n")}`
|
|
132094
132098
|
);
|
|
132095
132099
|
const tokenized = applyWorkspaceTokens(
|
|
132096
132100
|
options,
|
|
@@ -132144,6 +132148,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
|
|
|
132144
132148
|
stopwatch();
|
|
132145
132149
|
}
|
|
132146
132150
|
};
|
|
132151
|
+
var _isFunction = (value) => {
|
|
132152
|
+
try {
|
|
132153
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
132154
|
+
} catch (e) {
|
|
132155
|
+
return false;
|
|
132156
|
+
}
|
|
132157
|
+
};
|
|
132147
132158
|
|
|
132148
132159
|
// packages/workspace-tools/src/base/base-generator.ts
|
|
132149
132160
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
@@ -132709,7 +132720,7 @@ ${commentStart} ${padding}Storm Software
|
|
|
132709
132720
|
${commentStart} \u26A1 ${process.env.STORM_NAMESPACE} - ${name}
|
|
132710
132721
|
${commentStart}
|
|
132711
132722
|
${commentStart} This code was released as part of the ${process.env.STORM_NAMESPACE} project. ${process.env.STORM_NAMESPACE}
|
|
132712
|
-
${commentStart} is maintained by Storm Software under the
|
|
132723
|
+
${commentStart} is maintained by Storm Software under the ${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
|
|
132713
132724
|
${commentStart} free for commercial and private use. For more information, please visit
|
|
132714
132725
|
${commentStart} our licensing page.
|
|
132715
132726
|
${commentStart}
|
|
@@ -132804,7 +132815,9 @@ var applyDefaultOptions = (options) => {
|
|
|
132804
132815
|
options.skipNativeModulesPlugin ??= false;
|
|
132805
132816
|
options.define ??= {};
|
|
132806
132817
|
options.env ??= {};
|
|
132807
|
-
options.getConfig
|
|
132818
|
+
if (options.getConfig) {
|
|
132819
|
+
options.getConfig = defaultConfig;
|
|
132820
|
+
}
|
|
132808
132821
|
return options;
|
|
132809
132822
|
};
|
|
132810
132823
|
var runTsupBuild = async (context, config, options) => {
|
|
@@ -132863,21 +132876,21 @@ ${options.banner}
|
|
|
132863
132876
|
};
|
|
132864
132877
|
if (options.getConfig) {
|
|
132865
132878
|
writeInfo(config, "\u26A1 Running the Build process");
|
|
132866
|
-
writeDebug(
|
|
132867
|
-
config,
|
|
132868
|
-
`\u2699\uFE0F Build options:
|
|
132869
|
-
${Object.keys(options).map(
|
|
132870
|
-
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
132871
|
-
).join("\n")}
|
|
132872
|
-
`
|
|
132873
|
-
);
|
|
132874
132879
|
const getConfigFns = [options.getConfig];
|
|
132875
132880
|
const tsupConfig = (0, import_tsup.defineConfig)(
|
|
132876
132881
|
getConfigFns.map(
|
|
132877
132882
|
(getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
|
|
132878
132883
|
)
|
|
132879
132884
|
);
|
|
132880
|
-
|
|
132885
|
+
writeDebug(
|
|
132886
|
+
config,
|
|
132887
|
+
`\u2699\uFE0F Build options:
|
|
132888
|
+
${_isFunction2(tsupConfig) ? Object.keys(tsupConfig).map(
|
|
132889
|
+
(key) => `${key}: ${!tsupConfig[key] || _isPrimitive(tsupConfig[key]) ? tsupConfig[key] : _isFunction2(tsupConfig[key]) ? "<function>" : JSON.stringify(tsupConfig[key])}`
|
|
132890
|
+
).join("\n") : "<function>"}
|
|
132891
|
+
`
|
|
132892
|
+
);
|
|
132893
|
+
if (_isFunction2(tsupConfig)) {
|
|
132881
132894
|
await build(await Promise.resolve(tsupConfig({})), config);
|
|
132882
132895
|
} else {
|
|
132883
132896
|
await build(tsupConfig, config);
|
|
@@ -132927,7 +132940,6 @@ var build = async (options, config) => {
|
|
|
132927
132940
|
console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
|
|
132928
132941
|
}
|
|
132929
132942
|
await (0, import_tsup.build)(options);
|
|
132930
|
-
await new Promise((r) => setTimeout(r, 100));
|
|
132931
132943
|
}
|
|
132932
132944
|
};
|
|
132933
132945
|
var _isPrimitive = (value) => {
|
|
@@ -132937,7 +132949,7 @@ var _isPrimitive = (value) => {
|
|
|
132937
132949
|
return false;
|
|
132938
132950
|
}
|
|
132939
132951
|
};
|
|
132940
|
-
var
|
|
132952
|
+
var _isFunction2 = (value) => {
|
|
132941
132953
|
try {
|
|
132942
132954
|
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
132943
132955
|
} catch (e) {
|
|
@@ -139148,9 +139160,7 @@ var removeExtension = (filePath) => {
|
|
|
139148
139160
|
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
139149
139161
|
};
|
|
139150
139162
|
function findFileName(filePath) {
|
|
139151
|
-
return filePath?.split(
|
|
139152
|
-
filePath?.includes(import_node_path6.sep) ? import_node_path6.sep : filePath?.includes("/") ? "/" : "\\"
|
|
139153
|
-
)?.pop() ?? "";
|
|
139163
|
+
return filePath?.split(filePath?.includes(import_node_path6.sep) ? import_node_path6.sep : filePath?.includes("/") ? "/" : "\\")?.pop() ?? "";
|
|
139154
139164
|
}
|
|
139155
139165
|
|
|
139156
139166
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
@@ -139219,7 +139229,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
139219
139229
|
config,
|
|
139220
139230
|
`\u2699\uFE0F Executor options:
|
|
139221
139231
|
${Object.keys(options).map(
|
|
139222
|
-
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
139232
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
139223
139233
|
).join("\n")}
|
|
139224
139234
|
`
|
|
139225
139235
|
);
|
|
@@ -139547,7 +139557,8 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
139547
139557
|
config,
|
|
139548
139558
|
{
|
|
139549
139559
|
...options,
|
|
139550
|
-
outputPath
|
|
139560
|
+
outputPath,
|
|
139561
|
+
getConfig: options.getConfig
|
|
139551
139562
|
}
|
|
139552
139563
|
);
|
|
139553
139564
|
})
|
|
@@ -139570,6 +139581,13 @@ var _isPrimitive2 = (value) => {
|
|
|
139570
139581
|
return false;
|
|
139571
139582
|
}
|
|
139572
139583
|
};
|
|
139584
|
+
var _isFunction3 = (value) => {
|
|
139585
|
+
try {
|
|
139586
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
139587
|
+
} catch (e) {
|
|
139588
|
+
return false;
|
|
139589
|
+
}
|
|
139590
|
+
};
|
|
139573
139591
|
|
|
139574
139592
|
// packages/workspace-tools/src/executors/tsup-neutral/get-config.ts
|
|
139575
139593
|
var import_devkit5 = __toESM(require_devkit());
|
|
@@ -141389,10 +141407,7 @@ function findCacheDirectory({
|
|
|
141389
141407
|
if (!nodeModules) {
|
|
141390
141408
|
throw new Error("Cannot find node_modules directory");
|
|
141391
141409
|
}
|
|
141392
|
-
return useDirectory(
|
|
141393
|
-
(0, import_node_path7.join)(workspaceRoot, "node_modules", ".cache", name, cacheName),
|
|
141394
|
-
{ create }
|
|
141395
|
-
);
|
|
141410
|
+
return useDirectory((0, import_node_path7.join)(workspaceRoot, "node_modules", ".cache", name, cacheName), { create });
|
|
141396
141411
|
}
|
|
141397
141412
|
|
|
141398
141413
|
// packages/workspace-tools/src/utils/typia-transform.ts
|