@storm-software/workspace-tools 1.55.1 → 1.56.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,27 @@
1
+ ## 1.56.0 (2024-02-07)
2
+
3
+
4
+ ### 🚀 Features
5
+
6
+ - **workspace-tools:** Added the `useJsxModule` option to the build executor ([88955b31](https://github.com/storm-software/storm-ops/commit/88955b31))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
13
+ ## 1.55.2 (2024-02-07)
14
+
15
+
16
+ ### 🩹 Fixes
17
+
18
+ - **workspace-tools:** Added more missing types to package ([29cbe4c3](https://github.com/storm-software/storm-ops/commit/29cbe4c3))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.55.1 (2024-02-07)
2
26
 
3
27
 
package/declarations.d.ts CHANGED
@@ -51,6 +51,15 @@ declare function runTsupBuild(
51
51
  ): Promise<void>;
52
52
  export { runTsupBuild };
53
53
 
54
+ declare function tsupExecutorFn(
55
+ options: TsupExecutorSchema,
56
+ context: ExecutorContext,
57
+ config?: StormConfig
58
+ ): Promise<{
59
+ success: boolean;
60
+ }>;
61
+ export { tsupExecutorFn };
62
+
54
63
  export interface BaseExecutorSchema extends Record<string, any> {
55
64
  main?: string;
56
65
  outputPath?: string;
package/index.js CHANGED
@@ -139904,6 +139904,9 @@ ${externalDependencies.map((dep) => {
139904
139904
  if (options.platform && options.platform !== "node") {
139905
139905
  packageJson.browser ??= `${distPaths[0]}index.global.js`;
139906
139906
  }
139907
+ if (options.useJsxModule) {
139908
+ packageJson["module:jsx"] &&= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.jsx`;
139909
+ }
139907
139910
  if (options.includeSrc === true) {
139908
139911
  let distSrc = sourceRoot.replace(projectRoot, "");
139909
139912
  if (distSrc.startsWith("/")) {
@@ -140101,7 +140104,8 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
140101
140104
  context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : "").join(" ") : "TypeScript (Neutral Platform)"
140102
140105
  ),
140103
140106
  define: {
140104
- ...options.define
140107
+ ...options.define,
140108
+ process: `{ env: ${JSON.stringify(process.env)} }`
140105
140109
  },
140106
140110
  env: {
140107
140111
  ...process.env