@storm-software/workspace-tools 1.181.0 → 1.182.0
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/README.md +1 -1
- package/index.js +18 -6
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/rollup/executor.js +18 -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,22 @@ 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
|
-
const entryName = entryPoint.
|
|
202273
|
-
|
|
202272
|
+
const entryPoint = correctPaths2((0, import_node_path13.join)(options.config.workspaceRoot, entry));
|
|
202273
|
+
const entryName = `.${entryPoint.replace(
|
|
202274
|
+
(0, import_node_path13.join)(options.config.workspaceRoot, options.sourceRoot).replaceAll(
|
|
202275
|
+
"\\",
|
|
202276
|
+
"/"
|
|
202277
|
+
),
|
|
202278
|
+
""
|
|
202279
|
+
)}`;
|
|
202280
|
+
input[entryName] = entryPoint;
|
|
202274
202281
|
});
|
|
202275
|
-
return input
|
|
202282
|
+
return Object.keys(input).reduce((ret, key) => {
|
|
202283
|
+
if (key.endsWith("/index.ts") && input[key]) {
|
|
202284
|
+
ret[key.replace("/index.ts", "")] = input[key];
|
|
202285
|
+
}
|
|
202286
|
+
return ret;
|
|
202287
|
+
}, input);
|
|
202276
202288
|
}
|
|
202277
202289
|
async function createTsCompilerOptions(parsedCommandLine, options, dependencies, config) {
|
|
202278
202290
|
const { correctPaths: correctPaths2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|