@storm-software/workspace-tools 1.30.6 → 1.30.8

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.30.6",
3
+ "version": "1.30.8",
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": [
@@ -116943,7 +116943,6 @@ var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrie
116943
116943
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
116944
116944
  getWorkspaceRoot2()
116945
116945
  );
116946
- var getProjectConfiguration = (projectName) => getProjectConfigurations()?.[projectName];
116947
116946
 
116948
116947
  // packages/workspace-tools/src/utils/get-project-deps.ts
116949
116948
  function getExternalDependencies(projectName, graph) {
@@ -117209,10 +117208,14 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
117209
117208
  const entry = globSync(entryPoints, {
117210
117209
  withFileTypes: true
117211
117210
  }).reduce((ret, filePath) => {
117211
+ let formattedPath = workspaceRoot.replaceAll("\\", "/");
117212
+ if (formattedPath.toUpperCase().startsWith("C:")) {
117213
+ formattedPath = formattedPath.substring(2);
117214
+ }
117212
117215
  let propertyKey = (0, import_devkit.joinPathFragments)(
117213
117216
  filePath.path,
117214
117217
  removeExtension(filePath.name)
117215
- ).replaceAll("\\", "/").replaceAll(workspaceRoot.substring(2).replaceAll("\\", "/"), "").replaceAll(sourceRoot, "").replaceAll(projectRoot, "");
117218
+ ).replaceAll("\\", "/").replaceAll(formattedPath, "").replaceAll(sourceRoot, "").replaceAll(projectRoot, "");
117216
117219
  if (propertyKey) {
117217
117220
  while (propertyKey.startsWith("/")) {
117218
117221
  propertyKey = propertyKey.substring(1);
@@ -117347,14 +117350,14 @@ ${Object.keys(options).map(
117347
117350
  }, []);
117348
117351
  const implicitDependencies = context.projectsConfigurations.projects[context.projectName].implicitDependencies;
117349
117352
  const internalDependencies = [];
117350
- const projectConfigs = getProjectConfigurations();
117353
+ const projectConfigs = await Promise.resolve(getProjectConfigurations());
117351
117354
  console.log("Project Configs:");
117352
117355
  console.log(projectConfigs);
117353
117356
  if (implicitDependencies && implicitDependencies.length > 0) {
117354
117357
  options.external = implicitDependencies.reduce(
117355
117358
  (ret, key) => {
117356
117359
  console.log(`\u26A1 Adding implicit dependency: ${key}`);
117357
- const projectConfig = getProjectConfiguration(key);
117360
+ const projectConfig = projectConfigs[key];
117358
117361
  if (projectConfig?.targets?.build) {
117359
117362
  const packageJson = (0, import_devkit2.readJsonFile)(
117360
117363
  projectConfig.targets?.build.options.project
@@ -88627,10 +88627,14 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
88627
88627
  const entry = globSync(entryPoints, {
88628
88628
  withFileTypes: true
88629
88629
  }).reduce((ret, filePath) => {
88630
+ let formattedPath = workspaceRoot.replaceAll("\\", "/");
88631
+ if (formattedPath.toUpperCase().startsWith("C:")) {
88632
+ formattedPath = formattedPath.substring(2);
88633
+ }
88630
88634
  let propertyKey = (0, import_devkit.joinPathFragments)(
88631
88635
  filePath.path,
88632
88636
  removeExtension(filePath.name)
88633
- ).replaceAll("\\", "/").replaceAll(workspaceRoot.substring(2).replaceAll("\\", "/"), "").replaceAll(sourceRoot, "").replaceAll(projectRoot, "");
88637
+ ).replaceAll("\\", "/").replaceAll(formattedPath, "").replaceAll(sourceRoot, "").replaceAll(projectRoot, "");
88634
88638
  if (propertyKey) {
88635
88639
  while (propertyKey.startsWith("/")) {
88636
88640
  propertyKey = propertyKey.substring(1);
@@ -116974,7 +116974,6 @@ var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrie
116974
116974
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
116975
116975
  getWorkspaceRoot2()
116976
116976
  );
116977
- var getProjectConfiguration = (projectName) => getProjectConfigurations()?.[projectName];
116978
116977
 
116979
116978
  // packages/workspace-tools/src/utils/get-project-deps.ts
116980
116979
  function getExternalDependencies(projectName, graph) {
@@ -117240,10 +117239,14 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
117240
117239
  const entry = globSync(entryPoints, {
117241
117240
  withFileTypes: true
117242
117241
  }).reduce((ret, filePath) => {
117242
+ let formattedPath = workspaceRoot.replaceAll("\\", "/");
117243
+ if (formattedPath.toUpperCase().startsWith("C:")) {
117244
+ formattedPath = formattedPath.substring(2);
117245
+ }
117243
117246
  let propertyKey = (0, import_devkit.joinPathFragments)(
117244
117247
  filePath.path,
117245
117248
  removeExtension(filePath.name)
117246
- ).replaceAll("\\", "/").replaceAll(workspaceRoot.substring(2).replaceAll("\\", "/"), "").replaceAll(sourceRoot, "").replaceAll(projectRoot, "");
117249
+ ).replaceAll("\\", "/").replaceAll(formattedPath, "").replaceAll(sourceRoot, "").replaceAll(projectRoot, "");
117247
117250
  if (propertyKey) {
117248
117251
  while (propertyKey.startsWith("/")) {
117249
117252
  propertyKey = propertyKey.substring(1);
@@ -117378,14 +117381,14 @@ ${Object.keys(options).map(
117378
117381
  }, []);
117379
117382
  const implicitDependencies = context.projectsConfigurations.projects[context.projectName].implicitDependencies;
117380
117383
  const internalDependencies = [];
117381
- const projectConfigs = getProjectConfigurations();
117384
+ const projectConfigs = await Promise.resolve(getProjectConfigurations());
117382
117385
  console.log("Project Configs:");
117383
117386
  console.log(projectConfigs);
117384
117387
  if (implicitDependencies && implicitDependencies.length > 0) {
117385
117388
  options.external = implicitDependencies.reduce(
117386
117389
  (ret, key) => {
117387
117390
  console.log(`\u26A1 Adding implicit dependency: ${key}`);
117388
- const projectConfig = getProjectConfiguration(key);
117391
+ const projectConfig = projectConfigs[key];
117389
117392
  if (projectConfig?.targets?.build) {
117390
117393
  const packageJson = (0, import_devkit2.readJsonFile)(
117391
117394
  projectConfig.targets?.build.options.project
@@ -116974,7 +116974,6 @@ var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrie
116974
116974
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
116975
116975
  getWorkspaceRoot2()
116976
116976
  );
116977
- var getProjectConfiguration = (projectName) => getProjectConfigurations()?.[projectName];
116978
116977
 
116979
116978
  // packages/workspace-tools/src/utils/get-project-deps.ts
116980
116979
  function getExternalDependencies(projectName, graph) {
@@ -117240,10 +117239,14 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
117240
117239
  const entry = globSync(entryPoints, {
117241
117240
  withFileTypes: true
117242
117241
  }).reduce((ret, filePath) => {
117242
+ let formattedPath = workspaceRoot.replaceAll("\\", "/");
117243
+ if (formattedPath.toUpperCase().startsWith("C:")) {
117244
+ formattedPath = formattedPath.substring(2);
117245
+ }
117243
117246
  let propertyKey = (0, import_devkit.joinPathFragments)(
117244
117247
  filePath.path,
117245
117248
  removeExtension(filePath.name)
117246
- ).replaceAll("\\", "/").replaceAll(workspaceRoot.substring(2).replaceAll("\\", "/"), "").replaceAll(sourceRoot, "").replaceAll(projectRoot, "");
117249
+ ).replaceAll("\\", "/").replaceAll(formattedPath, "").replaceAll(sourceRoot, "").replaceAll(projectRoot, "");
117247
117250
  if (propertyKey) {
117248
117251
  while (propertyKey.startsWith("/")) {
117249
117252
  propertyKey = propertyKey.substring(1);
@@ -117378,14 +117381,14 @@ ${Object.keys(options).map(
117378
117381
  }, []);
117379
117382
  const implicitDependencies = context.projectsConfigurations.projects[context.projectName].implicitDependencies;
117380
117383
  const internalDependencies = [];
117381
- const projectConfigs = getProjectConfigurations();
117384
+ const projectConfigs = await Promise.resolve(getProjectConfigurations());
117382
117385
  console.log("Project Configs:");
117383
117386
  console.log(projectConfigs);
117384
117387
  if (implicitDependencies && implicitDependencies.length > 0) {
117385
117388
  options.external = implicitDependencies.reduce(
117386
117389
  (ret, key) => {
117387
117390
  console.log(`\u26A1 Adding implicit dependency: ${key}`);
117388
- const projectConfig = getProjectConfiguration(key);
117391
+ const projectConfig = projectConfigs[key];
117389
117392
  if (projectConfig?.targets?.build) {
117390
117393
  const packageJson = (0, import_devkit2.readJsonFile)(
117391
117394
  projectConfig.targets?.build.options.project
@@ -116974,7 +116974,6 @@ var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrie
116974
116974
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(
116975
116975
  getWorkspaceRoot2()
116976
116976
  );
116977
- var getProjectConfiguration = (projectName) => getProjectConfigurations()?.[projectName];
116978
116977
 
116979
116978
  // packages/workspace-tools/src/utils/get-project-deps.ts
116980
116979
  function getExternalDependencies(projectName, graph) {
@@ -117240,10 +117239,14 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
117240
117239
  const entry = globSync(entryPoints, {
117241
117240
  withFileTypes: true
117242
117241
  }).reduce((ret, filePath) => {
117242
+ let formattedPath = workspaceRoot.replaceAll("\\", "/");
117243
+ if (formattedPath.toUpperCase().startsWith("C:")) {
117244
+ formattedPath = formattedPath.substring(2);
117245
+ }
117243
117246
  let propertyKey = (0, import_devkit.joinPathFragments)(
117244
117247
  filePath.path,
117245
117248
  removeExtension(filePath.name)
117246
- ).replaceAll("\\", "/").replaceAll(workspaceRoot.substring(2).replaceAll("\\", "/"), "").replaceAll(sourceRoot, "").replaceAll(projectRoot, "");
117249
+ ).replaceAll("\\", "/").replaceAll(formattedPath, "").replaceAll(sourceRoot, "").replaceAll(projectRoot, "");
117247
117250
  if (propertyKey) {
117248
117251
  while (propertyKey.startsWith("/")) {
117249
117252
  propertyKey = propertyKey.substring(1);
@@ -117378,14 +117381,14 @@ ${Object.keys(options).map(
117378
117381
  }, []);
117379
117382
  const implicitDependencies = context.projectsConfigurations.projects[context.projectName].implicitDependencies;
117380
117383
  const internalDependencies = [];
117381
- const projectConfigs = getProjectConfigurations();
117384
+ const projectConfigs = await Promise.resolve(getProjectConfigurations());
117382
117385
  console.log("Project Configs:");
117383
117386
  console.log(projectConfigs);
117384
117387
  if (implicitDependencies && implicitDependencies.length > 0) {
117385
117388
  options.external = implicitDependencies.reduce(
117386
117389
  (ret, key) => {
117387
117390
  console.log(`\u26A1 Adding implicit dependency: ${key}`);
117388
- const projectConfig = getProjectConfiguration(key);
117391
+ const projectConfig = projectConfigs[key];
117389
117392
  if (projectConfig?.targets?.build) {
117390
117393
  const packageJson = (0, import_devkit2.readJsonFile)(
117391
117394
  projectConfig.targets?.build.options.project