@storm-software/workspace-tools 1.36.2 → 1.36.3
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 +7 -0
- package/index.js +28 -22
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +15 -9
- package/src/executors/tsup-browser/executor.js +23 -17
- package/src/executors/tsup-neutral/executor.js +23 -17
- package/src/executors/tsup-node/executor.js +20 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.36.2](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.36.1...workspace-tools-v1.36.2) (2024-01-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Updated logic to pass in getConfig params for NodeJs build ([6f8b424](https://github.com/storm-software/storm-ops/commit/6f8b424bc01fa51a0ef4b1e9ec1b2ca4140d9637))
|
|
7
|
+
|
|
1
8
|
## [1.36.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.36.0...workspace-tools-v1.36.1) (2024-01-05)
|
|
2
9
|
|
|
3
10
|
|
package/index.js
CHANGED
|
@@ -106257,9 +106257,9 @@ __export(workspace_tools_exports, {
|
|
|
106257
106257
|
swcHelpersVersion: () => swcHelpersVersion,
|
|
106258
106258
|
swcNodeVersion: () => swcNodeVersion,
|
|
106259
106259
|
tsLibVersion: () => tsLibVersion,
|
|
106260
|
-
tsNeutralBuildExecutorFn: () => tsNeutralBuildExecutorFn,
|
|
106261
|
-
tsNodeBuildExecutorFn: () => tsNodeBuildExecutorFn,
|
|
106262
106260
|
tsupExecutorFn: () => tsupExecutorFn,
|
|
106261
|
+
tsupNeutralBuildExecutorFn: () => tsupNeutralBuildExecutorFn,
|
|
106262
|
+
tsupNodeBuildExecutorFn: () => tsupNodeBuildExecutorFn,
|
|
106263
106263
|
tsupVersion: () => tsupVersion,
|
|
106264
106264
|
typeScriptLibraryGeneratorFn: () => typeScriptLibraryGeneratorFn,
|
|
106265
106265
|
typesNodeVersion: () => typesNodeVersion,
|
|
@@ -117818,16 +117818,22 @@ ${options.banner}
|
|
|
117818
117818
|
outputPath: options.outputPath,
|
|
117819
117819
|
entry
|
|
117820
117820
|
};
|
|
117821
|
-
|
|
117822
|
-
|
|
117823
|
-
|
|
117824
|
-
(
|
|
117825
|
-
|
|
117826
|
-
|
|
117827
|
-
|
|
117828
|
-
|
|
117821
|
+
if (options.getConfig) {
|
|
117822
|
+
const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
|
|
117823
|
+
const config = (0, import_tsup.defineConfig)(
|
|
117824
|
+
getConfigFns.map(
|
|
117825
|
+
(getConfigFn) => getConfig(context.root, projectRoot, getConfigFn, getConfigOptions)
|
|
117826
|
+
)
|
|
117827
|
+
);
|
|
117828
|
+
if (_isFunction(config)) {
|
|
117829
|
+
await build(await Promise.resolve(config({})));
|
|
117830
|
+
} else {
|
|
117831
|
+
await build(config);
|
|
117832
|
+
}
|
|
117829
117833
|
} else {
|
|
117830
|
-
|
|
117834
|
+
console.log(
|
|
117835
|
+
"The Build process did not run because no `getConfig` parameter was provided"
|
|
117836
|
+
);
|
|
117831
117837
|
}
|
|
117832
117838
|
console.log("\u26A1 The Build process has completed successfully");
|
|
117833
117839
|
return {
|
|
@@ -118088,12 +118094,16 @@ function legacyNeutralConfig({
|
|
|
118088
118094
|
}
|
|
118089
118095
|
|
|
118090
118096
|
// packages/workspace-tools/src/executors/tsup-neutral/executor.ts
|
|
118091
|
-
var
|
|
118097
|
+
var tsupNeutralBuildExecutorFn = (options, context, config) => {
|
|
118092
118098
|
if (options.transports && Array.isArray(options.transports) && options.transports.length > 0) {
|
|
118093
118099
|
}
|
|
118094
118100
|
return tsupExecutorFn(
|
|
118095
118101
|
{
|
|
118096
118102
|
...options,
|
|
118103
|
+
getConfig: {
|
|
118104
|
+
"dist/modern": modernNeutralConfig,
|
|
118105
|
+
"dist/legacy": legacyNeutralConfig
|
|
118106
|
+
},
|
|
118097
118107
|
platform: "neutral",
|
|
118098
118108
|
banner: getFileBanner(
|
|
118099
118109
|
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
|
|
@@ -118117,16 +118127,12 @@ var applyDefaultOptions2 = (options) => {
|
|
|
118117
118127
|
...options,
|
|
118118
118128
|
platform: "neutral"
|
|
118119
118129
|
}),
|
|
118120
|
-
getConfig: {
|
|
118121
|
-
"dist/modern": modernNeutralConfig,
|
|
118122
|
-
"dist/legacy": legacyNeutralConfig
|
|
118123
|
-
},
|
|
118124
118130
|
transports: ["pino-pretty"]
|
|
118125
118131
|
};
|
|
118126
118132
|
};
|
|
118127
118133
|
var executor_default2 = withRunExecutor(
|
|
118128
118134
|
"TypeScript Build (Neutral Platform)",
|
|
118129
|
-
|
|
118135
|
+
tsupNeutralBuildExecutorFn,
|
|
118130
118136
|
{
|
|
118131
118137
|
skipReadingConfig: false,
|
|
118132
118138
|
hooks: {
|
|
@@ -118211,12 +118217,13 @@ function nodeConfig({
|
|
|
118211
118217
|
}
|
|
118212
118218
|
|
|
118213
118219
|
// packages/workspace-tools/src/executors/tsup-node/executor.ts
|
|
118214
|
-
var
|
|
118220
|
+
var tsupNodeBuildExecutorFn = (options, context, config) => {
|
|
118215
118221
|
if (options.transports && Array.isArray(options.transports) && options.transports.length > 0) {
|
|
118216
118222
|
}
|
|
118217
118223
|
return tsupExecutorFn(
|
|
118218
118224
|
{
|
|
118219
118225
|
...options,
|
|
118226
|
+
getConfig: { "dist": nodeConfig },
|
|
118220
118227
|
platform: "node",
|
|
118221
118228
|
banner: getFileBanner(
|
|
118222
118229
|
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
|
|
@@ -118236,13 +118243,12 @@ var tsNodeBuildExecutorFn = (options, context, config) => {
|
|
|
118236
118243
|
var applyDefaultOptions3 = (options) => {
|
|
118237
118244
|
return {
|
|
118238
118245
|
...applyDefaultOptions({ plugins: [], ...options, platform: "node" }),
|
|
118239
|
-
getConfig: { "dist": nodeConfig },
|
|
118240
118246
|
transports: ["pino-pretty", "pino-loki"]
|
|
118241
118247
|
};
|
|
118242
118248
|
};
|
|
118243
118249
|
var executor_default3 = withRunExecutor(
|
|
118244
118250
|
"TypeScript Build (NodeJs Platform)",
|
|
118245
|
-
|
|
118251
|
+
tsupNodeBuildExecutorFn,
|
|
118246
118252
|
{
|
|
118247
118253
|
skipReadingConfig: false,
|
|
118248
118254
|
hooks: {
|
|
@@ -119771,9 +119777,9 @@ var WorkspaceStorage = class {
|
|
|
119771
119777
|
swcHelpersVersion,
|
|
119772
119778
|
swcNodeVersion,
|
|
119773
119779
|
tsLibVersion,
|
|
119774
|
-
tsNeutralBuildExecutorFn,
|
|
119775
|
-
tsNodeBuildExecutorFn,
|
|
119776
119780
|
tsupExecutorFn,
|
|
119781
|
+
tsupNeutralBuildExecutorFn,
|
|
119782
|
+
tsupNodeBuildExecutorFn,
|
|
119777
119783
|
tsupVersion,
|
|
119778
119784
|
typeScriptLibraryGeneratorFn,
|
|
119779
119785
|
typesNodeVersion,
|