@storm-software/workspace-tools 1.181.0 → 1.181.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 +7 -0
- package/README.md +1 -1
- package/index.js +20 -6
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/rollup/executor.js +20 -6
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/index.js
CHANGED
|
@@ -230084,7 +230084,7 @@ async function withRollupConfig(rawOptions, rollupConfig = {}, config, dependenc
|
|
|
230084
230084
|
config
|
|
230085
230085
|
);
|
|
230086
230086
|
}
|
|
230087
|
-
finalConfig.input = rollupConfig.input || createInput(options);
|
|
230087
|
+
finalConfig.input = rollupConfig.input || await createInput(options);
|
|
230088
230088
|
if (options.format) {
|
|
230089
230089
|
if (Array.isArray(rollupConfig.output)) {
|
|
230090
230090
|
throw new Error(
|
|
@@ -230245,7 +230245,8 @@ function convertRpts2LogLevel(logLevel) {
|
|
|
230245
230245
|
return 0;
|
|
230246
230246
|
}
|
|
230247
230247
|
}
|
|
230248
|
-
function createInput(options) {
|
|
230248
|
+
async function createInput(options) {
|
|
230249
|
+
const { correctPaths: correctPaths2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
230249
230250
|
if (global.NX_GRAPH_CREATION) return {};
|
|
230250
230251
|
const mainEntryFileName = options.outputFileName || options.main;
|
|
230251
230252
|
const input = {};
|
|
@@ -230254,11 +230255,24 @@ function createInput(options) {
|
|
|
230254
230255
|
options.main
|
|
230255
230256
|
);
|
|
230256
230257
|
options.additionalEntryPoints?.forEach((entry) => {
|
|
230257
|
-
const entryPoint = (0, import_node_path14.join)(options.config.workspaceRoot, entry);
|
|
230258
|
-
|
|
230259
|
-
|
|
230258
|
+
const entryPoint = correctPaths2((0, import_node_path14.join)(options.config.workspaceRoot, entry));
|
|
230259
|
+
let entryName = entryPoint.includes(
|
|
230260
|
+
options.sourceRoot.replaceAll("\\", "/")
|
|
230261
|
+
) ? entryPoint.replace(options.sourceRoot.replaceAll("\\", "/"), "") : entryPoint.replace(
|
|
230262
|
+
options.config.workspaceRoot.replaceAll("\\", "/"),
|
|
230263
|
+
""
|
|
230264
|
+
);
|
|
230265
|
+
if (entryName.startsWith("/")) {
|
|
230266
|
+
entryName = entryName.slice(1);
|
|
230267
|
+
}
|
|
230268
|
+
input[entryName] = entryPoint;
|
|
230260
230269
|
});
|
|
230261
|
-
return input
|
|
230270
|
+
return Object.keys(input).reduce((ret, key) => {
|
|
230271
|
+
if (key.endsWith("/index.ts") && input[key]) {
|
|
230272
|
+
ret[key.replace("/index.ts", "")] = input[key];
|
|
230273
|
+
}
|
|
230274
|
+
return ret;
|
|
230275
|
+
}, input);
|
|
230262
230276
|
}
|
|
230263
230277
|
async function createTsCompilerOptions(parsedCommandLine, options, dependencies, config) {
|
|
230264
230278
|
const { correctPaths: correctPaths2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|