@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/src/utils/index.js
CHANGED
|
@@ -113621,9 +113621,7 @@ var removeExtension = (filePath) => {
|
|
|
113621
113621
|
return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
|
|
113622
113622
|
};
|
|
113623
113623
|
function findFileName(filePath) {
|
|
113624
|
-
return filePath?.split(
|
|
113625
|
-
filePath?.includes(import_node_path.sep) ? import_node_path.sep : filePath?.includes("/") ? "/" : "\\"
|
|
113626
|
-
)?.pop() ?? "";
|
|
113624
|
+
return filePath?.split(filePath?.includes(import_node_path.sep) ? import_node_path.sep : filePath?.includes("/") ? "/" : "\\")?.pop() ?? "";
|
|
113627
113625
|
}
|
|
113628
113626
|
|
|
113629
113627
|
// packages/workspace-tools/src/utils/find-cache-dir.ts
|
|
@@ -113673,10 +113671,7 @@ function findCacheDirectory({
|
|
|
113673
113671
|
if (!nodeModules) {
|
|
113674
113672
|
throw new Error("Cannot find node_modules directory");
|
|
113675
113673
|
}
|
|
113676
|
-
return useDirectory(
|
|
113677
|
-
(0, import_node_path2.join)(workspaceRoot, "node_modules", ".cache", name, cacheName),
|
|
113678
|
-
{ create }
|
|
113679
|
-
);
|
|
113674
|
+
return useDirectory((0, import_node_path2.join)(workspaceRoot, "node_modules", ".cache", name, cacheName), { create });
|
|
113680
113675
|
}
|
|
113681
113676
|
|
|
113682
113677
|
// packages/workspace-tools/src/utils/get-file-banner.ts
|
|
@@ -113693,7 +113688,7 @@ ${commentStart} ${padding}Storm Software
|
|
|
113693
113688
|
${commentStart} \u26A1 ${process.env.STORM_NAMESPACE} - ${name}
|
|
113694
113689
|
${commentStart}
|
|
113695
113690
|
${commentStart} This code was released as part of the ${process.env.STORM_NAMESPACE} project. ${process.env.STORM_NAMESPACE}
|
|
113696
|
-
${commentStart} is maintained by Storm Software under the
|
|
113691
|
+
${commentStart} is maintained by Storm Software under the ${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
|
|
113697
113692
|
${commentStart} free for commercial and private use. For more information, please visit
|
|
113698
113693
|
${commentStart} our licensing page.
|
|
113699
113694
|
${commentStart}
|
|
@@ -119413,7 +119408,9 @@ var applyDefaultOptions = (options) => {
|
|
|
119413
119408
|
options.skipNativeModulesPlugin ??= false;
|
|
119414
119409
|
options.define ??= {};
|
|
119415
119410
|
options.env ??= {};
|
|
119416
|
-
options.getConfig
|
|
119411
|
+
if (options.getConfig) {
|
|
119412
|
+
options.getConfig = defaultConfig;
|
|
119413
|
+
}
|
|
119417
119414
|
return options;
|
|
119418
119415
|
};
|
|
119419
119416
|
var runTsupBuild = async (context, config, options) => {
|
|
@@ -119472,20 +119469,20 @@ ${options.banner}
|
|
|
119472
119469
|
};
|
|
119473
119470
|
if (options.getConfig) {
|
|
119474
119471
|
writeInfo(config, "\u26A1 Running the Build process");
|
|
119475
|
-
writeDebug(
|
|
119476
|
-
config,
|
|
119477
|
-
`\u2699\uFE0F Build options:
|
|
119478
|
-
${Object.keys(options).map(
|
|
119479
|
-
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
119480
|
-
).join("\n")}
|
|
119481
|
-
`
|
|
119482
|
-
);
|
|
119483
119472
|
const getConfigFns = [options.getConfig];
|
|
119484
119473
|
const tsupConfig = (0, import_tsup.defineConfig)(
|
|
119485
119474
|
getConfigFns.map(
|
|
119486
119475
|
(getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
|
|
119487
119476
|
)
|
|
119488
119477
|
);
|
|
119478
|
+
writeDebug(
|
|
119479
|
+
config,
|
|
119480
|
+
`\u2699\uFE0F Build options:
|
|
119481
|
+
${_isFunction(tsupConfig) ? Object.keys(tsupConfig).map(
|
|
119482
|
+
(key) => `${key}: ${!tsupConfig[key] || _isPrimitive(tsupConfig[key]) ? tsupConfig[key] : _isFunction(tsupConfig[key]) ? "<function>" : JSON.stringify(tsupConfig[key])}`
|
|
119483
|
+
).join("\n") : "<function>"}
|
|
119484
|
+
`
|
|
119485
|
+
);
|
|
119489
119486
|
if (_isFunction(tsupConfig)) {
|
|
119490
119487
|
await build(await Promise.resolve(tsupConfig({})), config);
|
|
119491
119488
|
} else {
|
|
@@ -119536,7 +119533,6 @@ var build = async (options, config) => {
|
|
|
119536
119533
|
console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
|
|
119537
119534
|
}
|
|
119538
119535
|
await (0, import_tsup.build)(options);
|
|
119539
|
-
await new Promise((r) => setTimeout(r, 100));
|
|
119540
119536
|
}
|
|
119541
119537
|
};
|
|
119542
119538
|
var _isPrimitive = (value) => {
|