@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.55.1",
3
+ "version": "1.56.0",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
@@ -1,11 +1,7 @@
1
- import { BuildExecutorSchema } from "@nxkit/style-dictionary";
2
- import { CreateConfigOptions } from "@storm-software/design-tools";
1
+ import type { BuildExecutorSchema } from "@nxkit/style-dictionary";
2
+ import type { CreateConfigOptions } from "@storm-software/design-tools";
3
3
 
4
- export type DesignTokensExecutorSchema = Omit<
5
- BuildExecutorSchema,
6
- "styleDictionaryConfig"
7
- > &
4
+ export type DesignTokensExecutorSchema = Omit<BuildExecutorSchema, "styleDictionaryConfig"> &
8
5
  CreateConfigOptions;
9
6
 
10
- export type NormalizedDesignTokensExecutorSchema = DesignTokensExecutorSchema &
11
- NormalizedBuildExecutorSchema;
7
+ export type NormalizedDesignTokensExecutorSchema = DesignTokensExecutorSchema;
@@ -115903,6 +115903,9 @@ ${externalDependencies.map((dep) => {
115903
115903
  if (options.platform && options.platform !== "node") {
115904
115904
  packageJson.browser ??= `${distPaths[0]}index.global.js`;
115905
115905
  }
115906
+ if (options.useJsxModule) {
115907
+ packageJson["module:jsx"] &&= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.jsx`;
115908
+ }
115906
115909
  if (options.includeSrc === true) {
115907
115910
  let distSrc = sourceRoot.replace(projectRoot, "");
115908
115911
  if (distSrc.startsWith("/")) {
@@ -44,4 +44,5 @@ export type TsupExecutorSchema = Omit<
44
44
  metafile?: boolean;
45
45
  minify?: boolean;
46
46
  skipNativeModulesPlugin?: boolean;
47
+ useJsxModule?: boolean;
47
48
  };
@@ -143,6 +143,11 @@
143
143
  "description": "Should we skip adding the Native Node Modules ESBuild plugin.",
144
144
  "default": false
145
145
  },
146
+ "useJsxModule": {
147
+ "type": "boolean",
148
+ "description": "Should the build process use the `jsx` module for JSX support?",
149
+ "default": false
150
+ },
146
151
  "shims": {
147
152
  "type": "boolean",
148
153
  "description": "Should the build process add shims for node.js modules that are not available in the browser?"
@@ -115933,6 +115933,9 @@ ${externalDependencies.map((dep) => {
115933
115933
  if (options.platform && options.platform !== "node") {
115934
115934
  packageJson.browser ??= `${distPaths[0]}index.global.js`;
115935
115935
  }
115936
+ if (options.useJsxModule) {
115937
+ packageJson["module:jsx"] &&= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.jsx`;
115938
+ }
115936
115939
  if (options.includeSrc === true) {
115937
115940
  let distSrc = sourceRoot.replace(projectRoot, "");
115938
115941
  if (distSrc.startsWith("/")) {
@@ -115933,6 +115933,9 @@ ${externalDependencies.map((dep) => {
115933
115933
  if (options.platform && options.platform !== "node") {
115934
115934
  packageJson.browser ??= `${distPaths[0]}index.global.js`;
115935
115935
  }
115936
+ if (options.useJsxModule) {
115937
+ packageJson["module:jsx"] &&= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.jsx`;
115938
+ }
115936
115939
  if (options.includeSrc === true) {
115937
115940
  let distSrc = sourceRoot.replace(projectRoot, "");
115938
115941
  if (distSrc.startsWith("/")) {
@@ -116130,7 +116133,8 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
116130
116133
  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)"
116131
116134
  ),
116132
116135
  define: {
116133
- ...options.define
116136
+ ...options.define,
116137
+ process: `{ env: ${JSON.stringify(process.env)} }`
116134
116138
  },
116135
116139
  env: {
116136
116140
  ...process.env
@@ -115933,6 +115933,9 @@ ${externalDependencies.map((dep) => {
115933
115933
  if (options.platform && options.platform !== "node") {
115934
115934
  packageJson.browser ??= `${distPaths[0]}index.global.js`;
115935
115935
  }
115936
+ if (options.useJsxModule) {
115937
+ packageJson["module:jsx"] &&= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.jsx`;
115938
+ }
115936
115939
  if (options.includeSrc === true) {
115937
115940
  let distSrc = sourceRoot.replace(projectRoot, "");
115938
115941
  if (distSrc.startsWith("/")) {