@storm-software/workspace-tools 1.49.22 → 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 +24 -0
- package/index.js +41 -25
- 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 +33 -12
- package/src/executors/tsup-neutral/executor.js +33 -12
- package/src/executors/tsup-node/executor.js +33 -12
- package/src/executors/typia/executor.js +13 -2
- package/src/utils/index.js +7 -10
package/package.json
CHANGED
package/src/base/index.js
CHANGED
|
@@ -50125,7 +50125,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
50125
50125
|
writeTrace(
|
|
50126
50126
|
config,
|
|
50127
50127
|
`Loaded Storm config into env:
|
|
50128
|
-
${Object.keys(process.env).map(
|
|
50128
|
+
${Object.keys(process.env).map(
|
|
50129
|
+
(key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
|
|
50130
|
+
).join("\n")}`
|
|
50129
50131
|
);
|
|
50130
50132
|
}
|
|
50131
50133
|
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
@@ -50136,7 +50138,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
50136
50138
|
writeTrace(
|
|
50137
50139
|
config,
|
|
50138
50140
|
`Executor schema options \u2699\uFE0F
|
|
50139
|
-
${Object.keys(options).map(
|
|
50141
|
+
${Object.keys(options).map(
|
|
50142
|
+
(key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
50143
|
+
).join("\n")}`
|
|
50140
50144
|
);
|
|
50141
50145
|
const tokenized = applyWorkspaceTokens(
|
|
50142
50146
|
options,
|
|
@@ -50190,6 +50194,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
|
|
|
50190
50194
|
stopwatch();
|
|
50191
50195
|
}
|
|
50192
50196
|
};
|
|
50197
|
+
var _isFunction = (value) => {
|
|
50198
|
+
try {
|
|
50199
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
50200
|
+
} catch (e) {
|
|
50201
|
+
return false;
|
|
50202
|
+
}
|
|
50203
|
+
};
|
|
50193
50204
|
|
|
50194
50205
|
// packages/workspace-tools/src/base/base-generator.ts
|
|
50195
50206
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
@@ -67820,7 +67820,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
67820
67820
|
writeTrace(
|
|
67821
67821
|
config,
|
|
67822
67822
|
`Loaded Storm config into env:
|
|
67823
|
-
${Object.keys(process.env).map(
|
|
67823
|
+
${Object.keys(process.env).map(
|
|
67824
|
+
(key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
|
|
67825
|
+
).join("\n")}`
|
|
67824
67826
|
);
|
|
67825
67827
|
}
|
|
67826
67828
|
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
@@ -67831,7 +67833,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
67831
67833
|
writeTrace(
|
|
67832
67834
|
config,
|
|
67833
67835
|
`Executor schema options \u2699\uFE0F
|
|
67834
|
-
${Object.keys(options).map(
|
|
67836
|
+
${Object.keys(options).map(
|
|
67837
|
+
(key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
67838
|
+
).join("\n")}`
|
|
67835
67839
|
);
|
|
67836
67840
|
const tokenized = applyWorkspaceTokens(
|
|
67837
67841
|
options,
|
|
@@ -67885,6 +67889,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
|
|
|
67885
67889
|
stopwatch();
|
|
67886
67890
|
}
|
|
67887
67891
|
};
|
|
67892
|
+
var _isFunction = (value2) => {
|
|
67893
|
+
try {
|
|
67894
|
+
return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
|
|
67895
|
+
} catch (e) {
|
|
67896
|
+
return false;
|
|
67897
|
+
}
|
|
67898
|
+
};
|
|
67888
67899
|
|
|
67889
67900
|
// packages/workspace-tools/src/executors/design-tokens/executor.ts
|
|
67890
67901
|
var designTokensExecutorFn = (options, context, config) => {
|
|
@@ -115134,7 +115134,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
115134
115134
|
writeTrace(
|
|
115135
115135
|
config,
|
|
115136
115136
|
`Loaded Storm config into env:
|
|
115137
|
-
${Object.keys(process.env).map(
|
|
115137
|
+
${Object.keys(process.env).map(
|
|
115138
|
+
(key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
|
|
115139
|
+
).join("\n")}`
|
|
115138
115140
|
);
|
|
115139
115141
|
}
|
|
115140
115142
|
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
@@ -115145,7 +115147,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
115145
115147
|
writeTrace(
|
|
115146
115148
|
config,
|
|
115147
115149
|
`Executor schema options \u2699\uFE0F
|
|
115148
|
-
${Object.keys(options).map(
|
|
115150
|
+
${Object.keys(options).map(
|
|
115151
|
+
(key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
115152
|
+
).join("\n")}`
|
|
115149
115153
|
);
|
|
115150
115154
|
const tokenized = applyWorkspaceTokens(
|
|
115151
115155
|
options,
|
|
@@ -115199,6 +115203,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
|
|
|
115199
115203
|
stopwatch();
|
|
115200
115204
|
}
|
|
115201
115205
|
};
|
|
115206
|
+
var _isFunction = (value) => {
|
|
115207
|
+
try {
|
|
115208
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
115209
|
+
} catch (e) {
|
|
115210
|
+
return false;
|
|
115211
|
+
}
|
|
115212
|
+
};
|
|
115202
115213
|
|
|
115203
115214
|
// packages/workspace-tools/src/utils/file-path-utils.ts
|
|
115204
115215
|
var removeExtension = (filePath) => {
|
|
@@ -115410,7 +115421,9 @@ var applyDefaultOptions = (options) => {
|
|
|
115410
115421
|
options.skipNativeModulesPlugin ??= false;
|
|
115411
115422
|
options.define ??= {};
|
|
115412
115423
|
options.env ??= {};
|
|
115413
|
-
options.getConfig
|
|
115424
|
+
if (options.getConfig) {
|
|
115425
|
+
options.getConfig = defaultConfig;
|
|
115426
|
+
}
|
|
115414
115427
|
return options;
|
|
115415
115428
|
};
|
|
115416
115429
|
var runTsupBuild = async (context, config, options) => {
|
|
@@ -115473,7 +115486,7 @@ ${options.banner}
|
|
|
115473
115486
|
config,
|
|
115474
115487
|
`\u2699\uFE0F Build options:
|
|
115475
115488
|
${Object.keys(options).map(
|
|
115476
|
-
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
115489
|
+
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction2(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
115477
115490
|
).join("\n")}
|
|
115478
115491
|
`
|
|
115479
115492
|
);
|
|
@@ -115483,7 +115496,7 @@ ${options.banner}
|
|
|
115483
115496
|
(getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
|
|
115484
115497
|
)
|
|
115485
115498
|
);
|
|
115486
|
-
if (
|
|
115499
|
+
if (_isFunction2(tsupConfig)) {
|
|
115487
115500
|
await build(await Promise.resolve(tsupConfig({})), config);
|
|
115488
115501
|
} else {
|
|
115489
115502
|
await build(tsupConfig, config);
|
|
@@ -115543,7 +115556,7 @@ var _isPrimitive = (value) => {
|
|
|
115543
115556
|
return false;
|
|
115544
115557
|
}
|
|
115545
115558
|
};
|
|
115546
|
-
var
|
|
115559
|
+
var _isFunction2 = (value) => {
|
|
115547
115560
|
try {
|
|
115548
115561
|
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
115549
115562
|
} catch (e) {
|
|
@@ -115570,7 +115583,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
115570
115583
|
config,
|
|
115571
115584
|
`\u2699\uFE0F Executor options:
|
|
115572
115585
|
${Object.keys(options).map(
|
|
115573
|
-
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
115586
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
115574
115587
|
).join("\n")}
|
|
115575
115588
|
`
|
|
115576
115589
|
);
|
|
@@ -115898,7 +115911,8 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115898
115911
|
config,
|
|
115899
115912
|
{
|
|
115900
115913
|
...options,
|
|
115901
|
-
outputPath
|
|
115914
|
+
outputPath,
|
|
115915
|
+
getConfig: options.getConfig
|
|
115902
115916
|
}
|
|
115903
115917
|
);
|
|
115904
115918
|
})
|
|
@@ -115921,6 +115935,13 @@ var _isPrimitive2 = (value) => {
|
|
|
115921
115935
|
return false;
|
|
115922
115936
|
}
|
|
115923
115937
|
};
|
|
115938
|
+
var _isFunction3 = (value) => {
|
|
115939
|
+
try {
|
|
115940
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
115941
|
+
} catch (e) {
|
|
115942
|
+
return false;
|
|
115943
|
+
}
|
|
115944
|
+
};
|
|
115924
115945
|
// Annotate the CommonJS export names for ESM import in node:
|
|
115925
115946
|
0 && (module.exports = {
|
|
115926
115947
|
tsupExecutorFn
|
|
@@ -108949,7 +108949,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
108949
108949
|
writeTrace(
|
|
108950
108950
|
config,
|
|
108951
108951
|
`Loaded Storm config into env:
|
|
108952
|
-
${Object.keys(process.env).map(
|
|
108952
|
+
${Object.keys(process.env).map(
|
|
108953
|
+
(key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
|
|
108954
|
+
).join("\n")}`
|
|
108953
108955
|
);
|
|
108954
108956
|
}
|
|
108955
108957
|
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
@@ -108960,7 +108962,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
108960
108962
|
writeTrace(
|
|
108961
108963
|
config,
|
|
108962
108964
|
`Executor schema options \u2699\uFE0F
|
|
108963
|
-
${Object.keys(options).map(
|
|
108965
|
+
${Object.keys(options).map(
|
|
108966
|
+
(key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
108967
|
+
).join("\n")}`
|
|
108964
108968
|
);
|
|
108965
108969
|
const tokenized = applyWorkspaceTokens(
|
|
108966
108970
|
options,
|
|
@@ -109014,6 +109018,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
|
|
|
109014
109018
|
stopwatch();
|
|
109015
109019
|
}
|
|
109016
109020
|
};
|
|
109021
|
+
var _isFunction = (value) => {
|
|
109022
|
+
try {
|
|
109023
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
109024
|
+
} catch (e) {
|
|
109025
|
+
return false;
|
|
109026
|
+
}
|
|
109027
|
+
};
|
|
109017
109028
|
|
|
109018
109029
|
// packages/workspace-tools/src/utils/get-file-banner.ts
|
|
109019
109030
|
var getFileBanner = (name, commentStart = "//") => {
|
|
@@ -109029,7 +109040,7 @@ ${commentStart} ${padding}Storm Software
|
|
|
109029
109040
|
${commentStart} \u26A1 ${process.env.STORM_NAMESPACE} - ${name}
|
|
109030
109041
|
${commentStart}
|
|
109031
109042
|
${commentStart} This code was released as part of the ${process.env.STORM_NAMESPACE} project. ${process.env.STORM_NAMESPACE}
|
|
109032
|
-
${commentStart} is maintained by Storm Software under the
|
|
109043
|
+
${commentStart} is maintained by Storm Software under the ${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
|
|
109033
109044
|
${commentStart} free for commercial and private use. For more information, please visit
|
|
109034
109045
|
${commentStart} our licensing page.
|
|
109035
109046
|
${commentStart}
|
|
@@ -109233,7 +109244,9 @@ var applyDefaultOptions = (options) => {
|
|
|
109233
109244
|
options.skipNativeModulesPlugin ??= false;
|
|
109234
109245
|
options.define ??= {};
|
|
109235
109246
|
options.env ??= {};
|
|
109236
|
-
options.getConfig
|
|
109247
|
+
if (options.getConfig) {
|
|
109248
|
+
options.getConfig = defaultConfig;
|
|
109249
|
+
}
|
|
109237
109250
|
return options;
|
|
109238
109251
|
};
|
|
109239
109252
|
var runTsupBuild = async (context, config, options) => {
|
|
@@ -109296,7 +109309,7 @@ ${options.banner}
|
|
|
109296
109309
|
config,
|
|
109297
109310
|
`\u2699\uFE0F Build options:
|
|
109298
109311
|
${Object.keys(options).map(
|
|
109299
|
-
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
109312
|
+
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction2(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
109300
109313
|
).join("\n")}
|
|
109301
109314
|
`
|
|
109302
109315
|
);
|
|
@@ -109306,7 +109319,7 @@ ${options.banner}
|
|
|
109306
109319
|
(getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
|
|
109307
109320
|
)
|
|
109308
109321
|
);
|
|
109309
|
-
if (
|
|
109322
|
+
if (_isFunction2(tsupConfig)) {
|
|
109310
109323
|
await build(await Promise.resolve(tsupConfig({})), config);
|
|
109311
109324
|
} else {
|
|
109312
109325
|
await build(tsupConfig, config);
|
|
@@ -109366,7 +109379,7 @@ var _isPrimitive = (value) => {
|
|
|
109366
109379
|
return false;
|
|
109367
109380
|
}
|
|
109368
109381
|
};
|
|
109369
|
-
var
|
|
109382
|
+
var _isFunction2 = (value) => {
|
|
109370
109383
|
try {
|
|
109371
109384
|
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
109372
109385
|
} catch (e) {
|
|
@@ -115600,7 +115613,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
115600
115613
|
config,
|
|
115601
115614
|
`\u2699\uFE0F Executor options:
|
|
115602
115615
|
${Object.keys(options).map(
|
|
115603
|
-
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
115616
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
115604
115617
|
).join("\n")}
|
|
115605
115618
|
`
|
|
115606
115619
|
);
|
|
@@ -115928,7 +115941,8 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115928
115941
|
config,
|
|
115929
115942
|
{
|
|
115930
115943
|
...options,
|
|
115931
|
-
outputPath
|
|
115944
|
+
outputPath,
|
|
115945
|
+
getConfig: options.getConfig
|
|
115932
115946
|
}
|
|
115933
115947
|
);
|
|
115934
115948
|
})
|
|
@@ -115951,6 +115965,13 @@ var _isPrimitive2 = (value) => {
|
|
|
115951
115965
|
return false;
|
|
115952
115966
|
}
|
|
115953
115967
|
};
|
|
115968
|
+
var _isFunction3 = (value) => {
|
|
115969
|
+
try {
|
|
115970
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
115971
|
+
} catch (e) {
|
|
115972
|
+
return false;
|
|
115973
|
+
}
|
|
115974
|
+
};
|
|
115954
115975
|
|
|
115955
115976
|
// packages/workspace-tools/src/executors/tsup-browser/get-config.ts
|
|
115956
115977
|
var import_devkit4 = __toESM(require_devkit());
|
|
@@ -116062,9 +116083,9 @@ var applyDefaultOptions2 = (options) => {
|
|
|
116062
116083
|
...applyDefaultOptions({
|
|
116063
116084
|
plugins: [],
|
|
116064
116085
|
...options,
|
|
116065
|
-
platform: "browser"
|
|
116066
|
-
|
|
116067
|
-
|
|
116086
|
+
platform: "browser"
|
|
116087
|
+
}),
|
|
116088
|
+
getConfig: browserConfig
|
|
116068
116089
|
};
|
|
116069
116090
|
};
|
|
116070
116091
|
var executor_default2 = withRunExecutor(
|
|
@@ -108949,7 +108949,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
108949
108949
|
writeTrace(
|
|
108950
108950
|
config,
|
|
108951
108951
|
`Loaded Storm config into env:
|
|
108952
|
-
${Object.keys(process.env).map(
|
|
108952
|
+
${Object.keys(process.env).map(
|
|
108953
|
+
(key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
|
|
108954
|
+
).join("\n")}`
|
|
108953
108955
|
);
|
|
108954
108956
|
}
|
|
108955
108957
|
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
@@ -108960,7 +108962,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
108960
108962
|
writeTrace(
|
|
108961
108963
|
config,
|
|
108962
108964
|
`Executor schema options \u2699\uFE0F
|
|
108963
|
-
${Object.keys(options).map(
|
|
108965
|
+
${Object.keys(options).map(
|
|
108966
|
+
(key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
108967
|
+
).join("\n")}`
|
|
108964
108968
|
);
|
|
108965
108969
|
const tokenized = applyWorkspaceTokens(
|
|
108966
108970
|
options,
|
|
@@ -109014,6 +109018,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
|
|
|
109014
109018
|
stopwatch();
|
|
109015
109019
|
}
|
|
109016
109020
|
};
|
|
109021
|
+
var _isFunction = (value) => {
|
|
109022
|
+
try {
|
|
109023
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
109024
|
+
} catch (e) {
|
|
109025
|
+
return false;
|
|
109026
|
+
}
|
|
109027
|
+
};
|
|
109017
109028
|
|
|
109018
109029
|
// packages/workspace-tools/src/utils/get-file-banner.ts
|
|
109019
109030
|
var getFileBanner = (name, commentStart = "//") => {
|
|
@@ -109029,7 +109040,7 @@ ${commentStart} ${padding}Storm Software
|
|
|
109029
109040
|
${commentStart} \u26A1 ${process.env.STORM_NAMESPACE} - ${name}
|
|
109030
109041
|
${commentStart}
|
|
109031
109042
|
${commentStart} This code was released as part of the ${process.env.STORM_NAMESPACE} project. ${process.env.STORM_NAMESPACE}
|
|
109032
|
-
${commentStart} is maintained by Storm Software under the
|
|
109043
|
+
${commentStart} is maintained by Storm Software under the ${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
|
|
109033
109044
|
${commentStart} free for commercial and private use. For more information, please visit
|
|
109034
109045
|
${commentStart} our licensing page.
|
|
109035
109046
|
${commentStart}
|
|
@@ -109233,7 +109244,9 @@ var applyDefaultOptions = (options) => {
|
|
|
109233
109244
|
options.skipNativeModulesPlugin ??= false;
|
|
109234
109245
|
options.define ??= {};
|
|
109235
109246
|
options.env ??= {};
|
|
109236
|
-
options.getConfig
|
|
109247
|
+
if (options.getConfig) {
|
|
109248
|
+
options.getConfig = defaultConfig;
|
|
109249
|
+
}
|
|
109237
109250
|
return options;
|
|
109238
109251
|
};
|
|
109239
109252
|
var runTsupBuild = async (context, config, options) => {
|
|
@@ -109296,7 +109309,7 @@ ${options.banner}
|
|
|
109296
109309
|
config,
|
|
109297
109310
|
`\u2699\uFE0F Build options:
|
|
109298
109311
|
${Object.keys(options).map(
|
|
109299
|
-
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
109312
|
+
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction2(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
109300
109313
|
).join("\n")}
|
|
109301
109314
|
`
|
|
109302
109315
|
);
|
|
@@ -109306,7 +109319,7 @@ ${options.banner}
|
|
|
109306
109319
|
(getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
|
|
109307
109320
|
)
|
|
109308
109321
|
);
|
|
109309
|
-
if (
|
|
109322
|
+
if (_isFunction2(tsupConfig)) {
|
|
109310
109323
|
await build(await Promise.resolve(tsupConfig({})), config);
|
|
109311
109324
|
} else {
|
|
109312
109325
|
await build(tsupConfig, config);
|
|
@@ -109366,7 +109379,7 @@ var _isPrimitive = (value) => {
|
|
|
109366
109379
|
return false;
|
|
109367
109380
|
}
|
|
109368
109381
|
};
|
|
109369
|
-
var
|
|
109382
|
+
var _isFunction2 = (value) => {
|
|
109370
109383
|
try {
|
|
109371
109384
|
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
109372
109385
|
} catch (e) {
|
|
@@ -115600,7 +115613,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
115600
115613
|
config,
|
|
115601
115614
|
`\u2699\uFE0F Executor options:
|
|
115602
115615
|
${Object.keys(options).map(
|
|
115603
|
-
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
115616
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
115604
115617
|
).join("\n")}
|
|
115605
115618
|
`
|
|
115606
115619
|
);
|
|
@@ -115928,7 +115941,8 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115928
115941
|
config,
|
|
115929
115942
|
{
|
|
115930
115943
|
...options,
|
|
115931
|
-
outputPath
|
|
115944
|
+
outputPath,
|
|
115945
|
+
getConfig: options.getConfig
|
|
115932
115946
|
}
|
|
115933
115947
|
);
|
|
115934
115948
|
})
|
|
@@ -115951,6 +115965,13 @@ var _isPrimitive2 = (value) => {
|
|
|
115951
115965
|
return false;
|
|
115952
115966
|
}
|
|
115953
115967
|
};
|
|
115968
|
+
var _isFunction3 = (value) => {
|
|
115969
|
+
try {
|
|
115970
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
115971
|
+
} catch (e) {
|
|
115972
|
+
return false;
|
|
115973
|
+
}
|
|
115974
|
+
};
|
|
115954
115975
|
|
|
115955
115976
|
// packages/workspace-tools/src/executors/tsup-neutral/get-config.ts
|
|
115956
115977
|
var import_devkit4 = __toESM(require_devkit());
|
|
@@ -116065,9 +116086,9 @@ var applyDefaultOptions2 = (options) => {
|
|
|
116065
116086
|
...applyDefaultOptions({
|
|
116066
116087
|
plugins: [],
|
|
116067
116088
|
...options,
|
|
116068
|
-
platform: "neutral"
|
|
116069
|
-
|
|
116070
|
-
|
|
116089
|
+
platform: "neutral"
|
|
116090
|
+
}),
|
|
116091
|
+
getConfig: neutralConfig
|
|
116071
116092
|
};
|
|
116072
116093
|
};
|
|
116073
116094
|
var executor_default2 = withRunExecutor(
|
|
@@ -108949,7 +108949,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
108949
108949
|
writeTrace(
|
|
108950
108950
|
config,
|
|
108951
108951
|
`Loaded Storm config into env:
|
|
108952
|
-
${Object.keys(process.env).map(
|
|
108952
|
+
${Object.keys(process.env).map(
|
|
108953
|
+
(key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
|
|
108954
|
+
).join("\n")}`
|
|
108953
108955
|
);
|
|
108954
108956
|
}
|
|
108955
108957
|
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
@@ -108960,7 +108962,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
108960
108962
|
writeTrace(
|
|
108961
108963
|
config,
|
|
108962
108964
|
`Executor schema options \u2699\uFE0F
|
|
108963
|
-
${Object.keys(options).map(
|
|
108965
|
+
${Object.keys(options).map(
|
|
108966
|
+
(key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
108967
|
+
).join("\n")}`
|
|
108964
108968
|
);
|
|
108965
108969
|
const tokenized = applyWorkspaceTokens(
|
|
108966
108970
|
options,
|
|
@@ -109014,6 +109018,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
|
|
|
109014
109018
|
stopwatch();
|
|
109015
109019
|
}
|
|
109016
109020
|
};
|
|
109021
|
+
var _isFunction = (value) => {
|
|
109022
|
+
try {
|
|
109023
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
109024
|
+
} catch (e) {
|
|
109025
|
+
return false;
|
|
109026
|
+
}
|
|
109027
|
+
};
|
|
109017
109028
|
|
|
109018
109029
|
// packages/workspace-tools/src/utils/get-file-banner.ts
|
|
109019
109030
|
var getFileBanner = (name, commentStart = "//") => {
|
|
@@ -109029,7 +109040,7 @@ ${commentStart} ${padding}Storm Software
|
|
|
109029
109040
|
${commentStart} \u26A1 ${process.env.STORM_NAMESPACE} - ${name}
|
|
109030
109041
|
${commentStart}
|
|
109031
109042
|
${commentStart} This code was released as part of the ${process.env.STORM_NAMESPACE} project. ${process.env.STORM_NAMESPACE}
|
|
109032
|
-
${commentStart} is maintained by Storm Software under the
|
|
109043
|
+
${commentStart} is maintained by Storm Software under the ${process.env.STORM_LICENSE ?? "Apache License 2.0"}, and is
|
|
109033
109044
|
${commentStart} free for commercial and private use. For more information, please visit
|
|
109034
109045
|
${commentStart} our licensing page.
|
|
109035
109046
|
${commentStart}
|
|
@@ -109233,7 +109244,9 @@ var applyDefaultOptions = (options) => {
|
|
|
109233
109244
|
options.skipNativeModulesPlugin ??= false;
|
|
109234
109245
|
options.define ??= {};
|
|
109235
109246
|
options.env ??= {};
|
|
109236
|
-
options.getConfig
|
|
109247
|
+
if (options.getConfig) {
|
|
109248
|
+
options.getConfig = defaultConfig;
|
|
109249
|
+
}
|
|
109237
109250
|
return options;
|
|
109238
109251
|
};
|
|
109239
109252
|
var runTsupBuild = async (context, config, options) => {
|
|
@@ -109296,7 +109309,7 @@ ${options.banner}
|
|
|
109296
109309
|
config,
|
|
109297
109310
|
`\u2699\uFE0F Build options:
|
|
109298
109311
|
${Object.keys(options).map(
|
|
109299
|
-
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
109312
|
+
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction2(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
109300
109313
|
).join("\n")}
|
|
109301
109314
|
`
|
|
109302
109315
|
);
|
|
@@ -109306,7 +109319,7 @@ ${options.banner}
|
|
|
109306
109319
|
(getConfigFn) => getConfig(config.workspaceRoot, context.projectRoot, getConfigFn, getConfigOptions)
|
|
109307
109320
|
)
|
|
109308
109321
|
);
|
|
109309
|
-
if (
|
|
109322
|
+
if (_isFunction2(tsupConfig)) {
|
|
109310
109323
|
await build(await Promise.resolve(tsupConfig({})), config);
|
|
109311
109324
|
} else {
|
|
109312
109325
|
await build(tsupConfig, config);
|
|
@@ -109366,7 +109379,7 @@ var _isPrimitive = (value) => {
|
|
|
109366
109379
|
return false;
|
|
109367
109380
|
}
|
|
109368
109381
|
};
|
|
109369
|
-
var
|
|
109382
|
+
var _isFunction2 = (value) => {
|
|
109370
109383
|
try {
|
|
109371
109384
|
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
109372
109385
|
} catch (e) {
|
|
@@ -115600,7 +115613,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
115600
115613
|
config,
|
|
115601
115614
|
`\u2699\uFE0F Executor options:
|
|
115602
115615
|
${Object.keys(options).map(
|
|
115603
|
-
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
115616
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
115604
115617
|
).join("\n")}
|
|
115605
115618
|
`
|
|
115606
115619
|
);
|
|
@@ -115928,7 +115941,8 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
|
|
|
115928
115941
|
config,
|
|
115929
115942
|
{
|
|
115930
115943
|
...options,
|
|
115931
|
-
outputPath
|
|
115944
|
+
outputPath,
|
|
115945
|
+
getConfig: options.getConfig
|
|
115932
115946
|
}
|
|
115933
115947
|
);
|
|
115934
115948
|
})
|
|
@@ -115951,6 +115965,13 @@ var _isPrimitive2 = (value) => {
|
|
|
115951
115965
|
return false;
|
|
115952
115966
|
}
|
|
115953
115967
|
};
|
|
115968
|
+
var _isFunction3 = (value) => {
|
|
115969
|
+
try {
|
|
115970
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
115971
|
+
} catch (e) {
|
|
115972
|
+
return false;
|
|
115973
|
+
}
|
|
115974
|
+
};
|
|
115954
115975
|
|
|
115955
115976
|
// packages/workspace-tools/src/executors/tsup-node/get-config.ts
|
|
115956
115977
|
var import_devkit4 = __toESM(require_devkit());
|
|
@@ -116064,10 +116085,10 @@ var applyDefaultOptions2 = (options) => {
|
|
|
116064
116085
|
...applyDefaultOptions({
|
|
116065
116086
|
plugins: [],
|
|
116066
116087
|
...options,
|
|
116067
|
-
platform: "node"
|
|
116068
|
-
getConfig: nodeConfig
|
|
116088
|
+
platform: "node"
|
|
116069
116089
|
}),
|
|
116070
|
-
transports: ["pino-pretty", "pino-loki"]
|
|
116090
|
+
transports: ["pino-pretty", "pino-loki"],
|
|
116091
|
+
getConfig: nodeConfig
|
|
116071
116092
|
};
|
|
116072
116093
|
};
|
|
116073
116094
|
var executor_default2 = withRunExecutor(
|
|
@@ -39143,7 +39143,9 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
39143
39143
|
writeTrace(
|
|
39144
39144
|
config,
|
|
39145
39145
|
`Loaded Storm config into env:
|
|
39146
|
-
${Object.keys(process.env).map(
|
|
39146
|
+
${Object.keys(process.env).map(
|
|
39147
|
+
(key) => ` - ${key}=${_isFunction(process.env[key]) ? "<function>" : JSON.stringify(process.env[key])}`
|
|
39148
|
+
).join("\n")}`
|
|
39147
39149
|
);
|
|
39148
39150
|
}
|
|
39149
39151
|
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
@@ -39154,7 +39156,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
39154
39156
|
writeTrace(
|
|
39155
39157
|
config,
|
|
39156
39158
|
`Executor schema options \u2699\uFE0F
|
|
39157
|
-
${Object.keys(options).map(
|
|
39159
|
+
${Object.keys(options).map(
|
|
39160
|
+
(key) => ` - ${key}=${_isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
39161
|
+
).join("\n")}`
|
|
39158
39162
|
);
|
|
39159
39163
|
const tokenized = applyWorkspaceTokens(
|
|
39160
39164
|
options,
|
|
@@ -39208,6 +39212,13 @@ ${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`)
|
|
|
39208
39212
|
stopwatch();
|
|
39209
39213
|
}
|
|
39210
39214
|
};
|
|
39215
|
+
var _isFunction = (value) => {
|
|
39216
|
+
try {
|
|
39217
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
39218
|
+
} catch (e) {
|
|
39219
|
+
return false;
|
|
39220
|
+
}
|
|
39221
|
+
};
|
|
39211
39222
|
|
|
39212
39223
|
// packages/workspace-tools/src/executors/typia/executor.ts
|
|
39213
39224
|
async function typiaExecutorFn(options, _, config) {
|
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) => {
|
|
@@ -119476,7 +119473,7 @@ ${options.banner}
|
|
|
119476
119473
|
config,
|
|
119477
119474
|
`\u2699\uFE0F Build options:
|
|
119478
119475
|
${Object.keys(options).map(
|
|
119479
|
-
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
|
|
119476
|
+
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
119480
119477
|
).join("\n")}
|
|
119481
119478
|
`
|
|
119482
119479
|
);
|