@storm-software/workspace-tools 1.52.12 → 1.52.15

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.52.12",
3
+ "version": "1.52.15",
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": [
@@ -115486,6 +115486,9 @@ var runTsupBuild = async (context, config, options) => {
115486
115486
  const getConfigOptions = {
115487
115487
  ...options,
115488
115488
  main: context.main,
115489
+ entry: {
115490
+ [removeExtension(context.main).replace(config.workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
115491
+ },
115489
115492
  define: {
115490
115493
  __STORM_CONFIG: JSON.stringify(stormEnv)
115491
115494
  },
@@ -115494,6 +115497,7 @@ var runTsupBuild = async (context, config, options) => {
115494
115497
  ...stormEnv
115495
115498
  },
115496
115499
  dtsTsConfig: getNormalizedTsConfig(
115500
+ context,
115497
115501
  config.workspaceRoot,
115498
115502
  options.outputPath,
115499
115503
  createTypeScriptCompilationOptions(
@@ -115545,13 +115549,16 @@ ${options.banner}
115545
115549
  );
115546
115550
  }
115547
115551
  };
115548
- function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
115552
+ function getNormalizedTsConfig(context, workspaceRoot, outputPath, options) {
115549
115553
  const config = ts.readConfigFile(options.tsConfig, ts.sys.readFile).config;
115550
115554
  const tsConfig = ts.parseJsonConfigFileContent(
115551
115555
  {
115552
115556
  ...config,
115553
115557
  compilerOptions: {
115554
115558
  ...config.compilerOptions,
115559
+ entry: {
115560
+ [removeExtension(context.main).replace(workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
115561
+ },
115555
115562
  outDir: outputPath,
115556
115563
  rootDir: workspaceRoot,
115557
115564
  baseUrl: workspaceRoot,
@@ -109241,6 +109241,11 @@ var outExtension = ({ format: format2 }) => {
109241
109241
  };
109242
109242
  };
109243
109243
 
109244
+ // packages/workspace-tools/src/utils/file-path-utils.ts
109245
+ var removeExtension = (filePath) => {
109246
+ return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
109247
+ };
109248
+
109244
109249
  // packages/workspace-tools/src/utils/run-tsup-build.ts
109245
109250
  var applyDefaultOptions = (options) => {
109246
109251
  options.entry ??= "{sourceRoot}/index.ts";
@@ -109290,6 +109295,9 @@ var runTsupBuild = async (context, config, options) => {
109290
109295
  const getConfigOptions = {
109291
109296
  ...options,
109292
109297
  main: context.main,
109298
+ entry: {
109299
+ [removeExtension(context.main).replace(config.workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
109300
+ },
109293
109301
  define: {
109294
109302
  __STORM_CONFIG: JSON.stringify(stormEnv)
109295
109303
  },
@@ -109298,6 +109306,7 @@ var runTsupBuild = async (context, config, options) => {
109298
109306
  ...stormEnv
109299
109307
  },
109300
109308
  dtsTsConfig: getNormalizedTsConfig(
109309
+ context,
109301
109310
  config.workspaceRoot,
109302
109311
  options.outputPath,
109303
109312
  createTypeScriptCompilationOptions(
@@ -109349,13 +109358,16 @@ ${options.banner}
109349
109358
  );
109350
109359
  }
109351
109360
  };
109352
- function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
109361
+ function getNormalizedTsConfig(context, workspaceRoot, outputPath, options) {
109353
109362
  const config = ts.readConfigFile(options.tsConfig, ts.sys.readFile).config;
109354
109363
  const tsConfig = ts.parseJsonConfigFileContent(
109355
109364
  {
109356
109365
  ...config,
109357
109366
  compilerOptions: {
109358
109367
  ...config.compilerOptions,
109368
+ entry: {
109369
+ [removeExtension(context.main).replace(workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
109370
+ },
109359
109371
  outDir: outputPath,
109360
109372
  rootDir: workspaceRoot,
109361
109373
  baseUrl: workspaceRoot,
@@ -115611,11 +115623,6 @@ glob.glob = glob;
115611
115623
  var import_fileutils = require("nx/src/utils/fileutils");
115612
115624
  var import_prettier = require("prettier");
115613
115625
 
115614
- // packages/workspace-tools/src/utils/file-path-utils.ts
115615
- var removeExtension = (filePath) => {
115616
- return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
115617
- };
115618
-
115619
115626
  // packages/workspace-tools/src/utils/get-project-configurations.ts
115620
115627
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
115621
115628
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
@@ -109241,6 +109241,11 @@ var outExtension = ({ format: format2 }) => {
109241
109241
  };
109242
109242
  };
109243
109243
 
109244
+ // packages/workspace-tools/src/utils/file-path-utils.ts
109245
+ var removeExtension = (filePath) => {
109246
+ return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
109247
+ };
109248
+
109244
109249
  // packages/workspace-tools/src/utils/run-tsup-build.ts
109245
109250
  var applyDefaultOptions = (options) => {
109246
109251
  options.entry ??= "{sourceRoot}/index.ts";
@@ -109290,6 +109295,9 @@ var runTsupBuild = async (context, config, options) => {
109290
109295
  const getConfigOptions = {
109291
109296
  ...options,
109292
109297
  main: context.main,
109298
+ entry: {
109299
+ [removeExtension(context.main).replace(config.workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
109300
+ },
109293
109301
  define: {
109294
109302
  __STORM_CONFIG: JSON.stringify(stormEnv)
109295
109303
  },
@@ -109298,6 +109306,7 @@ var runTsupBuild = async (context, config, options) => {
109298
109306
  ...stormEnv
109299
109307
  },
109300
109308
  dtsTsConfig: getNormalizedTsConfig(
109309
+ context,
109301
109310
  config.workspaceRoot,
109302
109311
  options.outputPath,
109303
109312
  createTypeScriptCompilationOptions(
@@ -109349,13 +109358,16 @@ ${options.banner}
109349
109358
  );
109350
109359
  }
109351
109360
  };
109352
- function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
109361
+ function getNormalizedTsConfig(context, workspaceRoot, outputPath, options) {
109353
109362
  const config = ts.readConfigFile(options.tsConfig, ts.sys.readFile).config;
109354
109363
  const tsConfig = ts.parseJsonConfigFileContent(
109355
109364
  {
109356
109365
  ...config,
109357
109366
  compilerOptions: {
109358
109367
  ...config.compilerOptions,
109368
+ entry: {
109369
+ [removeExtension(context.main).replace(workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
109370
+ },
109359
109371
  outDir: outputPath,
109360
109372
  rootDir: workspaceRoot,
109361
109373
  baseUrl: workspaceRoot,
@@ -115611,11 +115623,6 @@ glob.glob = glob;
115611
115623
  var import_fileutils = require("nx/src/utils/fileutils");
115612
115624
  var import_prettier = require("prettier");
115613
115625
 
115614
- // packages/workspace-tools/src/utils/file-path-utils.ts
115615
- var removeExtension = (filePath) => {
115616
- return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
115617
- };
115618
-
115619
115626
  // packages/workspace-tools/src/utils/get-project-configurations.ts
115620
115627
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
115621
115628
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
@@ -109241,6 +109241,11 @@ var outExtension = ({ format: format2 }) => {
109241
109241
  };
109242
109242
  };
109243
109243
 
109244
+ // packages/workspace-tools/src/utils/file-path-utils.ts
109245
+ var removeExtension = (filePath) => {
109246
+ return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
109247
+ };
109248
+
109244
109249
  // packages/workspace-tools/src/utils/run-tsup-build.ts
109245
109250
  var applyDefaultOptions = (options) => {
109246
109251
  options.entry ??= "{sourceRoot}/index.ts";
@@ -109290,6 +109295,9 @@ var runTsupBuild = async (context, config, options) => {
109290
109295
  const getConfigOptions = {
109291
109296
  ...options,
109292
109297
  main: context.main,
109298
+ entry: {
109299
+ [removeExtension(context.main).replace(config.workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
109300
+ },
109293
109301
  define: {
109294
109302
  __STORM_CONFIG: JSON.stringify(stormEnv)
109295
109303
  },
@@ -109298,6 +109306,7 @@ var runTsupBuild = async (context, config, options) => {
109298
109306
  ...stormEnv
109299
109307
  },
109300
109308
  dtsTsConfig: getNormalizedTsConfig(
109309
+ context,
109301
109310
  config.workspaceRoot,
109302
109311
  options.outputPath,
109303
109312
  createTypeScriptCompilationOptions(
@@ -109349,13 +109358,16 @@ ${options.banner}
109349
109358
  );
109350
109359
  }
109351
109360
  };
109352
- function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
109361
+ function getNormalizedTsConfig(context, workspaceRoot, outputPath, options) {
109353
109362
  const config = ts.readConfigFile(options.tsConfig, ts.sys.readFile).config;
109354
109363
  const tsConfig = ts.parseJsonConfigFileContent(
109355
109364
  {
109356
109365
  ...config,
109357
109366
  compilerOptions: {
109358
109367
  ...config.compilerOptions,
109368
+ entry: {
109369
+ [removeExtension(context.main).replace(workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
109370
+ },
109359
109371
  outDir: outputPath,
109360
109372
  rootDir: workspaceRoot,
109361
109373
  baseUrl: workspaceRoot,
@@ -115611,11 +115623,6 @@ glob.glob = glob;
115611
115623
  var import_fileutils = require("nx/src/utils/fileutils");
115612
115624
  var import_prettier = require("prettier");
115613
115625
 
115614
- // packages/workspace-tools/src/utils/file-path-utils.ts
115615
- var removeExtension = (filePath) => {
115616
- return filePath.lastIndexOf(".") ? filePath.substring(0, filePath.lastIndexOf(".")) : filePath;
115617
- };
115618
-
115619
115626
  // packages/workspace-tools/src/utils/get-project-configurations.ts
115620
115627
  var import_retrieve_workspace_files = require("nx/src/project-graph/utils/retrieve-workspace-files");
115621
115628
  var getProjectConfigurations = () => (0, import_retrieve_workspace_files.retrieveProjectConfigurationsWithoutPluginInference)(getWorkspaceRoot());
@@ -119810,6 +119810,9 @@ var runTsupBuild = async (context, config, options) => {
119810
119810
  const getConfigOptions = {
119811
119811
  ...options,
119812
119812
  main: context.main,
119813
+ entry: {
119814
+ [removeExtension(context.main).replace(config.workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
119815
+ },
119813
119816
  define: {
119814
119817
  __STORM_CONFIG: JSON.stringify(stormEnv)
119815
119818
  },
@@ -119818,6 +119821,7 @@ var runTsupBuild = async (context, config, options) => {
119818
119821
  ...stormEnv
119819
119822
  },
119820
119823
  dtsTsConfig: getNormalizedTsConfig(
119824
+ context,
119821
119825
  config.workspaceRoot,
119822
119826
  options.outputPath,
119823
119827
  createTypeScriptCompilationOptions(
@@ -119869,13 +119873,16 @@ ${options.banner}
119869
119873
  );
119870
119874
  }
119871
119875
  };
119872
- function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
119876
+ function getNormalizedTsConfig(context, workspaceRoot, outputPath, options) {
119873
119877
  const config = ts.readConfigFile(options.tsConfig, ts.sys.readFile).config;
119874
119878
  const tsConfig = ts.parseJsonConfigFileContent(
119875
119879
  {
119876
119880
  ...config,
119877
119881
  compilerOptions: {
119878
119882
  ...config.compilerOptions,
119883
+ entry: {
119884
+ [removeExtension(context.main).replace(workspaceRoot, "").replace(context.sourceRoot, "")]: context.main
119885
+ },
119879
119886
  outDir: outputPath,
119880
119887
  rootDir: workspaceRoot,
119881
119888
  baseUrl: workspaceRoot,