@storm-software/workspace-tools 1.129.1 → 1.129.2
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 +5 -49
- package/meta.json +1 -1
- package/package.json +1 -1
- package/packages/build-tools/src/config/get-rolldown-config.d.ts +1 -1
- package/packages/build-tools/src/types.d.ts +3 -2
- package/packages/build-tools/src/utils/generate-package-json.d.ts +2 -0
- package/packages/workspace-tools/src/executors/rolldown/executor.d.ts +1 -1
- package/packages/workspace-tools/src/executors/unbuild/executor.d.ts +2 -2
- package/src/executors/rolldown/executor.js +1 -23
- package/src/executors/unbuild/executor.js +1 -23
package/CHANGELOG.md
CHANGED
package/index.js
CHANGED
|
@@ -616147,17 +616147,9 @@ var LARGE_BUFFER3 = 1024 * 1e6;
|
|
|
616147
616147
|
|
|
616148
616148
|
// packages/workspace-tools/src/executors/rolldown/executor.ts
|
|
616149
616149
|
async function rolldownExecutorFn(options, context, config) {
|
|
616150
|
-
const {
|
|
616150
|
+
const { writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
616151
616151
|
const { rolldown } = await import("@storm-software/build-tools");
|
|
616152
616152
|
writeInfo2("\u{1F4E6} Running Storm build executor on the workspace", config);
|
|
616153
|
-
writeDebug2(
|
|
616154
|
-
`\u2699\uFE0F Executor options:
|
|
616155
|
-
${Object.keys(options).map(
|
|
616156
|
-
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
616157
|
-
).join("\n")}
|
|
616158
|
-
`,
|
|
616159
|
-
config
|
|
616160
|
-
);
|
|
616161
616153
|
if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
616162
616154
|
throw new Error(
|
|
616163
616155
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -616187,20 +616179,6 @@ var executor_default2 = withRunExecutor(
|
|
|
616187
616179
|
}
|
|
616188
616180
|
}
|
|
616189
616181
|
);
|
|
616190
|
-
var _isPrimitive = (value2) => {
|
|
616191
|
-
try {
|
|
616192
|
-
return value2 === void 0 || value2 === null || typeof value2 !== "object" && typeof value2 !== "function";
|
|
616193
|
-
} catch (e2) {
|
|
616194
|
-
return false;
|
|
616195
|
-
}
|
|
616196
|
-
};
|
|
616197
|
-
var _isFunction3 = (value2) => {
|
|
616198
|
-
try {
|
|
616199
|
-
return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
|
|
616200
|
-
} catch (e2) {
|
|
616201
|
-
return false;
|
|
616202
|
-
}
|
|
616203
|
-
};
|
|
616204
616182
|
|
|
616205
616183
|
// packages/workspace-tools/src/executors/size-limit/executor.ts
|
|
616206
616184
|
var import_devkit6 = require("@nx/devkit");
|
|
@@ -617134,7 +617112,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
617134
617112
|
writeDebug2(
|
|
617135
617113
|
`\u2699\uFE0F Executor options:
|
|
617136
617114
|
${Object.keys(options).map(
|
|
617137
|
-
(key) => `${key}: ${!options[key] ||
|
|
617115
|
+
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
617138
617116
|
).join("\n")}
|
|
617139
617117
|
`,
|
|
617140
617118
|
config
|
|
@@ -617165,14 +617143,14 @@ var executor_default4 = withRunExecutor(
|
|
|
617165
617143
|
}
|
|
617166
617144
|
}
|
|
617167
617145
|
);
|
|
617168
|
-
var
|
|
617146
|
+
var _isPrimitive = (value2) => {
|
|
617169
617147
|
try {
|
|
617170
617148
|
return value2 === void 0 || value2 === null || typeof value2 !== "object" && typeof value2 !== "function";
|
|
617171
617149
|
} catch (e2) {
|
|
617172
617150
|
return false;
|
|
617173
617151
|
}
|
|
617174
617152
|
};
|
|
617175
|
-
var
|
|
617153
|
+
var _isFunction3 = (value2) => {
|
|
617176
617154
|
try {
|
|
617177
617155
|
return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
|
|
617178
617156
|
} catch (e2) {
|
|
@@ -617347,17 +617325,9 @@ var executor_default8 = withRunExecutor(
|
|
|
617347
617325
|
|
|
617348
617326
|
// packages/workspace-tools/src/executors/unbuild/executor.ts
|
|
617349
617327
|
async function unbuildExecutorFn(options, context, config) {
|
|
617350
|
-
const {
|
|
617328
|
+
const { writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
617351
617329
|
const { unbuild } = await import("@storm-software/build-tools");
|
|
617352
617330
|
writeInfo2("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
617353
|
-
writeDebug2(
|
|
617354
|
-
`\u2699\uFE0F Executor options:
|
|
617355
|
-
${Object.keys(options).map(
|
|
617356
|
-
(key) => `${key}: ${!options[key] || _isPrimitive3(options[key]) ? options[key] : _isFunction5(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
617357
|
-
).join("\n")}
|
|
617358
|
-
`,
|
|
617359
|
-
config
|
|
617360
|
-
);
|
|
617361
617331
|
if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
617362
617332
|
throw new Error(
|
|
617363
617333
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -617387,20 +617357,6 @@ var executor_default9 = withRunExecutor(
|
|
|
617387
617357
|
}
|
|
617388
617358
|
}
|
|
617389
617359
|
);
|
|
617390
|
-
var _isPrimitive3 = (value2) => {
|
|
617391
|
-
try {
|
|
617392
|
-
return value2 === void 0 || value2 === null || typeof value2 !== "object" && typeof value2 !== "function";
|
|
617393
|
-
} catch (e2) {
|
|
617394
|
-
return false;
|
|
617395
|
-
}
|
|
617396
|
-
};
|
|
617397
|
-
var _isFunction5 = (value2) => {
|
|
617398
|
-
try {
|
|
617399
|
-
return value2 instanceof Function || typeof value2 === "function" || !!(value2?.constructor && value2?.call && value2?.apply);
|
|
617400
|
-
} catch (e2) {
|
|
617401
|
-
return false;
|
|
617402
|
-
}
|
|
617403
|
-
};
|
|
617404
617360
|
|
|
617405
617361
|
// packages/workspace-tools/src/generators/config-schema/generator.ts
|
|
617406
617362
|
var import_devkit7 = require("@nx/devkit");
|