@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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## 1.182.0 (2024-09-11)
2
+
3
+ ### Features
4
+
5
+ - **workspace-tools:** Improved the input value formatting
6
+ ([13d3fb1c](https://github.com/storm-software/storm-ops/commit/13d3fb1c))
7
+
8
+ ## 1.181.1 (2024-09-11)
9
+
10
+ ### Bug Fixes
11
+
12
+ - **workspace-tools:** Resolve issue with names in input files
13
+ ([2f181c56](https://github.com/storm-software/storm-ops/commit/2f181c56))
14
+
1
15
  ## 1.181.0 (2024-09-11)
2
16
 
3
17
  ### Features
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
- [![Version](https://img.shields.io/badge/version-1.180.10-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-1.181.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
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,22 @@ 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
- const entryName = entryPoint.includes(options.sourceRoot) ? entryPoint.replace(options.sourceRoot, "") : entryPoint.replace(options.config.workspaceRoot, "");
230259
- input[entryName.replaceAll("\\", "/").startsWith("/") ? entryName.slice(1) : entryName] = entryPoint;
230258
+ const entryPoint = correctPaths2((0, import_node_path14.join)(options.config.workspaceRoot, entry));
230259
+ const entryName = `.${entryPoint.replace(
230260
+ (0, import_node_path14.join)(options.config.workspaceRoot, options.sourceRoot).replaceAll(
230261
+ "\\",
230262
+ "/"
230263
+ ),
230264
+ ""
230265
+ )}`;
230266
+ input[entryName] = entryPoint;
230260
230267
  });
230261
- return input;
230268
+ return Object.keys(input).reduce((ret, key) => {
230269
+ if (key.endsWith("/index.ts") && input[key]) {
230270
+ ret[key.replace("/index.ts", "")] = input[key];
230271
+ }
230272
+ return ret;
230273
+ }, input);
230262
230274
  }
230263
230275
  async function createTsCompilerOptions(parsedCommandLine, options, dependencies, config) {
230264
230276
  const { correctPaths: correctPaths2 } = await Promise.resolve().then(() => (init_src2(), src_exports));