@storm-software/workspace-tools 1.73.0 → 1.73.1
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 +148 -90
- package/meta.json +1 -1
- package/package.json +2 -2
- package/src/base/index.js +142 -84
- package/src/executors/rolldown/executor.js +138 -80
- package/src/executors/tsup/executor.js +138 -80
- package/src/executors/tsup-browser/executor.js +138 -80
- package/src/executors/tsup-neutral/executor.js +138 -80
- package/src/executors/tsup-node/executor.js +138 -80
- package/src/executors/typia/executor.js +138 -80
- package/src/executors/unbuild/executor.js +138 -80
- package/src/generators/browser-library/generator.js +138 -80
- package/src/generators/config-schema/generator.js +132 -74
- package/src/generators/neutral-library/generator.js +138 -80
- package/src/generators/node-library/generator.js +138 -80
- package/src/generators/preset/files/.github/workflows/build-release.yml.template +1 -1
- package/src/generators/preset/generator.js +132 -74
- package/src/generators/release-version/generator.js +132 -74
- package/src/utils/index.js +134 -76
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.73.1 (2024-04-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **storm-ops:** Resolved issue with reusable workflow name ([e23ab12a](https://github.com/storm-software/storm-ops/commit/e23ab12a))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
1
13
|
## 1.73.0 (2024-04-22)
|
|
2
14
|
|
|
3
15
|
|
package/index.js
CHANGED
|
@@ -46588,8 +46588,8 @@ var require_pax = __commonJS({
|
|
|
46588
46588
|
return len + s2;
|
|
46589
46589
|
}
|
|
46590
46590
|
};
|
|
46591
|
-
Pax.parse = (string, ex, g4) => new Pax(
|
|
46592
|
-
var
|
|
46591
|
+
Pax.parse = (string, ex, g4) => new Pax(merge3(parseKV(string), ex), g4);
|
|
46592
|
+
var merge3 = (a2, b6) => b6 ? Object.keys(a2).reduce((s2, k4) => (s2[k4] = a2[k4], s2), b6) : a2;
|
|
46593
46593
|
var parseKV = (string) => string.replace(/\n$/, "").split("\n").reduce(parseKVLine, /* @__PURE__ */ Object.create(null));
|
|
46594
46594
|
var parseKVLine = (set2, line) => {
|
|
46595
46595
|
const n = parseInt(line, 10);
|
|
@@ -66808,64 +66808,6 @@ var require_cjs = __commonJS({
|
|
|
66808
66808
|
}
|
|
66809
66809
|
});
|
|
66810
66810
|
|
|
66811
|
-
// packages/config-tools/src/config-file/get-config-file.ts
|
|
66812
|
-
var import_deepmerge, getConfigFileByName, getConfigFile;
|
|
66813
|
-
var init_get_config_file = __esm({
|
|
66814
|
-
"packages/config-tools/src/config-file/get-config-file.ts"() {
|
|
66815
|
-
init_find_workspace_root();
|
|
66816
|
-
init_dist10();
|
|
66817
|
-
import_deepmerge = __toESM(require_cjs());
|
|
66818
|
-
getConfigFileByName = async (fileName, filePath) => {
|
|
66819
|
-
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
66820
|
-
return loadConfig({
|
|
66821
|
-
cwd: workspacePath,
|
|
66822
|
-
packageJson: true,
|
|
66823
|
-
name: fileName,
|
|
66824
|
-
envName: fileName?.toUpperCase(),
|
|
66825
|
-
jitiOptions: {
|
|
66826
|
-
debug: true,
|
|
66827
|
-
cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
|
|
66828
|
-
}
|
|
66829
|
-
});
|
|
66830
|
-
};
|
|
66831
|
-
getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
66832
|
-
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
66833
|
-
let { config, configFile } = await loadConfig({
|
|
66834
|
-
cwd: workspacePath,
|
|
66835
|
-
name: "storm"
|
|
66836
|
-
});
|
|
66837
|
-
if (additionalFileNames && additionalFileNames.length > 0) {
|
|
66838
|
-
const results = await Promise.all(
|
|
66839
|
-
additionalFileNames.map(
|
|
66840
|
-
(fileName) => loadConfig({
|
|
66841
|
-
cwd: workspacePath,
|
|
66842
|
-
name: fileName
|
|
66843
|
-
})
|
|
66844
|
-
)
|
|
66845
|
-
);
|
|
66846
|
-
for (const result of results) {
|
|
66847
|
-
if (result) {
|
|
66848
|
-
config = (0, import_deepmerge.default)(config ?? {}, result.config ?? {});
|
|
66849
|
-
}
|
|
66850
|
-
}
|
|
66851
|
-
}
|
|
66852
|
-
if (!config) {
|
|
66853
|
-
return void 0;
|
|
66854
|
-
}
|
|
66855
|
-
config.configFile = configFile;
|
|
66856
|
-
config.runtimeVersion = "0.0.1";
|
|
66857
|
-
return config;
|
|
66858
|
-
};
|
|
66859
|
-
}
|
|
66860
|
-
});
|
|
66861
|
-
|
|
66862
|
-
// packages/config-tools/src/config-file/index.ts
|
|
66863
|
-
var init_config_file = __esm({
|
|
66864
|
-
"packages/config-tools/src/config-file/index.ts"() {
|
|
66865
|
-
init_get_config_file();
|
|
66866
|
-
}
|
|
66867
|
-
});
|
|
66868
|
-
|
|
66869
66811
|
// node_modules/.pnpm/zod@3.22.4/node_modules/zod/lib/index.mjs
|
|
66870
66812
|
function setErrorMap(map) {
|
|
66871
66813
|
overrideErrorMap = map;
|
|
@@ -72513,7 +72455,7 @@ var init_chalk = __esm({
|
|
|
72513
72455
|
});
|
|
72514
72456
|
|
|
72515
72457
|
// packages/config-tools/src/utilities/logger.ts
|
|
72516
|
-
var getLogFn, writeFatal, writeError, writeWarning, writeInfo, writeSuccess, writeDebug, writeTrace, writeSystem, getStopwatch;
|
|
72458
|
+
var getLogFn, writeFatal, writeError, writeWarning, writeInfo, writeSuccess, writeDebug, writeTrace, writeSystem, getStopwatch, formatLogMessage, _isFunction;
|
|
72517
72459
|
var init_logger = __esm({
|
|
72518
72460
|
"packages/config-tools/src/utilities/logger.ts"() {
|
|
72519
72461
|
init_types2();
|
|
@@ -72532,7 +72474,9 @@ var init_logger = __esm({
|
|
|
72532
72474
|
return (message) => {
|
|
72533
72475
|
console.error(
|
|
72534
72476
|
`
|
|
72535
|
-
${_chalk.bold.hex(colors.error)(">")} ${_chalk.bold.bgHex(colors.fatal
|
|
72477
|
+
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#b62324").whiteBright(
|
|
72478
|
+
" \u{1F480} Fatal "
|
|
72479
|
+
)} ${_chalk.hex(colors.error ?? "#f85149")(formatLogMessage(message))}
|
|
72536
72480
|
|
|
72537
72481
|
`
|
|
72538
72482
|
);
|
|
@@ -72542,7 +72486,9 @@ ${_chalk.bold.hex(colors.error)(">")} ${_chalk.bold.bgHex(colors.fatal).whiteBri
|
|
|
72542
72486
|
return (message) => {
|
|
72543
72487
|
console.error(
|
|
72544
72488
|
`
|
|
72545
|
-
${_chalk.bold.hex(colors.error)(">")} ${_chalk.bold.bgHex(colors.error
|
|
72489
|
+
${_chalk.bold.hex(colors.error ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.error ?? "#f85149").whiteBright(
|
|
72490
|
+
" \u2718 Error "
|
|
72491
|
+
)} ${_chalk.hex(colors.error ?? "#f85149")(formatLogMessage(message))}
|
|
72546
72492
|
`
|
|
72547
72493
|
);
|
|
72548
72494
|
};
|
|
@@ -72551,7 +72497,9 @@ ${_chalk.bold.hex(colors.error)(">")} ${_chalk.bold.bgHex(colors.error).whiteBri
|
|
|
72551
72497
|
return (message) => {
|
|
72552
72498
|
console.warn(
|
|
72553
72499
|
`
|
|
72554
|
-
${_chalk.bold.hex(colors.warning)("> ")} ${_chalk.bold.bgHex(colors.warning
|
|
72500
|
+
${_chalk.bold.hex(colors.warning ?? "#e3b341")("> ")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
72501
|
+
" \u26A0 Warn "
|
|
72502
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
72555
72503
|
`
|
|
72556
72504
|
);
|
|
72557
72505
|
};
|
|
@@ -72560,7 +72508,9 @@ ${_chalk.bold.hex(colors.warning)("> ")} ${_chalk.bold.bgHex(colors.warning).whi
|
|
|
72560
72508
|
return (message) => {
|
|
72561
72509
|
console.info(
|
|
72562
72510
|
`
|
|
72563
|
-
${_chalk.bold.hex(colors.success)(">")} ${_chalk.bold.bgHex(colors.success
|
|
72511
|
+
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
72512
|
+
" \u2713 Success "
|
|
72513
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
72564
72514
|
`
|
|
72565
72515
|
);
|
|
72566
72516
|
};
|
|
@@ -72569,7 +72519,9 @@ ${_chalk.bold.hex(colors.success)(">")} ${_chalk.bold.bgHex(colors.success).whit
|
|
|
72569
72519
|
return (message) => {
|
|
72570
72520
|
console.info(
|
|
72571
72521
|
`
|
|
72572
|
-
${_chalk.bold.hex(colors.info)(">")} ${_chalk.bold.bgHex(colors.info
|
|
72522
|
+
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
72523
|
+
" \u2139 Info "
|
|
72524
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
72573
72525
|
`
|
|
72574
72526
|
);
|
|
72575
72527
|
};
|
|
@@ -72578,7 +72530,9 @@ ${_chalk.bold.hex(colors.info)(">")} ${_chalk.bold.bgHex(colors.info).whiteBrigh
|
|
|
72578
72530
|
return (message) => {
|
|
72579
72531
|
console.debug(
|
|
72580
72532
|
`
|
|
72581
|
-
${_chalk.bold.hex(colors.primary)(">")} ${_chalk.bold.bgHex(colors.primary
|
|
72533
|
+
${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.primary ?? "#1fb2a6").whiteBright(
|
|
72534
|
+
" \u{1F6E0} Debug "
|
|
72535
|
+
)} ${_chalk.hex(colors.primary ?? "#1fb2a6")(formatLogMessage(message))}
|
|
72582
72536
|
`
|
|
72583
72537
|
);
|
|
72584
72538
|
};
|
|
@@ -72586,7 +72540,9 @@ ${_chalk.bold.hex(colors.primary)(">")} ${_chalk.bold.bgHex(colors.primary).whit
|
|
|
72586
72540
|
return (message) => {
|
|
72587
72541
|
console.log(
|
|
72588
72542
|
`
|
|
72589
|
-
${_chalk.bold.hex(colors.primary)(">")} ${_chalk.bold.bgHex(colors.primary
|
|
72543
|
+
${_chalk.bold.hex(colors.primary ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.primary ?? "#1fb2a6").whiteBright(
|
|
72544
|
+
" \u2709 System "
|
|
72545
|
+
)} ${_chalk.hex(colors.primary ?? "#1fb2a6")(formatLogMessage(message))}
|
|
72590
72546
|
`
|
|
72591
72547
|
);
|
|
72592
72548
|
};
|
|
@@ -72613,6 +72569,19 @@ ${_chalk.bold.hex(colors.primary)(">")} ${_chalk.bold.bgHex(colors.primary).whit
|
|
|
72613
72569
|
);
|
|
72614
72570
|
};
|
|
72615
72571
|
};
|
|
72572
|
+
formatLogMessage = (message, prefix = "-") => {
|
|
72573
|
+
return typeof message === "string" ? message : typeof message === "object" ? Object.keys(message).map(
|
|
72574
|
+
(key) => ` ${prefix} ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? `
|
|
72575
|
+
${formatLogMessage(message[key], `${prefix}-`)}` : message[key]}`
|
|
72576
|
+
).join("\n") : message;
|
|
72577
|
+
};
|
|
72578
|
+
_isFunction = (value2) => {
|
|
72579
|
+
try {
|
|
72580
|
+
return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
|
|
72581
|
+
} catch (e2) {
|
|
72582
|
+
return false;
|
|
72583
|
+
}
|
|
72584
|
+
};
|
|
72616
72585
|
}
|
|
72617
72586
|
});
|
|
72618
72587
|
|
|
@@ -72789,6 +72758,94 @@ var init_utilities = __esm({
|
|
|
72789
72758
|
}
|
|
72790
72759
|
});
|
|
72791
72760
|
|
|
72761
|
+
// packages/config-tools/src/config-file/get-config-file.ts
|
|
72762
|
+
var import_deepmerge, getConfigFileByName, getConfigFile;
|
|
72763
|
+
var init_get_config_file = __esm({
|
|
72764
|
+
"packages/config-tools/src/config-file/get-config-file.ts"() {
|
|
72765
|
+
init_find_workspace_root();
|
|
72766
|
+
init_dist10();
|
|
72767
|
+
import_deepmerge = __toESM(require_cjs());
|
|
72768
|
+
init_utilities();
|
|
72769
|
+
getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
72770
|
+
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
72771
|
+
let config = loadConfig({
|
|
72772
|
+
cwd: workspacePath,
|
|
72773
|
+
packageJson: true,
|
|
72774
|
+
name: fileName,
|
|
72775
|
+
envName: fileName?.toUpperCase(),
|
|
72776
|
+
jitiOptions: {
|
|
72777
|
+
debug: true,
|
|
72778
|
+
cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
|
|
72779
|
+
},
|
|
72780
|
+
...options
|
|
72781
|
+
});
|
|
72782
|
+
if (!config || Object.keys(config).length === 0) {
|
|
72783
|
+
config = loadConfig({
|
|
72784
|
+
cwd: workspacePath,
|
|
72785
|
+
packageJson: true,
|
|
72786
|
+
name: fileName,
|
|
72787
|
+
envName: fileName?.toUpperCase(),
|
|
72788
|
+
jitiOptions: {
|
|
72789
|
+
debug: true,
|
|
72790
|
+
cache: process.env.STORM_CACHE ? process.env.STORM_CACHE_DIRECTORY : false
|
|
72791
|
+
},
|
|
72792
|
+
configFile: fileName,
|
|
72793
|
+
...options
|
|
72794
|
+
});
|
|
72795
|
+
}
|
|
72796
|
+
return config;
|
|
72797
|
+
};
|
|
72798
|
+
getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
72799
|
+
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
72800
|
+
let { config, configFile } = await getConfigFileByName(
|
|
72801
|
+
"storm",
|
|
72802
|
+
workspacePath
|
|
72803
|
+
);
|
|
72804
|
+
if (config && Object.keys(config).length > 0) {
|
|
72805
|
+
writeTrace(
|
|
72806
|
+
`Found Storm configuration file "${configFile}" at "${workspacePath}"`,
|
|
72807
|
+
{
|
|
72808
|
+
logLevel: "all"
|
|
72809
|
+
}
|
|
72810
|
+
);
|
|
72811
|
+
writeTrace(config, { logLevel: "all" });
|
|
72812
|
+
}
|
|
72813
|
+
if (additionalFileNames && additionalFileNames.length > 0) {
|
|
72814
|
+
const results = await Promise.all(
|
|
72815
|
+
additionalFileNames.map(
|
|
72816
|
+
(fileName) => getConfigFileByName(fileName, workspacePath)
|
|
72817
|
+
)
|
|
72818
|
+
);
|
|
72819
|
+
for (const result of results) {
|
|
72820
|
+
if (result?.config && Object.keys(result.config).length > 0) {
|
|
72821
|
+
writeTrace(
|
|
72822
|
+
`Found additional configuration file "${result.configFile}" at "${workspacePath}"`,
|
|
72823
|
+
{
|
|
72824
|
+
logLevel: "all"
|
|
72825
|
+
}
|
|
72826
|
+
);
|
|
72827
|
+
writeTrace(result.config, { logLevel: "all" });
|
|
72828
|
+
config = (0, import_deepmerge.default)(config ?? {}, result.config ?? {});
|
|
72829
|
+
}
|
|
72830
|
+
}
|
|
72831
|
+
}
|
|
72832
|
+
if (!config) {
|
|
72833
|
+
return void 0;
|
|
72834
|
+
}
|
|
72835
|
+
config.configFile = configFile;
|
|
72836
|
+
config.runtimeVersion = "0.0.1";
|
|
72837
|
+
return config;
|
|
72838
|
+
};
|
|
72839
|
+
}
|
|
72840
|
+
});
|
|
72841
|
+
|
|
72842
|
+
// packages/config-tools/src/config-file/index.ts
|
|
72843
|
+
var init_config_file = __esm({
|
|
72844
|
+
"packages/config-tools/src/config-file/index.ts"() {
|
|
72845
|
+
init_get_config_file();
|
|
72846
|
+
}
|
|
72847
|
+
});
|
|
72848
|
+
|
|
72792
72849
|
// packages/config-tools/src/env/get-env.ts
|
|
72793
72850
|
var getExtensionEnv, getConfigEnv, getThemeColorConfigEnv, getSingleThemeColorConfigEnv, getMultiThemeColorConfigEnv, getBaseThemeColorConfigEnv;
|
|
72794
72851
|
var init_get_env = __esm({
|
|
@@ -73150,7 +73207,7 @@ var init_set_env = __esm({
|
|
|
73150
73207
|
});
|
|
73151
73208
|
|
|
73152
73209
|
// packages/config-tools/src/create-storm-config.ts
|
|
73153
|
-
var _extension_cache, _static_cache, createConfig, createStormConfig, createConfigExtension, loadStormConfig;
|
|
73210
|
+
var import_deepmerge2, _extension_cache, _static_cache, createConfig, createStormConfig, createConfigExtension, loadStormConfig;
|
|
73154
73211
|
var init_create_storm_config = __esm({
|
|
73155
73212
|
"packages/config-tools/src/create-storm-config.ts"() {
|
|
73156
73213
|
init_get_config_file();
|
|
@@ -73159,6 +73216,7 @@ var init_create_storm_config = __esm({
|
|
|
73159
73216
|
init_schema();
|
|
73160
73217
|
init_utilities();
|
|
73161
73218
|
init_get_default_config();
|
|
73219
|
+
import_deepmerge2 = __toESM(require_cjs());
|
|
73162
73220
|
_extension_cache = /* @__PURE__ */ new WeakMap();
|
|
73163
73221
|
_static_cache = void 0;
|
|
73164
73222
|
createConfig = (workspaceRoot3) => {
|
|
@@ -73207,7 +73265,9 @@ var init_create_storm_config = __esm({
|
|
|
73207
73265
|
if (!_workspaceRoot) {
|
|
73208
73266
|
_workspaceRoot = findWorkspaceRoot();
|
|
73209
73267
|
}
|
|
73210
|
-
|
|
73268
|
+
let configFile = await getConfigFile(
|
|
73269
|
+
_workspaceRoot
|
|
73270
|
+
);
|
|
73211
73271
|
if (!configFile) {
|
|
73212
73272
|
writeWarning(
|
|
73213
73273
|
"No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n",
|
|
@@ -73216,10 +73276,7 @@ var init_create_storm_config = __esm({
|
|
|
73216
73276
|
}
|
|
73217
73277
|
config = StormConfigSchema.parse(
|
|
73218
73278
|
await getDefaultConfig(
|
|
73219
|
-
{
|
|
73220
|
-
...getConfigEnv(),
|
|
73221
|
-
...configFile
|
|
73222
|
-
},
|
|
73279
|
+
(0, import_deepmerge2.default)(getConfigEnv(), configFile, {}),
|
|
73223
73280
|
_workspaceRoot
|
|
73224
73281
|
)
|
|
73225
73282
|
);
|
|
@@ -73257,6 +73314,7 @@ __export(src_exports, {
|
|
|
73257
73314
|
findFileName: () => findFileName,
|
|
73258
73315
|
findWorkspaceRoot: () => findWorkspaceRoot,
|
|
73259
73316
|
findWorkspaceRootSafe: () => findWorkspaceRootSafe,
|
|
73317
|
+
formatLogMessage: () => formatLogMessage,
|
|
73260
73318
|
getChalk: () => getChalk,
|
|
73261
73319
|
getConfigEnv: () => getConfigEnv,
|
|
73262
73320
|
getConfigFile: () => getConfigFile,
|
|
@@ -223499,7 +223557,7 @@ ${lanes.join("\n")}
|
|
|
223499
223557
|
return true;
|
|
223500
223558
|
}
|
|
223501
223559
|
if (shouldReallyMerge(a2.node, b6.node, parent2)) {
|
|
223502
|
-
|
|
223560
|
+
merge3(a2, b6);
|
|
223503
223561
|
return true;
|
|
223504
223562
|
}
|
|
223505
223563
|
return false;
|
|
@@ -223533,7 +223591,7 @@ ${lanes.join("\n")}
|
|
|
223533
223591
|
}
|
|
223534
223592
|
return a2.body.kind === b6.body.kind && (a2.body.kind !== 267 || areSameModule(a2.body, b6.body));
|
|
223535
223593
|
}
|
|
223536
|
-
function
|
|
223594
|
+
function merge3(target, source) {
|
|
223537
223595
|
target.additionalNodes = target.additionalNodes || [];
|
|
223538
223596
|
target.additionalNodes.push(source.node);
|
|
223539
223597
|
if (source.additionalNodes) {
|
|
@@ -288035,8 +288093,8 @@ var require_merge2 = __commonJS({
|
|
|
288035
288093
|
var Stream = require("stream");
|
|
288036
288094
|
var PassThrough = Stream.PassThrough;
|
|
288037
288095
|
var slice = Array.prototype.slice;
|
|
288038
|
-
module2.exports =
|
|
288039
|
-
function
|
|
288096
|
+
module2.exports = merge22;
|
|
288097
|
+
function merge22() {
|
|
288040
288098
|
const streamsQueue = [];
|
|
288041
288099
|
const args = slice.call(arguments);
|
|
288042
288100
|
let merging = false;
|
|
@@ -288153,9 +288211,9 @@ var require_stream = __commonJS({
|
|
|
288153
288211
|
"use strict";
|
|
288154
288212
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
288155
288213
|
exports2.merge = void 0;
|
|
288156
|
-
var
|
|
288214
|
+
var merge22 = require_merge2();
|
|
288157
288215
|
function merge3(streams) {
|
|
288158
|
-
const mergedStream =
|
|
288216
|
+
const mergedStream = merge22(streams);
|
|
288159
288217
|
streams.forEach((stream) => {
|
|
288160
288218
|
stream.once("error", (error) => mergedStream.emit("error", error));
|
|
288161
288219
|
});
|
|
@@ -322411,7 +322469,7 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
322411
322469
|
writeTrace2(
|
|
322412
322470
|
`Loaded Storm config into env:
|
|
322413
322471
|
${Object.keys(process.env).filter((key) => key.startsWith("STORM_")).map(
|
|
322414
|
-
(key) => ` - ${key}=${
|
|
322472
|
+
(key) => ` - ${key}=${_isFunction2(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
|
|
322415
322473
|
).join("\n")}`,
|
|
322416
322474
|
config
|
|
322417
322475
|
);
|
|
@@ -322426,7 +322484,7 @@ ${Object.keys(process.env).filter((key) => key.startsWith("STORM_")).map(
|
|
|
322426
322484
|
writeTrace2(
|
|
322427
322485
|
`Executor schema options \u2699\uFE0F
|
|
322428
322486
|
${Object.keys(options).map(
|
|
322429
|
-
(key) => ` - ${key}=${
|
|
322487
|
+
(key) => ` - ${key}=${_isFunction2(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
322430
322488
|
).join("\n")}`,
|
|
322431
322489
|
config
|
|
322432
322490
|
);
|
|
@@ -322451,7 +322509,7 @@ ${Object.keys(options).map(
|
|
|
322451
322509
|
writeDebug2("Completed the preProcess hook", config);
|
|
322452
322510
|
}
|
|
322453
322511
|
const ret = executorFn(tokenized, context, config);
|
|
322454
|
-
if (
|
|
322512
|
+
if (_isFunction2(ret?.next)) {
|
|
322455
322513
|
const asyncGen = ret;
|
|
322456
322514
|
for await (const iter of asyncGen) {
|
|
322457
322515
|
}
|
|
@@ -322492,7 +322550,7 @@ ${Object.keys(options).map(
|
|
|
322492
322550
|
stopwatch();
|
|
322493
322551
|
}
|
|
322494
322552
|
};
|
|
322495
|
-
var
|
|
322553
|
+
var _isFunction2 = (value2) => {
|
|
322496
322554
|
try {
|
|
322497
322555
|
return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
|
|
322498
322556
|
} catch (e2) {
|
|
@@ -326144,7 +326202,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
326144
326202
|
writeDebug2(
|
|
326145
326203
|
`\u2699\uFE0F Executor options:
|
|
326146
326204
|
${Object.keys(options).map(
|
|
326147
|
-
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] :
|
|
326205
|
+
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
326148
326206
|
).join("\n")}
|
|
326149
326207
|
`,
|
|
326150
326208
|
config
|
|
@@ -326185,7 +326243,7 @@ var _isPrimitive = (value2) => {
|
|
|
326185
326243
|
return false;
|
|
326186
326244
|
}
|
|
326187
326245
|
};
|
|
326188
|
-
var
|
|
326246
|
+
var _isFunction3 = (value2) => {
|
|
326189
326247
|
try {
|
|
326190
326248
|
return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
|
|
326191
326249
|
} catch (e2) {
|
|
@@ -326201,7 +326259,7 @@ async function rolldownExecutorFn(options, context, config) {
|
|
|
326201
326259
|
writeDebug2(
|
|
326202
326260
|
`\u2699\uFE0F Executor options:
|
|
326203
326261
|
${Object.keys(options).map(
|
|
326204
|
-
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] :
|
|
326262
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : _isFunction4(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
326205
326263
|
).join("\n")}
|
|
326206
326264
|
`,
|
|
326207
326265
|
config
|
|
@@ -326242,7 +326300,7 @@ var _isPrimitive2 = (value2) => {
|
|
|
326242
326300
|
return false;
|
|
326243
326301
|
}
|
|
326244
326302
|
};
|
|
326245
|
-
var
|
|
326303
|
+
var _isFunction4 = (value2) => {
|
|
326246
326304
|
try {
|
|
326247
326305
|
return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
|
|
326248
326306
|
} catch (e2) {
|
|
@@ -326262,7 +326320,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
326262
326320
|
writeDebug2(
|
|
326263
326321
|
`\u2699\uFE0F Executor options:
|
|
326264
326322
|
${Object.keys(options).map(
|
|
326265
|
-
(key) => `${key}: ${!options[key] || _isPrimitive3(options[key]) ? options[key] :
|
|
326323
|
+
(key) => `${key}: ${!options[key] || _isPrimitive3(options[key]) ? options[key] : _isFunction5(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
326266
326324
|
).join("\n")}
|
|
326267
326325
|
`,
|
|
326268
326326
|
config
|
|
@@ -326300,7 +326358,7 @@ var _isPrimitive3 = (value2) => {
|
|
|
326300
326358
|
return false;
|
|
326301
326359
|
}
|
|
326302
326360
|
};
|
|
326303
|
-
var
|
|
326361
|
+
var _isFunction5 = (value2) => {
|
|
326304
326362
|
try {
|
|
326305
326363
|
return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
|
|
326306
326364
|
} catch (e2) {
|