@storm-software/workspace-tools 1.49.31 → 1.50.1

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.49.31",
3
+ "version": "1.50.1",
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": [
package/src/base/index.js CHANGED
@@ -47927,6 +47927,9 @@ var StormConfigSchema = objectType({
47927
47927
  ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
47928
47928
  workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
47929
47929
  packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
47930
+ externalPackagePatterns: arrayType(stringType()).default([]).describe(
47931
+ "The build will use these package patterns to determine if they should be external to the bundle"
47932
+ ),
47930
47933
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
47931
47934
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
47932
47935
  runtimeVersion: stringType().trim().regex(
@@ -65645,6 +65645,9 @@ var StormConfigSchema = objectType({
65645
65645
  ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
65646
65646
  workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
65647
65647
  packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
65648
+ externalPackagePatterns: arrayType(stringType()).default([]).describe(
65649
+ "The build will use these package patterns to determine if they should be external to the bundle"
65650
+ ),
65648
65651
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
65649
65652
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
65650
65653
  runtimeVersion: stringType().trim().regex(
@@ -106778,6 +106778,9 @@ var StormConfigSchema = objectType({
106778
106778
  ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
106779
106779
  workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
106780
106780
  packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
106781
+ externalPackagePatterns: arrayType(stringType()).default([]).describe(
106782
+ "The build will use these package patterns to determine if they should be external to the bundle"
106783
+ ),
106781
106784
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
106782
106785
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
106783
106786
  runtimeVersion: stringType().trim().regex(
@@ -115684,18 +115687,17 @@ ${Object.keys(options).map(
115684
115687
  return ret;
115685
115688
  }, options.external);
115686
115689
  }
115687
- if (options.bundle === false) {
115688
- for (const thirdPartyDependency of getExternalDependencies(
115689
- context.projectName,
115690
- context.projectGraph
115690
+ for (const thirdPartyDependency of getExternalDependencies(
115691
+ context.projectName,
115692
+ context.projectGraph
115693
+ )) {
115694
+ const packageConfig = thirdPartyDependency.node.data;
115695
+ if (packageConfig?.packageName && config?.externalPackagePatterns?.some(
115696
+ (pattern) => pattern.includes(packageConfig.packageName)
115697
+ ) && !externalDependencies?.some(
115698
+ (externalDependency) => externalDependency.name.includes(packageConfig.packageName)
115691
115699
  )) {
115692
- const packageConfig = thirdPartyDependency.node.data;
115693
- if (packageConfig?.packageName) {
115694
- options.external.push(packageConfig.packageName);
115695
- if (!packageJson?.devDependencies?.[packageConfig.packageName]) {
115696
- externalDependencies.push(thirdPartyDependency);
115697
- }
115698
- }
115700
+ externalDependencies.push(thirdPartyDependency);
115699
115701
  }
115700
115702
  }
115701
115703
  writeTrace(
@@ -115764,6 +115766,9 @@ ${externalDependencies.map((dep) => {
115764
115766
  packageJson.dependencies ??= {};
115765
115767
  packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
115766
115768
  }
115769
+ if (!options.external.includes(packageName)) {
115770
+ options.external.push(packageName);
115771
+ }
115767
115772
  }
115768
115773
  }
115769
115774
  for (const packageName of internalDependencies) {
@@ -106774,6 +106774,9 @@ var StormConfigSchema = objectType({
106774
106774
  ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
106775
106775
  workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
106776
106776
  packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
106777
+ externalPackagePatterns: arrayType(stringType()).default([]).describe(
106778
+ "The build will use these package patterns to determine if they should be external to the bundle"
106779
+ ),
106777
106780
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
106778
106781
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
106779
106782
  runtimeVersion: stringType().trim().regex(
@@ -115714,18 +115717,17 @@ ${Object.keys(options).map(
115714
115717
  return ret;
115715
115718
  }, options.external);
115716
115719
  }
115717
- if (options.bundle === false) {
115718
- for (const thirdPartyDependency of getExternalDependencies(
115719
- context.projectName,
115720
- context.projectGraph
115720
+ for (const thirdPartyDependency of getExternalDependencies(
115721
+ context.projectName,
115722
+ context.projectGraph
115723
+ )) {
115724
+ const packageConfig = thirdPartyDependency.node.data;
115725
+ if (packageConfig?.packageName && config?.externalPackagePatterns?.some(
115726
+ (pattern) => pattern.includes(packageConfig.packageName)
115727
+ ) && !externalDependencies?.some(
115728
+ (externalDependency) => externalDependency.name.includes(packageConfig.packageName)
115721
115729
  )) {
115722
- const packageConfig = thirdPartyDependency.node.data;
115723
- if (packageConfig?.packageName) {
115724
- options.external.push(packageConfig.packageName);
115725
- if (!packageJson?.devDependencies?.[packageConfig.packageName]) {
115726
- externalDependencies.push(thirdPartyDependency);
115727
- }
115728
- }
115730
+ externalDependencies.push(thirdPartyDependency);
115729
115731
  }
115730
115732
  }
115731
115733
  writeTrace(
@@ -115794,6 +115796,9 @@ ${externalDependencies.map((dep) => {
115794
115796
  packageJson.dependencies ??= {};
115795
115797
  packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
115796
115798
  }
115799
+ if (!options.external.includes(packageName)) {
115800
+ options.external.push(packageName);
115801
+ }
115797
115802
  }
115798
115803
  }
115799
115804
  for (const packageName of internalDependencies) {
@@ -106774,6 +106774,9 @@ var StormConfigSchema = objectType({
106774
106774
  ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
106775
106775
  workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
106776
106776
  packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
106777
+ externalPackagePatterns: arrayType(stringType()).default([]).describe(
106778
+ "The build will use these package patterns to determine if they should be external to the bundle"
106779
+ ),
106777
106780
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
106778
106781
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
106779
106782
  runtimeVersion: stringType().trim().regex(
@@ -115714,18 +115717,17 @@ ${Object.keys(options).map(
115714
115717
  return ret;
115715
115718
  }, options.external);
115716
115719
  }
115717
- if (options.bundle === false) {
115718
- for (const thirdPartyDependency of getExternalDependencies(
115719
- context.projectName,
115720
- context.projectGraph
115720
+ for (const thirdPartyDependency of getExternalDependencies(
115721
+ context.projectName,
115722
+ context.projectGraph
115723
+ )) {
115724
+ const packageConfig = thirdPartyDependency.node.data;
115725
+ if (packageConfig?.packageName && config?.externalPackagePatterns?.some(
115726
+ (pattern) => pattern.includes(packageConfig.packageName)
115727
+ ) && !externalDependencies?.some(
115728
+ (externalDependency) => externalDependency.name.includes(packageConfig.packageName)
115721
115729
  )) {
115722
- const packageConfig = thirdPartyDependency.node.data;
115723
- if (packageConfig?.packageName) {
115724
- options.external.push(packageConfig.packageName);
115725
- if (!packageJson?.devDependencies?.[packageConfig.packageName]) {
115726
- externalDependencies.push(thirdPartyDependency);
115727
- }
115728
- }
115730
+ externalDependencies.push(thirdPartyDependency);
115729
115731
  }
115730
115732
  }
115731
115733
  writeTrace(
@@ -115794,6 +115796,9 @@ ${externalDependencies.map((dep) => {
115794
115796
  packageJson.dependencies ??= {};
115795
115797
  packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
115796
115798
  }
115799
+ if (!options.external.includes(packageName)) {
115800
+ options.external.push(packageName);
115801
+ }
115797
115802
  }
115798
115803
  }
115799
115804
  for (const packageName of internalDependencies) {
@@ -106774,6 +106774,9 @@ var StormConfigSchema = objectType({
106774
106774
  ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
106775
106775
  workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
106776
106776
  packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
106777
+ externalPackagePatterns: arrayType(stringType()).default([]).describe(
106778
+ "The build will use these package patterns to determine if they should be external to the bundle"
106779
+ ),
106777
106780
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
106778
106781
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
106779
106782
  runtimeVersion: stringType().trim().regex(
@@ -115714,18 +115717,17 @@ ${Object.keys(options).map(
115714
115717
  return ret;
115715
115718
  }, options.external);
115716
115719
  }
115717
- if (options.bundle === false) {
115718
- for (const thirdPartyDependency of getExternalDependencies(
115719
- context.projectName,
115720
- context.projectGraph
115720
+ for (const thirdPartyDependency of getExternalDependencies(
115721
+ context.projectName,
115722
+ context.projectGraph
115723
+ )) {
115724
+ const packageConfig = thirdPartyDependency.node.data;
115725
+ if (packageConfig?.packageName && config?.externalPackagePatterns?.some(
115726
+ (pattern) => pattern.includes(packageConfig.packageName)
115727
+ ) && !externalDependencies?.some(
115728
+ (externalDependency) => externalDependency.name.includes(packageConfig.packageName)
115721
115729
  )) {
115722
- const packageConfig = thirdPartyDependency.node.data;
115723
- if (packageConfig?.packageName) {
115724
- options.external.push(packageConfig.packageName);
115725
- if (!packageJson?.devDependencies?.[packageConfig.packageName]) {
115726
- externalDependencies.push(thirdPartyDependency);
115727
- }
115728
- }
115730
+ externalDependencies.push(thirdPartyDependency);
115729
115731
  }
115730
115732
  }
115731
115733
  writeTrace(
@@ -115794,6 +115796,9 @@ ${externalDependencies.map((dep) => {
115794
115796
  packageJson.dependencies ??= {};
115795
115797
  packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
115796
115798
  }
115799
+ if (!options.external.includes(packageName)) {
115800
+ options.external.push(packageName);
115801
+ }
115797
115802
  }
115798
115803
  }
115799
115804
  for (const packageName of internalDependencies) {
@@ -36964,6 +36964,9 @@ var StormConfigSchema = objectType({
36964
36964
  ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
36965
36965
  workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
36966
36966
  packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
36967
+ externalPackagePatterns: arrayType(stringType()).default([]).describe(
36968
+ "The build will use these package patterns to determine if they should be external to the bundle"
36969
+ ),
36967
36970
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
36968
36971
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
36969
36972
  runtimeVersion: stringType().trim().regex(
@@ -47920,6 +47920,9 @@ var StormConfigSchema = objectType({
47920
47920
  ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
47921
47921
  workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
47922
47922
  packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
47923
+ externalPackagePatterns: arrayType(stringType()).default([]).describe(
47924
+ "The build will use these package patterns to determine if they should be external to the bundle"
47925
+ ),
47923
47926
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
47924
47927
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
47925
47928
  runtimeVersion: stringType().trim().regex(
@@ -30480,6 +30480,9 @@ var StormConfigSchema = objectType({
30480
30480
  ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
30481
30481
  workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
30482
30482
  packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
30483
+ externalPackagePatterns: arrayType(stringType()).default([]).describe(
30484
+ "The build will use these package patterns to determine if they should be external to the bundle"
30485
+ ),
30483
30486
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
30484
30487
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
30485
30488
  runtimeVersion: stringType().trim().regex(
@@ -47920,6 +47920,9 @@ var StormConfigSchema = objectType({
47920
47920
  ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
47921
47921
  workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
47922
47922
  packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
47923
+ externalPackagePatterns: arrayType(stringType()).default([]).describe(
47924
+ "The build will use these package patterns to determine if they should be external to the bundle"
47925
+ ),
47923
47926
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
47924
47927
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
47925
47928
  runtimeVersion: stringType().trim().regex(
@@ -47920,6 +47920,9 @@ var StormConfigSchema = objectType({
47920
47920
  ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
47921
47921
  workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
47922
47922
  packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
47923
+ externalPackagePatterns: arrayType(stringType()).default([]).describe(
47924
+ "The build will use these package patterns to determine if they should be external to the bundle"
47925
+ ),
47923
47926
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
47924
47927
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
47925
47928
  runtimeVersion: stringType().trim().regex(
@@ -30481,6 +30481,9 @@ var StormConfigSchema = objectType({
30481
30481
  ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
30482
30482
  workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
30483
30483
  packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
30484
+ externalPackagePatterns: arrayType(stringType()).default([]).describe(
30485
+ "The build will use these package patterns to determine if they should be external to the bundle"
30486
+ ),
30484
30487
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
30485
30488
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
30486
30489
  runtimeVersion: stringType().trim().regex(
@@ -117472,6 +117472,9 @@ var StormConfigSchema = objectType({
117472
117472
  ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
117473
117473
  workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
117474
117474
  packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
117475
+ externalPackagePatterns: arrayType(stringType()).default([]).describe(
117476
+ "The build will use these package patterns to determine if they should be external to the bundle"
117477
+ ),
117475
117478
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
117476
117479
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
117477
117480
  runtimeVersion: stringType().trim().regex(