@storm-software/workspace-tools 1.62.6 → 1.62.8
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/README.md +1 -1
- package/index.js +111 -84
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +54 -37
- package/src/executors/tsup/executor.js +75 -57
- package/src/executors/tsup-browser/executor.js +75 -57
- package/src/executors/tsup-neutral/executor.js +75 -57
- package/src/executors/tsup-node/executor.js +75 -57
- package/src/executors/typia/executor.js +29 -21
- package/src/generators/browser-library/generator.js +27 -20
- package/src/generators/config-schema/generator.js +31 -24
- package/src/generators/neutral-library/generator.js +27 -20
- package/src/generators/node-library/generator.js +27 -20
- package/src/generators/preset/generator.js +27 -20
- package/src/generators/release-version/generator.js +32 -25
- package/src/utils/index.js +24 -23
package/src/utils/index.js
CHANGED
|
@@ -3933,20 +3933,20 @@ var require_typescript = __commonJS({
|
|
|
3933
3933
|
})();
|
|
3934
3934
|
}
|
|
3935
3935
|
});
|
|
3936
|
-
var
|
|
3936
|
+
var LogLevel, Debug;
|
|
3937
3937
|
var init_debug = __esm2({
|
|
3938
3938
|
"src/compiler/debug.ts"() {
|
|
3939
3939
|
"use strict";
|
|
3940
3940
|
init_ts2();
|
|
3941
3941
|
init_ts2();
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
return
|
|
3949
|
-
})(
|
|
3942
|
+
LogLevel = /* @__PURE__ */ ((LogLevel3) => {
|
|
3943
|
+
LogLevel3[LogLevel3["Off"] = 0] = "Off";
|
|
3944
|
+
LogLevel3[LogLevel3["Error"] = 1] = "Error";
|
|
3945
|
+
LogLevel3[LogLevel3["Warning"] = 2] = "Warning";
|
|
3946
|
+
LogLevel3[LogLevel3["Info"] = 3] = "Info";
|
|
3947
|
+
LogLevel3[LogLevel3["Verbose"] = 4] = "Verbose";
|
|
3948
|
+
return LogLevel3;
|
|
3949
|
+
})(LogLevel || {});
|
|
3950
3950
|
((Debug2) => {
|
|
3951
3951
|
let currentAssertionLevel = 0;
|
|
3952
3952
|
Debug2.currentLogLevel = 2;
|
|
@@ -186515,12 +186515,12 @@ ${options8.prefix}` : "\n" : options8.prefix
|
|
|
186515
186515
|
"src/server/utilitiesPublic.ts"() {
|
|
186516
186516
|
"use strict";
|
|
186517
186517
|
init_ts7();
|
|
186518
|
-
LogLevel22 = /* @__PURE__ */ ((
|
|
186519
|
-
|
|
186520
|
-
|
|
186521
|
-
|
|
186522
|
-
|
|
186523
|
-
return
|
|
186518
|
+
LogLevel22 = /* @__PURE__ */ ((LogLevel3) => {
|
|
186519
|
+
LogLevel3[LogLevel3["terse"] = 0] = "terse";
|
|
186520
|
+
LogLevel3[LogLevel3["normal"] = 1] = "normal";
|
|
186521
|
+
LogLevel3[LogLevel3["requestTime"] = 2] = "requestTime";
|
|
186522
|
+
LogLevel3[LogLevel3["verbose"] = 3] = "verbose";
|
|
186523
|
+
return LogLevel3;
|
|
186524
186524
|
})(LogLevel22 || {});
|
|
186525
186525
|
emptyArray22 = createSortedArray22();
|
|
186526
186526
|
Msg2 = /* @__PURE__ */ ((Msg22) => {
|
|
@@ -198051,7 +198051,7 @@ ${e3.message}`;
|
|
|
198051
198051
|
LanguageVariant: () => LanguageVariant,
|
|
198052
198052
|
LexicalEnvironmentFlags: () => LexicalEnvironmentFlags,
|
|
198053
198053
|
ListFormat: () => ListFormat,
|
|
198054
|
-
LogLevel: () =>
|
|
198054
|
+
LogLevel: () => LogLevel,
|
|
198055
198055
|
MemberOverrideStatus: () => MemberOverrideStatus,
|
|
198056
198056
|
ModifierFlags: () => ModifierFlags,
|
|
198057
198057
|
ModuleDetectionKind: () => ModuleDetectionKind,
|
|
@@ -200455,7 +200455,7 @@ ${e3.message}`;
|
|
|
200455
200455
|
LanguageVariant: () => LanguageVariant,
|
|
200456
200456
|
LexicalEnvironmentFlags: () => LexicalEnvironmentFlags,
|
|
200457
200457
|
ListFormat: () => ListFormat,
|
|
200458
|
-
LogLevel: () =>
|
|
200458
|
+
LogLevel: () => LogLevel,
|
|
200459
200459
|
MemberOverrideStatus: () => MemberOverrideStatus,
|
|
200460
200460
|
ModifierFlags: () => ModifierFlags,
|
|
200461
200461
|
ModuleDetectionKind: () => ModuleDetectionKind,
|
|
@@ -459447,7 +459447,6 @@ var import_esbuild_decorators = __toESM(require_src());
|
|
|
459447
459447
|
var import_devkit2 = __toESM(require_devkit());
|
|
459448
459448
|
var import_get_custom_transformers_factory = __toESM(require_get_custom_transformers_factory());
|
|
459449
459449
|
var import_normalize_options = __toESM(require_normalize_options());
|
|
459450
|
-
var import_config_tools3 = require("@storm-software/config-tools");
|
|
459451
459450
|
|
|
459452
459451
|
// node_modules/.pnpm/esbuild-plugin-define@0.4.0_esbuild@0.19.12/node_modules/esbuild-plugin-define/dist/mjs/utils.js
|
|
459453
459452
|
var makeKey = (...inputs) => inputs.filter((input) => !!input).join(".");
|
|
@@ -459636,7 +459635,8 @@ var applyDefaultOptions = (options8) => {
|
|
|
459636
459635
|
return options8;
|
|
459637
459636
|
};
|
|
459638
459637
|
var runTsupBuild = async (context, config, options8) => {
|
|
459639
|
-
const
|
|
459638
|
+
const { LogLevel, getLogLevel, writeInfo, writeWarning, findWorkspaceRoot: findWorkspaceRoot3 } = await import("@storm-software/config-tools");
|
|
459639
|
+
const workspaceRoot = config?.workspaceRoot ?? findWorkspaceRoot3();
|
|
459640
459640
|
const stormEnv = Object.keys(options8.env ?? {}).filter((key2) => key2.startsWith("STORM_")).reduce((ret, key2) => {
|
|
459641
459641
|
ret[key2] = options8.env?.[key2];
|
|
459642
459642
|
return ret;
|
|
@@ -459695,7 +459695,7 @@ ${options8.banner}
|
|
|
459695
459695
|
outputPath: options8.outputPath
|
|
459696
459696
|
};
|
|
459697
459697
|
if (options8.getConfig) {
|
|
459698
|
-
|
|
459698
|
+
writeInfo(config, "\u26A1 Running the Build process");
|
|
459699
459699
|
const getConfigFns = [options8.getConfig];
|
|
459700
459700
|
const tsupConfig = (0, import_tsup.defineConfig)(
|
|
459701
459701
|
getConfigFns.map(
|
|
@@ -459708,8 +459708,8 @@ ${options8.banner}
|
|
|
459708
459708
|
} else {
|
|
459709
459709
|
await build(tsupConfig, config);
|
|
459710
459710
|
}
|
|
459711
|
-
} else if (
|
|
459712
|
-
|
|
459711
|
+
} else if (getLogLevel(config?.logLevel ?? "debug") >= LogLevel.WARN) {
|
|
459712
|
+
writeWarning(
|
|
459713
459713
|
config,
|
|
459714
459714
|
"The Build process did not run because no `getConfig` parameter was provided"
|
|
459715
459715
|
);
|
|
@@ -459744,6 +459744,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options8) {
|
|
|
459744
459744
|
return tsConfig;
|
|
459745
459745
|
}
|
|
459746
459746
|
var build = async (options8, config) => {
|
|
459747
|
+
const { writeDebug } = await import("@storm-software/config-tools");
|
|
459747
459748
|
if (Array.isArray(options8)) {
|
|
459748
459749
|
await Promise.all(options8.map((buildOptions) => build(buildOptions, config)));
|
|
459749
459750
|
} else {
|
|
@@ -459751,7 +459752,7 @@ var build = async (options8, config) => {
|
|
|
459751
459752
|
if (_isFunction(tsupOptions)) {
|
|
459752
459753
|
tsupOptions = await Promise.resolve(tsupOptions({}));
|
|
459753
459754
|
}
|
|
459754
|
-
|
|
459755
|
+
writeDebug(
|
|
459755
459756
|
config,
|
|
459756
459757
|
`\u2699\uFE0F Tsup Build options:
|
|
459757
459758
|
${!_isFunction(tsupOptions) ? Object.keys(tsupOptions).map(
|