@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/package.json
CHANGED
|
@@ -202098,7 +202098,7 @@ async function withRollupConfig(rawOptions, rollupConfig = {}, config, dependenc
|
|
|
202098
202098
|
config
|
|
202099
202099
|
);
|
|
202100
202100
|
}
|
|
202101
|
-
finalConfig.input = rollupConfig.input || createInput(options);
|
|
202101
|
+
finalConfig.input = rollupConfig.input || await createInput(options);
|
|
202102
202102
|
if (options.format) {
|
|
202103
202103
|
if (Array.isArray(rollupConfig.output)) {
|
|
202104
202104
|
throw new Error(
|
|
@@ -202259,7 +202259,8 @@ function convertRpts2LogLevel(logLevel) {
|
|
|
202259
202259
|
return 0;
|
|
202260
202260
|
}
|
|
202261
202261
|
}
|
|
202262
|
-
function createInput(options) {
|
|
202262
|
+
async function createInput(options) {
|
|
202263
|
+
const { correctPaths: correctPaths2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
202263
202264
|
if (global.NX_GRAPH_CREATION) return {};
|
|
202264
202265
|
const mainEntryFileName = options.outputFileName || options.main;
|
|
202265
202266
|
const input = {};
|
|
@@ -202268,11 +202269,24 @@ function createInput(options) {
|
|
|
202268
202269
|
options.main
|
|
202269
202270
|
);
|
|
202270
202271
|
options.additionalEntryPoints?.forEach((entry) => {
|
|
202271
|
-
const entryPoint = (0, import_node_path13.join)(options.config.workspaceRoot, entry);
|
|
202272
|
-
|
|
202273
|
-
|
|
202272
|
+
const entryPoint = correctPaths2((0, import_node_path13.join)(options.config.workspaceRoot, entry));
|
|
202273
|
+
let entryName = entryPoint.includes(
|
|
202274
|
+
options.sourceRoot.replaceAll("\\", "/")
|
|
202275
|
+
) ? entryPoint.replace(options.sourceRoot.replaceAll("\\", "/"), "") : entryPoint.replace(
|
|
202276
|
+
options.config.workspaceRoot.replaceAll("\\", "/"),
|
|
202277
|
+
""
|
|
202278
|
+
);
|
|
202279
|
+
if (entryName.startsWith("/")) {
|
|
202280
|
+
entryName = entryName.slice(1);
|
|
202281
|
+
}
|
|
202282
|
+
input[entryName] = entryPoint;
|
|
202274
202283
|
});
|
|
202275
|
-
return input
|
|
202284
|
+
return Object.keys(input).reduce((ret, key) => {
|
|
202285
|
+
if (key.endsWith("/index.ts") && input[key]) {
|
|
202286
|
+
ret[key.replace("/index.ts", "")] = input[key];
|
|
202287
|
+
}
|
|
202288
|
+
return ret;
|
|
202289
|
+
}, input);
|
|
202276
202290
|
}
|
|
202277
202291
|
async function createTsCompilerOptions(parsedCommandLine, options, dependencies, config) {
|
|
202278
202292
|
const { correctPaths: correctPaths2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|