@storm-software/workspace-tools 1.30.0 → 1.30.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,10 @@
1
+ # [1.30.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.29.0...workspace-tools-v1.30.0) (2023-12-12)
2
+
3
+
4
+ ### Features
5
+
6
+ * **workspace-tools:** Added the `packageAll` option to build nested package files ([cf18588](https://github.com/storm-software/storm-ops/commit/cf18588e55e491f984affecd040c95298f0cf273))
7
+
1
8
  # [1.29.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.28.0...workspace-tools-v1.29.0) (2023-12-12)
2
9
 
3
10
 
package/index.js CHANGED
@@ -117425,7 +117425,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
117425
117425
  let propertyKey = (0, import_devkit.joinPathFragments)(
117426
117426
  filePath.path,
117427
117427
  removeExtension(filePath.name)
117428
- ).replaceAll("/", "\\").replaceAll(workspaceRoot, "").replaceAll("\\", "/").replaceAll(sourceRoot, "").replaceAll(projectRoot, "");
117428
+ ).replaceAll("\\", "/").replaceAll(workspaceRoot.substring(1).replaceAll("\\", "/"), "").replaceAll(sourceRoot.replaceAll("\\", "/"), "").replaceAll(projectRoot.replaceAll("\\", "/"), "");
117429
117429
  if (propertyKey) {
117430
117430
  while (propertyKey.startsWith("/")) {
117431
117431
  propertyKey = propertyKey.substring(1);
@@ -117551,16 +117551,17 @@ ${Object.keys(options).map(
117551
117551
  if (implicitDependencies && implicitDependencies.length > 0) {
117552
117552
  options.external = implicitDependencies.reduce(
117553
117553
  (ret, key) => {
117554
- if (context.projectsConfigurations.projects[key].root) {
117555
- const packageJson = (0, import_devkit2.readJsonFile)(
117556
- (0, import_path3.join)(
117557
- context.root,
117558
- context.projectsConfigurations.projects[key].root,
117559
- "package.json"
117560
- )
117561
- );
117562
- if (packageJson.name && !options.external.includes(packageJson.name)) {
117563
- ret.push(packageJson.name);
117554
+ if (Object.keys(context.projectsConfigurations.projects[key]?.targets).length > 0) {
117555
+ const buildTargetName = Object.keys(
117556
+ context.projectsConfigurations.projects[key].targets
117557
+ ).find((name) => name.toLowerCase() === "build");
117558
+ if (buildTargetName && context.projectsConfigurations.projects[key].targets[buildTargetName]?.options?.project) {
117559
+ const packageJson = (0, import_devkit2.readJsonFile)(
117560
+ context.projectsConfigurations.projects[key].targets[buildTargetName].options.project
117561
+ );
117562
+ if (packageJson?.name && !options.external.includes(packageJson.name)) {
117563
+ ret.push(packageJson.name);
117564
+ }
117564
117565
  }
117565
117566
  }
117566
117567
  return ret;
@@ -117648,20 +117649,20 @@ ${Object.keys(options).map(
117648
117649
  default: "./dist/modern/index.cjs"
117649
117650
  },
117650
117651
  default: {
117651
- types: "./dist/modern/**/*.d.ts",
117652
- default: "./dist/modern/**/*.js"
117652
+ types: "./dist/modern/index.d.ts",
117653
+ default: "./dist/modern/index.js"
117653
117654
  },
117654
117655
  "./*": {
117655
117656
  "import": {
117656
- types: "./dist/modern/**/*.d.ts",
117657
+ types: "./dist/modern/index.d.ts",
117657
117658
  default: "./dist/modern/**/*.js"
117658
117659
  },
117659
117660
  require: {
117660
- types: "./dist/modern/**/*.d.cts",
117661
+ types: "./dist/modern/index.d.cts",
117661
117662
  default: "./dist/modern/**/*.cjs"
117662
117663
  },
117663
117664
  "default": {
117664
- types: "./dist/modern/**/*.d.ts",
117665
+ types: "./dist/modern/index.d.ts",
117665
117666
  default: "./dist/modern/**/*.js"
117666
117667
  }
117667
117668
  },