@storm-software/workspace-tools 1.52.11 → 1.52.12

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,21 @@
1
+ ## 1.52.12 (2024-01-29)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - **workspace-tools:** Added full publish fields to target ([921dc2b6](https://github.com/storm-software/storm-ops/commit/921dc2b6))
7
+
8
+ - **workspace-tools:** Resolved issue with npm publish executor build ([2e3cbaf9](https://github.com/storm-software/storm-ops/commit/2e3cbaf9))
9
+
10
+ - **workspace-tools:** Removed unused dependency on execa ([ef923229](https://github.com/storm-software/storm-ops/commit/ef923229))
11
+
12
+ - **workspace-tools:** Ensure a promise is returned back from the npm publish executor ([c2c2616c](https://github.com/storm-software/storm-ops/commit/c2c2616c))
13
+
14
+
15
+ ### ❤️ Thank You
16
+
17
+ - Patrick Sullivan
18
+
1
19
  ## 1.52.11 (2024-01-29)
2
20
 
3
21
 
package/index.js CHANGED
@@ -133134,7 +133134,7 @@ ${commentStart} ----------------------------------------------------------------
133134
133134
  };
133135
133135
 
133136
133136
  // packages/workspace-tools/src/utils/run-tsup-build.ts
133137
- var import_node_path6 = require("node:path");
133137
+ var import_node_path5 = require("node:path");
133138
133138
  var import_esbuild_decorators = __toESM(require_src2());
133139
133139
  var import_devkit3 = __toESM(require_devkit());
133140
133140
  var import_get_custom_transformers_factory = __toESM(require_get_custom_transformers_factory());
@@ -133184,17 +133184,6 @@ var environmentPlugin = (data) => ({
133184
133184
  // packages/workspace-tools/src/utils/run-tsup-build.ts
133185
133185
  var import_tsup = __toESM(require_dist6());
133186
133186
  var ts = __toESM(require("typescript"));
133187
-
133188
- // packages/workspace-tools/src/utils/file-path-utils.ts
133189
- var import_node_path5 = require("node:path");
133190
- var removeExtension = (filePath) => {
133191
- return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
133192
- };
133193
- function findFileName(filePath) {
133194
- return filePath?.split(filePath?.includes(import_node_path5.sep) ? import_node_path5.sep : filePath?.includes("/") ? "/" : "\\")?.pop() ?? "";
133195
- }
133196
-
133197
- // packages/workspace-tools/src/utils/run-tsup-build.ts
133198
133187
  var applyDefaultOptions = (options) => {
133199
133188
  options.entry ??= "{sourceRoot}/index.ts";
133200
133189
  options.outputPath ??= "dist/{projectRoot}";
@@ -133243,7 +133232,6 @@ var runTsupBuild = async (context, config, options) => {
133243
133232
  const getConfigOptions = {
133244
133233
  ...options,
133245
133234
  main: context.main,
133246
- entry: { [removeExtension(context.main).replace(context.sourceRoot, "")]: context.main },
133247
133235
  define: {
133248
133236
  __STORM_CONFIG: JSON.stringify(stormEnv)
133249
133237
  },
@@ -133326,7 +133314,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
133326
133314
  }
133327
133315
  },
133328
133316
  ts.sys,
133329
- (0, import_node_path6.dirname)(options.tsConfig)
133317
+ (0, import_node_path5.dirname)(options.tsConfig)
133330
133318
  );
133331
133319
  tsConfig.options.pathsBasePath = workspaceRoot;
133332
133320
  if (tsConfig.options.incremental && !tsConfig.options.tsBuildInfoFile) {
@@ -134060,8 +134048,8 @@ var path3 = {
134060
134048
  win32: { sep: "\\" },
134061
134049
  posix: { sep: "/" }
134062
134050
  };
134063
- var sep2 = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
134064
- minimatch.sep = sep2;
134051
+ var sep = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
134052
+ minimatch.sep = sep;
134065
134053
  var GLOBSTAR = Symbol("globstar **");
134066
134054
  minimatch.GLOBSTAR = GLOBSTAR;
134067
134055
  var qmark2 = "[^/]";
@@ -139565,6 +139553,15 @@ glob.glob = glob;
139565
139553
  var import_fileutils = require("nx/src/utils/fileutils");
139566
139554
  var import_prettier = require("prettier");
139567
139555
 
139556
+ // packages/workspace-tools/src/utils/file-path-utils.ts
139557
+ var import_node_path6 = require("node:path");
139558
+ var removeExtension = (filePath) => {
139559
+ return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
139560
+ };
139561
+ function findFileName(filePath) {
139562
+ return filePath?.split(filePath?.includes(import_node_path6.sep) ? import_node_path6.sep : filePath?.includes("/") ? "/" : "\\")?.pop() ?? "";
139563
+ }
139564
+
139568
139565
  // packages/workspace-tools/src/utils/get-project-configurations.ts
139569
139566
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
139570
139567
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
@@ -139801,17 +139798,19 @@ ${externalDependencies.map((dep) => {
139801
139798
  }
139802
139799
  if (options.generatePackageJson !== false) {
139803
139800
  const projectGraph = (0, import_devkit4.readCachedProjectGraph)();
139804
- packageJson.dependencies = void 0;
139805
- for (const externalDependency of externalDependencies) {
139806
- const packageConfig = externalDependency?.node?.data;
139807
- if (packageConfig?.packageName && !!(projectGraph.externalNodes[externalDependency.node.name]?.type === "npm")) {
139808
- const { packageName, version } = packageConfig;
139809
- if (!workspacePackageJson.dependencies?.[packageName] && !workspacePackageJson.devDependencies?.[packageName] && !packageJson?.devDependencies?.[packageName]) {
139810
- packageJson.dependencies ??= {};
139811
- packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
139812
- }
139813
- if (!options.external.includes(packageName)) {
139814
- options.external.push(packageName);
139801
+ if (options.bundle === false) {
139802
+ packageJson.dependencies = void 0;
139803
+ for (const externalDependency of externalDependencies) {
139804
+ const packageConfig = externalDependency?.node?.data;
139805
+ if (packageConfig?.packageName && !!(projectGraph.externalNodes[externalDependency.node.name]?.type === "npm")) {
139806
+ const { packageName, version } = packageConfig;
139807
+ if (!workspacePackageJson.dependencies?.[packageName] && !workspacePackageJson.devDependencies?.[packageName] && !packageJson?.devDependencies?.[packageName]) {
139808
+ packageJson.dependencies ??= {};
139809
+ packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
139810
+ }
139811
+ if (!options.external.includes(packageName)) {
139812
+ options.external.push(packageName);
139813
+ }
139815
139814
  }
139816
139815
  }
139817
139816
  }