@storm-software/workspace-tools 1.49.23 → 1.49.24
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 +32 -16
- 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 +29 -8
- package/src/executors/tsup-browser/executor.js +30 -9
- package/src/executors/tsup-neutral/executor.js +30 -9
- package/src/executors/tsup-node/executor.js +30 -9
- package/src/executors/typia/executor.js +13 -2
- package/src/utils/index.js +7 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.49.24 (2024-01-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **workspace-tools:** Improvements to options printing process ([87342329](https://github.com/storm-software/storm-ops/commit/87342329))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
1
13
|
## 1.49.23 (2024-01-26)
|
|
2
14
|
|
|
3
15
|
|
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) => {
|
|
@@ -132867,7 +132880,7 @@ ${options.banner}
|
|
|
132867
132880
|
config,
|
|
132868
132881
|
`\u2699\uFE0F Build options:
|
|
132869
132882
|
${Object.keys(options).map(
|
|
132870
|
-
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
132883
|
+
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction2(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
132871
132884
|
).join("\n")}
|
|
132872
132885
|
`
|
|
132873
132886
|
);
|
|
@@ -132877,7 +132890,7 @@ ${options.banner}
|
|
|
132877
132890
|
(getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
|
|
132878
132891
|
)
|
|
132879
132892
|
);
|
|
132880
|
-
if (
|
|
132893
|
+
if (_isFunction2(tsupConfig)) {
|
|
132881
132894
|
await build(await Promise.resolve(tsupConfig({})), config);
|
|
132882
132895
|
} else {
|
|
132883
132896
|
await build(tsupConfig, config);
|
|
@@ -132937,7 +132950,7 @@ var _isPrimitive = (value) => {
|
|
|
132937
132950
|
return false;
|
|
132938
132951
|
}
|
|
132939
132952
|
};
|
|
132940
|
-
var
|
|
132953
|
+
var _isFunction2 = (value) => {
|
|
132941
132954
|
try {
|
|
132942
132955
|
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
132943
132956
|
} catch (e) {
|
|
@@ -139148,9 +139161,7 @@ var removeExtension = (filePath) => {
|
|
|
139148
139161
|
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
139149
139162
|
};
|
|
139150
139163
|
function findFileName(filePath) {
|
|
139151
|
-
return filePath?.split(
|
|
139152
|
-
filePath?.includes(import_node_path6.sep) ? import_node_path6.sep : filePath?.includes("/") ? "/" : "\\"
|
|
139153
|
-
)?.pop() ?? "";
|
|
139164
|
+
return filePath?.split(filePath?.includes(import_node_path6.sep) ? import_node_path6.sep : filePath?.includes("/") ? "/" : "\\")?.pop() ?? "";
|
|
139154
139165
|
}
|
|
139155
139166
|
|
|
139156
139167
|
// packages/workspace-tools/src/utils/get-project-configurations.ts
|
|
@@ -139219,7 +139230,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
139219
139230
|
config,
|
|
139220
139231
|
`\u2699\uFE0F Executor options:
|
|
139221
139232
|
${Object.keys(options).map(
|
|
139222
|
-
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
139233
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
139223
139234
|
).join("\n")}
|
|
139224
139235
|
`
|
|
139225
139236
|
);
|
|
@@ -139547,7 +139558,8 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
139547
139558
|
config,
|
|
139548
139559
|
{
|
|
139549
139560
|
...options,
|
|
139550
|
-
outputPath
|
|
139561
|
+
outputPath,
|
|
139562
|
+
getConfig: options.getConfig
|
|
139551
139563
|
}
|
|
139552
139564
|
);
|
|
139553
139565
|
})
|
|
@@ -139570,6 +139582,13 @@ var _isPrimitive2 = (value) => {
|
|
|
139570
139582
|
return false;
|
|
139571
139583
|
}
|
|
139572
139584
|
};
|
|
139585
|
+
var _isFunction3 = (value) => {
|
|
139586
|
+
try {
|
|
139587
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
139588
|
+
} catch (e) {
|
|
139589
|
+
return false;
|
|
139590
|
+
}
|
|
139591
|
+
};
|
|
139573
139592
|
|
|
139574
139593
|
// packages/workspace-tools/src/executors/tsup-neutral/get-config.ts
|
|
139575
139594
|
var import_devkit5 = __toESM(require_devkit());
|
|
@@ -141389,10 +141408,7 @@ function findCacheDirectory({
|
|
|
141389
141408
|
if (!nodeModules) {
|
|
141390
141409
|
throw new Error("Cannot find node_modules directory");
|
|
141391
141410
|
}
|
|
141392
|
-
return useDirectory(
|
|
141393
|
-
(0, import_node_path7.join)(workspaceRoot, "node_modules", ".cache", name, cacheName),
|
|
141394
|
-
{ create }
|
|
141395
|
-
);
|
|
141411
|
+
return useDirectory((0, import_node_path7.join)(workspaceRoot, "node_modules", ".cache", name, cacheName), { create });
|
|
141396
141412
|
}
|
|
141397
141413
|
|
|
141398
141414
|
// packages/workspace-tools/src/utils/typia-transform.ts
|