@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 +24 -0
- package/declarations.d.ts +9 -0
- package/index.js +5 -1
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/design-tokens/schema.d.ts +4 -8
- package/src/executors/tsup/executor.js +3 -0
- package/src/executors/tsup/schema.d.ts +1 -0
- package/src/executors/tsup/schema.json +5 -0
- package/src/executors/tsup-browser/executor.js +3 -0
- package/src/executors/tsup-neutral/executor.js +5 -1
- package/src/executors/tsup-node/executor.js +3 -0
package/package.json
CHANGED
|
@@ -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("/")) {
|
|
@@ -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("/")) {
|