@storm-software/workspace-tools 1.175.4 → 1.175.6
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 +14 -0
- package/index.js +25 -18
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/rollup/executor.d.ts +0 -3
- package/src/executors/rollup/executor.js +25 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 1.175.6 (2024-09-08)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **workspace-tools:** Resolved issue resolving plugins
|
|
6
|
+
([00448e95](https://github.com/storm-software/storm-ops/commit/00448e95))
|
|
7
|
+
|
|
8
|
+
## 1.175.5 (2024-09-08)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
- **workspace-tools:** Add custom rollup code
|
|
13
|
+
([c21fef43](https://github.com/storm-software/storm-ops/commit/c21fef43))
|
|
14
|
+
|
|
1
15
|
## 1.175.4 (2024-09-08)
|
|
2
16
|
|
|
3
17
|
### Bug Fixes
|
package/index.js
CHANGED
|
@@ -331418,7 +331418,6 @@ __export(workspace_tools_exports, {
|
|
|
331418
331418
|
configSchemaGeneratorFn: () => configSchemaGeneratorFn,
|
|
331419
331419
|
createCliOptions: () => createCliOptions,
|
|
331420
331420
|
createProjectTsConfigJson: () => createProjectTsConfigJson,
|
|
331421
|
-
createRollupOptions: () => createRollupOptions,
|
|
331422
331421
|
eslintVersion: () => eslintVersion,
|
|
331423
331422
|
formatProjectTag: () => formatProjectTag,
|
|
331424
331423
|
getLockFileDependencies: () => getLockFileDependencies,
|
|
@@ -341715,7 +341714,6 @@ var import_native4 = __toESM(require_native(), 1);
|
|
|
341715
341714
|
var import_async_iterable = require("@nx/devkit/src/utils/async-iterable");
|
|
341716
341715
|
var import_config_utils = require("@nx/devkit/src/utils/config-utils");
|
|
341717
341716
|
var import_buildable_libs_utils = require("@nx/js/src/utils/buildable-libs-utils");
|
|
341718
|
-
var import_normalize = require("@nx/rollup/src/executors/rollup/lib/normalize");
|
|
341719
341717
|
var import_generate_package_json = require("@nx/rollup/src/plugins/package-json/generate-package-json");
|
|
341720
341718
|
var import_with_nx = require("@nx/rollup/src/plugins/with-nx/with-nx");
|
|
341721
341719
|
async function* rollupExecutorFn(options, context, config) {
|
|
@@ -341779,25 +341777,21 @@ async function* rollupExecutorFn(options, context, config) {
|
|
|
341779
341777
|
return formatted.startsWith("/") ? formatted.slice(1) : formatted;
|
|
341780
341778
|
});
|
|
341781
341779
|
}
|
|
341782
|
-
const executorOptions = {
|
|
341783
|
-
...options,
|
|
341784
|
-
main: options.entry
|
|
341785
|
-
};
|
|
341786
|
-
executorOptions.rollupConfig = options.rollupConfig ?? {};
|
|
341787
341780
|
writeDebug2(
|
|
341788
341781
|
`\u{1F4E6} Running Storm Rollup build process on the ${context?.projectName} project`,
|
|
341789
341782
|
config
|
|
341790
341783
|
);
|
|
341791
|
-
writeTrace2(
|
|
341792
|
-
|
|
341793
|
-
${formatLogMessage2(executorOptions)}`,
|
|
341794
|
-
config
|
|
341795
|
-
);
|
|
341784
|
+
writeTrace2(`Rollup schema options \u2699\uFE0F
|
|
341785
|
+
${formatLogMessage2(options)}`, config);
|
|
341796
341786
|
process.env.NODE_ENV ??= "production";
|
|
341797
|
-
const normalizedOptions =
|
|
341798
|
-
|
|
341799
|
-
|
|
341800
|
-
|
|
341787
|
+
const normalizedOptions = {
|
|
341788
|
+
...options,
|
|
341789
|
+
main: options.entry,
|
|
341790
|
+
rollupConfig: [],
|
|
341791
|
+
projectRoot: context.projectGraph?.nodes[context.projectName]?.data.root,
|
|
341792
|
+
skipTypeCheck: options.skipTypeCheck || false,
|
|
341793
|
+
logLevel: convertRollupLogLevel(config?.logLevel ?? "info")
|
|
341794
|
+
};
|
|
341801
341795
|
const rollupOptions = await createRollupOptions(normalizedOptions, context);
|
|
341802
341796
|
const outfile = resolveOutfile(context, normalizedOptions);
|
|
341803
341797
|
if (normalizedOptions.watch) {
|
|
@@ -341827,7 +341821,9 @@ ${formatLogMessage2(executorOptions)}`,
|
|
|
341827
341821
|
const start = process.hrtime.bigint();
|
|
341828
341822
|
const allRollupOptions = Array.isArray(rollupOptions) ? rollupOptions : [rollupOptions];
|
|
341829
341823
|
for (const opts of allRollupOptions) {
|
|
341830
|
-
const bundle = await rollup(
|
|
341824
|
+
const bundle = await rollup({
|
|
341825
|
+
...opts
|
|
341826
|
+
});
|
|
341831
341827
|
const output3 = Array.isArray(opts.output) ? opts.output : [opts.output];
|
|
341832
341828
|
for (const o of output3) {
|
|
341833
341829
|
if (o) {
|
|
@@ -341891,6 +341887,18 @@ async function createRollupOptions(options, context) {
|
|
|
341891
341887
|
}
|
|
341892
341888
|
return finalConfig;
|
|
341893
341889
|
}
|
|
341890
|
+
function convertRollupLogLevel(logLevel) {
|
|
341891
|
+
switch (logLevel) {
|
|
341892
|
+
case "info":
|
|
341893
|
+
return "info";
|
|
341894
|
+
case "trace":
|
|
341895
|
+
case "all":
|
|
341896
|
+
case "debug":
|
|
341897
|
+
return "debug";
|
|
341898
|
+
default:
|
|
341899
|
+
return "warn";
|
|
341900
|
+
}
|
|
341901
|
+
}
|
|
341894
341902
|
function resolveOutfile(context, options) {
|
|
341895
341903
|
if (!options.format?.includes("cjs")) return void 0;
|
|
341896
341904
|
const { name } = (0, import_path3.parse)(options.outputFileName ?? options.main);
|
|
@@ -345773,7 +345781,6 @@ var getTypiaTransform = (program3, diagnostics) => (0, import_transform.default)
|
|
|
345773
345781
|
configSchemaGeneratorFn,
|
|
345774
345782
|
createCliOptions,
|
|
345775
345783
|
createProjectTsConfigJson,
|
|
345776
|
-
createRollupOptions,
|
|
345777
345784
|
eslintVersion,
|
|
345778
345785
|
formatProjectTag,
|
|
345779
345786
|
getLockFileDependencies,
|