@storm-software/workspace-tools 1.49.26 → 1.49.27
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 +12 -0
- package/index.js +8 -6
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +8 -6
- package/src/executors/tsup-browser/executor.js +8 -6
- package/src/executors/tsup-neutral/executor.js +8 -6
- package/src/executors/tsup-node/executor.js +8 -6
- package/src/utils/index.js +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.49.27 (2024-01-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **workspace-tools:** Added logic to resolve get options functions ([64fc9374](https://github.com/storm-software/storm-ops/commit/64fc9374))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
1
13
|
## 1.49.26 (2024-01-26)
|
|
2
14
|
|
|
3
15
|
|
package/index.js
CHANGED
|
@@ -132929,17 +132929,19 @@ var build = async (options, config) => {
|
|
|
132929
132929
|
if (Array.isArray(options)) {
|
|
132930
132930
|
await Promise.all(options.map((buildOptions) => build(buildOptions, config)));
|
|
132931
132931
|
} else {
|
|
132932
|
+
let tsupOptions = options;
|
|
132933
|
+
if (_isFunction2(tsupOptions)) {
|
|
132934
|
+
tsupOptions = await Promise.resolve(tsupOptions({}));
|
|
132935
|
+
}
|
|
132932
132936
|
writeDebug(
|
|
132933
132937
|
config,
|
|
132934
|
-
|
|
132935
|
-
|
|
132936
|
-
|
|
132937
|
-
${_isFunction2(options) ? Object.keys(options).map(
|
|
132938
|
-
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction2(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
132938
|
+
`\u2699\uFE0F Tsup Build options:
|
|
132939
|
+
${_isFunction2(tsupOptions) ? Object.keys(tsupOptions).map(
|
|
132940
|
+
(key) => `${key}: ${!tsupOptions[key] || _isPrimitive(tsupOptions[key]) ? tsupOptions[key] : _isFunction2(tsupOptions[key]) ? "<function>" : JSON.stringify(tsupOptions[key])}`
|
|
132939
132941
|
).join("\n") : "<function>"}
|
|
132940
132942
|
`
|
|
132941
132943
|
);
|
|
132942
|
-
await (0, import_tsup.build)(
|
|
132944
|
+
await (0, import_tsup.build)(tsupOptions);
|
|
132943
132945
|
}
|
|
132944
132946
|
};
|
|
132945
132947
|
var _isPrimitive = (value) => {
|