@storm-software/workspace-tools 1.182.3 → 1.182.5

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,10 @@
1
+ ## 1.182.5 (2024-09-13)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **workspace-tools:** Resolve issue with setting compiler options
6
+ ([b444511b](https://github.com/storm-software/storm-ops/commit/b444511b))
7
+
1
8
  ## 1.182.3 (2024-09-11)
2
9
 
3
10
  ### Bug Fixes
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.182.2-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.182.4-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 -->
@@ -95,23 +95,26 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
95
95
  - [Rollup Builder](#rollup-builder)
96
96
  - [Example](#example-16)
97
97
  - [Options](#options-14)
98
+ - [RSLib Builder](#rslib-builder)
99
+ - [Example](#example-17)
100
+ - [Options](#options-15)
98
101
  - [Generators](#generators)
99
102
  - [Init Storm Workspace Plugin](#init-storm-workspace-plugin)
100
- - [Options](#options-15)
103
+ - [Options](#options-16)
101
104
  - [Workspace Preset](#workspace-preset)
102
105
  - [Examples](#examples)
103
- - [Options](#options-16)
104
- - [Add Node Library](#add-node-library)
105
106
  - [Options](#options-17)
106
- - [Configuration Schema Creator](#configuration-schema-creator)
107
+ - [Add Node Library](#add-node-library)
107
108
  - [Options](#options-18)
108
- - [Add Neutral Library](#add-neutral-library)
109
+ - [Configuration Schema Creator](#configuration-schema-creator)
109
110
  - [Options](#options-19)
110
- - [Add browser Library](#add-browser-library)
111
+ - [Add Neutral Library](#add-neutral-library)
111
112
  - [Options](#options-20)
113
+ - [Add browser Library](#add-browser-library)
114
+ - [Options](#options-21)
112
115
  - [design-tokens](#design-tokens)
113
116
  - [Storm Release Version Generator](#storm-release-version-generator)
114
- - [Options](#options-21)
117
+ - [Options](#options-22)
115
118
  - [Building](#building)
116
119
  - [Running unit tests](#running-unit-tests)
117
120
  - [Storm Workspaces](#storm-workspaces)
@@ -754,6 +757,46 @@ The following executor options are available:
754
757
 
755
758
 
756
759
 
760
+ ## RSLib Builder
761
+
762
+ An executor used by Storm Software to run the RSLib build process
763
+
764
+ ### Example
765
+
766
+ This executor can be used by executing the following in a command line utility:
767
+
768
+ ```cmd
769
+ nx run my-project:rslib
770
+ ```
771
+
772
+ **Please note:** _The rslib executor should be included in the desired projects's `project.json` file.All required options must be included in the `options` property of the json._
773
+
774
+ ### Options
775
+
776
+ The following executor options are available:
777
+
778
+ | Option | Type | Description | Default |
779
+ | --------- | ------ | ------------- | --------- |
780
+ | entry | `string` | The path to the entry file, relative to project. | "{sourceRoot}/index.ts" |
781
+ | outputPath | `string` | The output path of the generated files. | "dist/{projectRoot}" |
782
+ | **tsConfig \*** | `string` | The path to the \`tsconfig.json\` file. | "{projectRoot}/tsconfig.json" |
783
+ | additionalEntryPoints | `string[]` | List of additional entry points. | `[]` |
784
+ | assets | `array` | List of static assets. | `[]` |
785
+ | clean | `boolean` | Remove previous output before build. | `true` |
786
+ | includeSrc | `boolean` | Should the source files be added to the distribution folder in an \`src\` directory. | |
787
+ | generatePackageJson | `boolean` | Should a package.json file be generated in the output folder or should the existing one be copied in. | `true` |
788
+ | debug | `boolean` | Should output be unminified with source mappings. | |
789
+ | **platform \*** | "browser" \| "neutral" \| "node" \| "worker" | Platform target for outputs. | "neutral" |
790
+ | **banner \*** | `string` | A short heading added to the top of each typescript file added in the output folder's \`src\` directory. | "This code was developed by Storm Software (<https://stormsoftware.com>) and is licensed under the Apache License 2.0." |
791
+ | minify | `boolean` | Should the build process minify the output files? | |
792
+ | verbose | `boolean` | Should write extra log outputs with details from the executor. | |
793
+ | plugins | `object[]` | List of Rollup plugins to use during processing | `[]` |
794
+
795
+
796
+ **Please note:** _Option names followed by \* above are required, and must be provided to run the executor._
797
+
798
+
799
+
757
800
  <!-- markdownlint-restore -->
758
801
  <!-- prettier-ignore-end -->
759
802
 
package/index.js CHANGED
@@ -230028,24 +230028,14 @@ async function withRollupConfig(rawOptions, rollupConfig = {}, config, dependenc
230028
230028
  if (!projectGraph) {
230029
230029
  throw new Error(`Cannot find project graph.`);
230030
230030
  }
230031
- if (!process.env.NX_TASK_TARGET_TARGET) {
230032
- throw new Error(
230033
- `NX_TASK_TARGET_TARGET is not set. Please set it in your environment.`
230034
- );
230035
- }
230036
- if (!process.env.NX_TASK_TARGET_CONFIGURATION) {
230037
- throw new Error(
230038
- `NX_TASK_TARGET_CONFIGURATION is not set. Please set it in your environment.`
230039
- );
230040
- }
230041
230031
  if (!dependencies && !global.NX_GRAPH_CREATION) {
230042
230032
  const result = (0, import_buildable_libs_utils.calculateProjectBuildableDependencies)(
230043
230033
  void 0,
230044
230034
  projectGraph,
230045
230035
  config.workspaceRoot,
230046
230036
  projectNode.name,
230047
- process.env.NX_TASK_TARGET_TARGET,
230048
- process.env.NX_TASK_TARGET_CONFIGURATION,
230037
+ process.env.NX_TASK_TARGET_TARGET || "build",
230038
+ process.env.NX_TASK_TARGET_CONFIGURATION || "production",
230049
230039
  true
230050
230040
  );
230051
230041
  dependencies = result.dependencies;
@@ -230466,16 +230456,13 @@ async function createRollupOptions(options, context, config) {
230466
230456
  if (!context.targetName) {
230467
230457
  throw new Error("Nx target name was not found");
230468
230458
  }
230469
- if (!context.configurationName) {
230470
- throw new Error("Nx configuration name was not found");
230471
- }
230472
230459
  const { dependencies } = (0, import_buildable_libs_utils2.calculateProjectBuildableDependencies)(
230473
230460
  context.taskGraph,
230474
230461
  context.projectGraph,
230475
230462
  context.root,
230476
230463
  context.projectName,
230477
230464
  context.targetName,
230478
- context.configurationName,
230465
+ context.configurationName ?? "development",
230479
230466
  true
230480
230467
  );
230481
230468
  const rollupConfig = await withRollupConfig(