@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/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## 1.50.1 (2024-01-26)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Fixed issue with incorrect external package logic ([a8e7a52a](https://github.com/storm-software/storm-ops/commit/a8e7a52a))
7
+
8
+
9
+ ### ❤️ Thank You
10
+
11
+ - Patrick Sullivan
12
+
13
+ ## 1.50.0 (2024-01-26)
14
+
15
+
16
+ ### 🚀 Features
17
+
18
+ - **config-tools:** Added the `externalPackagePatterns` option to Storm config ([78f5c9d4](https://github.com/storm-software/storm-ops/commit/78f5c9d4))
19
+
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - Patrick Sullivan
24
+
1
25
  ## 1.49.31 (2024-01-26)
2
26
 
3
27
 
package/index.js CHANGED
@@ -129881,6 +129881,9 @@ var StormConfigSchema = objectType({
129881
129881
  ci: booleanType().default(true).describe("An indicator specifying if the current environment is a CI environment"),
129882
129882
  workspaceRoot: stringType().trim().optional().describe("The root directory of the workspace"),
129883
129883
  packageDirectory: stringType().trim().optional().describe("The root directory of the package"),
129884
+ externalPackagePatterns: arrayType(stringType()).default([]).describe(
129885
+ "The build will use these package patterns to determine if they should be external to the bundle"
129886
+ ),
129884
129887
  buildDirectory: stringType().trim().default("dist").describe("The build directory for the workspace"),
129885
129888
  runtimeDirectory: stringType().trim().default("node_modules/.storm").describe("The runtime directory of Storm"),
129886
129889
  runtimeVersion: stringType().trim().regex(
@@ -139333,18 +139336,17 @@ ${Object.keys(options).map(
139333
139336
  return ret;
139334
139337
  }, options.external);
139335
139338
  }
139336
- if (options.bundle === false) {
139337
- for (const thirdPartyDependency of getExternalDependencies(
139338
- context.projectName,
139339
- context.projectGraph
139339
+ for (const thirdPartyDependency of getExternalDependencies(
139340
+ context.projectName,
139341
+ context.projectGraph
139342
+ )) {
139343
+ const packageConfig = thirdPartyDependency.node.data;
139344
+ if (packageConfig?.packageName && config?.externalPackagePatterns?.some(
139345
+ (pattern) => pattern.includes(packageConfig.packageName)
139346
+ ) && !externalDependencies?.some(
139347
+ (externalDependency) => externalDependency.name.includes(packageConfig.packageName)
139340
139348
  )) {
139341
- const packageConfig = thirdPartyDependency.node.data;
139342
- if (packageConfig?.packageName) {
139343
- options.external.push(packageConfig.packageName);
139344
- if (!packageJson?.devDependencies?.[packageConfig.packageName]) {
139345
- externalDependencies.push(thirdPartyDependency);
139346
- }
139347
- }
139349
+ externalDependencies.push(thirdPartyDependency);
139348
139350
  }
139349
139351
  }
139350
139352
  writeTrace(
@@ -139413,6 +139415,9 @@ ${externalDependencies.map((dep) => {
139413
139415
  packageJson.dependencies ??= {};
139414
139416
  packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
139415
139417
  }
139418
+ if (!options.external.includes(packageName)) {
139419
+ options.external.push(packageName);
139420
+ }
139416
139421
  }
139417
139422
  }
139418
139423
  for (const packageName of internalDependencies) {