@storm-software/workspace-tools 1.49.30 → 1.50.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.49.30",
3
+ "version": "1.50.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": [
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,17 +115687,18 @@ ${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
- }
115700
+ if (!packageJson?.devDependencies?.[packageConfig.packageName] || !packageConfig.hash) {
115701
+ externalDependencies.push(thirdPartyDependency);
115698
115702
  }
115699
115703
  }
115700
115704
  }
@@ -115764,6 +115768,9 @@ ${externalDependencies.map((dep) => {
115764
115768
  packageJson.dependencies ??= {};
115765
115769
  packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
115766
115770
  }
115771
+ if (!options.external.includes(packageName)) {
115772
+ options.external.push(packageName);
115773
+ }
115767
115774
  }
115768
115775
  }
115769
115776
  for (const packageName of internalDependencies) {
@@ -115889,14 +115896,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115889
115896
  }
115890
115897
  await Promise.all(
115891
115898
  entryPoints.map((entryPoint) => {
115892
- let outputPath = removeExtension(entryPoint).replace(sourceRoot, "");
115893
- if (outputPath.startsWith(".")) {
115894
- outputPath = outputPath.substring(1);
115895
- }
115896
- if (outputPath.startsWith("/")) {
115897
- outputPath = outputPath.substring(1);
115898
- }
115899
- writeInfo(config, `*** Build output path: ${outputPath} ***`);
115899
+ writeInfo(config, `*** Build output path: ${options.outputPath} ***`);
115900
115900
  return runTsupBuild(
115901
115901
  {
115902
115902
  main: entryPoint,
@@ -115905,11 +115905,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115905
115905
  sourceRoot
115906
115906
  },
115907
115907
  config,
115908
- {
115909
- ...options,
115910
- outputPath,
115911
- getConfig: options.getConfig
115912
- }
115908
+ options
115913
115909
  );
115914
115910
  })
115915
115911
  );
@@ -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,17 +115717,18 @@ ${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
- }
115730
+ if (!packageJson?.devDependencies?.[packageConfig.packageName] || !packageConfig.hash) {
115731
+ externalDependencies.push(thirdPartyDependency);
115728
115732
  }
115729
115733
  }
115730
115734
  }
@@ -115794,6 +115798,9 @@ ${externalDependencies.map((dep) => {
115794
115798
  packageJson.dependencies ??= {};
115795
115799
  packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
115796
115800
  }
115801
+ if (!options.external.includes(packageName)) {
115802
+ options.external.push(packageName);
115803
+ }
115797
115804
  }
115798
115805
  }
115799
115806
  for (const packageName of internalDependencies) {
@@ -115919,14 +115926,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115919
115926
  }
115920
115927
  await Promise.all(
115921
115928
  entryPoints.map((entryPoint) => {
115922
- let outputPath = removeExtension(entryPoint).replace(sourceRoot, "");
115923
- if (outputPath.startsWith(".")) {
115924
- outputPath = outputPath.substring(1);
115925
- }
115926
- if (outputPath.startsWith("/")) {
115927
- outputPath = outputPath.substring(1);
115928
- }
115929
- writeInfo(config, `*** Build output path: ${outputPath} ***`);
115929
+ writeInfo(config, `*** Build output path: ${options.outputPath} ***`);
115930
115930
  return runTsupBuild(
115931
115931
  {
115932
115932
  main: entryPoint,
@@ -115935,11 +115935,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115935
115935
  sourceRoot
115936
115936
  },
115937
115937
  config,
115938
- {
115939
- ...options,
115940
- outputPath,
115941
- getConfig: options.getConfig
115942
- }
115938
+ options
115943
115939
  );
115944
115940
  })
115945
115941
  );
@@ -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,17 +115717,18 @@ ${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
- }
115730
+ if (!packageJson?.devDependencies?.[packageConfig.packageName] || !packageConfig.hash) {
115731
+ externalDependencies.push(thirdPartyDependency);
115728
115732
  }
115729
115733
  }
115730
115734
  }
@@ -115794,6 +115798,9 @@ ${externalDependencies.map((dep) => {
115794
115798
  packageJson.dependencies ??= {};
115795
115799
  packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
115796
115800
  }
115801
+ if (!options.external.includes(packageName)) {
115802
+ options.external.push(packageName);
115803
+ }
115797
115804
  }
115798
115805
  }
115799
115806
  for (const packageName of internalDependencies) {
@@ -115919,14 +115926,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115919
115926
  }
115920
115927
  await Promise.all(
115921
115928
  entryPoints.map((entryPoint) => {
115922
- let outputPath = removeExtension(entryPoint).replace(sourceRoot, "");
115923
- if (outputPath.startsWith(".")) {
115924
- outputPath = outputPath.substring(1);
115925
- }
115926
- if (outputPath.startsWith("/")) {
115927
- outputPath = outputPath.substring(1);
115928
- }
115929
- writeInfo(config, `*** Build output path: ${outputPath} ***`);
115929
+ writeInfo(config, `*** Build output path: ${options.outputPath} ***`);
115930
115930
  return runTsupBuild(
115931
115931
  {
115932
115932
  main: entryPoint,
@@ -115935,11 +115935,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115935
115935
  sourceRoot
115936
115936
  },
115937
115937
  config,
115938
- {
115939
- ...options,
115940
- outputPath,
115941
- getConfig: options.getConfig
115942
- }
115938
+ options
115943
115939
  );
115944
115940
  })
115945
115941
  );
@@ -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,17 +115717,18 @@ ${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
- }
115730
+ if (!packageJson?.devDependencies?.[packageConfig.packageName] || !packageConfig.hash) {
115731
+ externalDependencies.push(thirdPartyDependency);
115728
115732
  }
115729
115733
  }
115730
115734
  }
@@ -115794,6 +115798,9 @@ ${externalDependencies.map((dep) => {
115794
115798
  packageJson.dependencies ??= {};
115795
115799
  packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
115796
115800
  }
115801
+ if (!options.external.includes(packageName)) {
115802
+ options.external.push(packageName);
115803
+ }
115797
115804
  }
115798
115805
  }
115799
115806
  for (const packageName of internalDependencies) {
@@ -115919,14 +115926,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115919
115926
  }
115920
115927
  await Promise.all(
115921
115928
  entryPoints.map((entryPoint) => {
115922
- let outputPath = removeExtension(entryPoint).replace(sourceRoot, "");
115923
- if (outputPath.startsWith(".")) {
115924
- outputPath = outputPath.substring(1);
115925
- }
115926
- if (outputPath.startsWith("/")) {
115927
- outputPath = outputPath.substring(1);
115928
- }
115929
- writeInfo(config, `*** Build output path: ${outputPath} ***`);
115929
+ writeInfo(config, `*** Build output path: ${options.outputPath} ***`);
115930
115930
  return runTsupBuild(
115931
115931
  {
115932
115932
  main: entryPoint,
@@ -115935,11 +115935,7 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115935
115935
  sourceRoot
115936
115936
  },
115937
115937
  config,
115938
- {
115939
- ...options,
115940
- outputPath,
115941
- getConfig: options.getConfig
115942
- }
115938
+ options
115943
115939
  );
115944
115940
  })
115945
115941
  );
@@ -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(