@storm-software/workspace-tools 1.49.25 → 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 +24 -0
- package/index.js +14 -12
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +14 -12
- package/src/executors/tsup-browser/executor.js +14 -12
- package/src/executors/tsup-neutral/executor.js +14 -12
- package/src/executors/tsup-node/executor.js +14 -12
- package/src/utils/index.js +14 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
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
|
+
|
|
13
|
+
## 1.49.26 (2024-01-26)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### 🩹 Fixes
|
|
17
|
+
|
|
18
|
+
- **workspace-tools:** Moved the tsup logging to separate function ([d3c78bb6](https://github.com/storm-software/storm-ops/commit/d3c78bb6))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### ❤️ Thank You
|
|
22
|
+
|
|
23
|
+
- Patrick Sullivan
|
|
24
|
+
|
|
1
25
|
## 1.49.25 (2024-01-26)
|
|
2
26
|
|
|
3
27
|
|
package/index.js
CHANGED
|
@@ -132882,16 +132882,9 @@ ${options.banner}
|
|
|
132882
132882
|
(getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
|
|
132883
132883
|
)
|
|
132884
132884
|
);
|
|
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
132885
|
if (_isFunction2(tsupConfig)) {
|
|
132894
|
-
|
|
132886
|
+
const tsupOptions = await Promise.resolve(tsupConfig({}));
|
|
132887
|
+
await build(tsupOptions, config);
|
|
132895
132888
|
} else {
|
|
132896
132889
|
await build(tsupConfig, config);
|
|
132897
132890
|
}
|
|
@@ -132936,10 +132929,19 @@ var build = async (options, config) => {
|
|
|
132936
132929
|
if (Array.isArray(options)) {
|
|
132937
132930
|
await Promise.all(options.map((buildOptions) => build(buildOptions, config)));
|
|
132938
132931
|
} else {
|
|
132939
|
-
|
|
132940
|
-
|
|
132932
|
+
let tsupOptions = options;
|
|
132933
|
+
if (_isFunction2(tsupOptions)) {
|
|
132934
|
+
tsupOptions = await Promise.resolve(tsupOptions({}));
|
|
132941
132935
|
}
|
|
132942
|
-
|
|
132936
|
+
writeDebug(
|
|
132937
|
+
config,
|
|
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])}`
|
|
132941
|
+
).join("\n") : "<function>"}
|
|
132942
|
+
`
|
|
132943
|
+
);
|
|
132944
|
+
await (0, import_tsup.build)(tsupOptions);
|
|
132943
132945
|
}
|
|
132944
132946
|
};
|
|
132945
132947
|
var _isPrimitive = (value) => {
|