@storm-software/workspace-tools 1.49.13 → 1.49.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.49.13",
3
+ "version": "1.49.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": [
@@ -115433,6 +115433,7 @@ var runTsupBuild = async (context, config, options) => {
115433
115433
  options.plugins.push(environmentPlugin(stormEnv));
115434
115434
  const getConfigOptions = {
115435
115435
  ...options,
115436
+ main: context.entry,
115436
115437
  define: {
115437
115438
  __STORM_CONFIG: JSON.stringify(stormEnv)
115438
115439
  },
@@ -115791,6 +115792,7 @@ ${externalDependencies.map((dep) => {
115791
115792
  }
115792
115793
  };
115793
115794
  }
115795
+ packageJson.sideEffects ??= false;
115794
115796
  packageJson.funding ??= workspacePackageJson.funding;
115795
115797
  packageJson.types ??= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.d.ts`;
115796
115798
  packageJson.typings ??= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.d.ts`;
@@ -115809,7 +115811,6 @@ ${externalDependencies.map((dep) => {
115809
115811
  }
115810
115812
  packageJson.source ??= `${(0, import_devkit3.joinPathFragments)(distSrc, "index.ts").replaceAll("\\", "/")}`;
115811
115813
  }
115812
- packageJson.sideEffects ??= false;
115813
115814
  packageJson.files ??= ["dist/**/*"];
115814
115815
  if (options.includeSrc === true && !packageJson.files.includes("src")) {
115815
115816
  packageJson.files.push("src/**/*");
@@ -115864,8 +115865,15 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115864
115865
  );
115865
115866
  }
115866
115867
  Promise.all(
115867
- entryPoints.map(
115868
- (entryPoint) => runTsupBuild(
115868
+ entryPoints.map((entryPoint) => {
115869
+ let outputPath = removeExtension(entryPoint).replace(sourceRoot, "");
115870
+ if (outputPath.startsWith(".")) {
115871
+ outputPath = outputPath.substring(1);
115872
+ }
115873
+ if (outputPath.startsWith("/")) {
115874
+ outputPath = outputPath.substring(1);
115875
+ }
115876
+ return runTsupBuild(
115869
115877
  {
115870
115878
  entry: entryPoint,
115871
115879
  projectRoot,
@@ -115876,13 +115884,13 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115876
115884
  {
115877
115885
  ...options,
115878
115886
  outputPath: (0, import_devkit3.joinPathFragments)(
115879
- config.workspaceRoot,
115880
115887
  options.outputPath,
115881
- removeExtension(entryPoint).replace(sourceRoot, "").replace(findFileName(entryPoint), "")
115888
+ "dist",
115889
+ outputPath.replace(findFileName(entryPoint), "")
115882
115890
  )
115883
115891
  }
115884
- )
115885
- )
115892
+ );
115893
+ })
115886
115894
  );
115887
115895
  writeSuccess(config, "\u26A1 The Build process has completed successfully");
115888
115896
  return {
@@ -109250,6 +109250,7 @@ var runTsupBuild = async (context, config, options) => {
109250
109250
  options.plugins.push(environmentPlugin(stormEnv));
109251
109251
  const getConfigOptions = {
109252
109252
  ...options,
109253
+ main: context.entry,
109253
109254
  define: {
109254
109255
  __STORM_CONFIG: JSON.stringify(stormEnv)
109255
109256
  },
@@ -115821,6 +115822,7 @@ ${externalDependencies.map((dep) => {
115821
115822
  }
115822
115823
  };
115823
115824
  }
115825
+ packageJson.sideEffects ??= false;
115824
115826
  packageJson.funding ??= workspacePackageJson.funding;
115825
115827
  packageJson.types ??= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.d.ts`;
115826
115828
  packageJson.typings ??= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.d.ts`;
@@ -115839,7 +115841,6 @@ ${externalDependencies.map((dep) => {
115839
115841
  }
115840
115842
  packageJson.source ??= `${(0, import_devkit3.joinPathFragments)(distSrc, "index.ts").replaceAll("\\", "/")}`;
115841
115843
  }
115842
- packageJson.sideEffects ??= false;
115843
115844
  packageJson.files ??= ["dist/**/*"];
115844
115845
  if (options.includeSrc === true && !packageJson.files.includes("src")) {
115845
115846
  packageJson.files.push("src/**/*");
@@ -115894,8 +115895,15 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115894
115895
  );
115895
115896
  }
115896
115897
  Promise.all(
115897
- entryPoints.map(
115898
- (entryPoint) => runTsupBuild(
115898
+ entryPoints.map((entryPoint) => {
115899
+ let outputPath = removeExtension(entryPoint).replace(sourceRoot, "");
115900
+ if (outputPath.startsWith(".")) {
115901
+ outputPath = outputPath.substring(1);
115902
+ }
115903
+ if (outputPath.startsWith("/")) {
115904
+ outputPath = outputPath.substring(1);
115905
+ }
115906
+ return runTsupBuild(
115899
115907
  {
115900
115908
  entry: entryPoint,
115901
115909
  projectRoot,
@@ -115906,13 +115914,13 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115906
115914
  {
115907
115915
  ...options,
115908
115916
  outputPath: (0, import_devkit3.joinPathFragments)(
115909
- config.workspaceRoot,
115910
115917
  options.outputPath,
115911
- removeExtension(entryPoint).replace(sourceRoot, "").replace(findFileName(entryPoint), "")
115918
+ "dist",
115919
+ outputPath.replace(findFileName(entryPoint), "")
115912
115920
  )
115913
115921
  }
115914
- )
115915
- )
115922
+ );
115923
+ })
115916
115924
  );
115917
115925
  writeSuccess(config, "\u26A1 The Build process has completed successfully");
115918
115926
  return {
@@ -115942,7 +115950,7 @@ var _isFunction2 = (value) => {
115942
115950
 
115943
115951
  // packages/workspace-tools/src/executors/tsup-browser/get-config.ts
115944
115952
  var import_devkit4 = __toESM(require_devkit());
115945
- var modernBrowserConfig = ({
115953
+ var browserConfig = ({
115946
115954
  entry,
115947
115955
  outDir,
115948
115956
  projectRoot,
@@ -115966,7 +115974,7 @@ var modernBrowserConfig = ({
115966
115974
  minify = false,
115967
115975
  getTransform
115968
115976
  }) => {
115969
- const outputPath = (0, import_devkit4.joinPathFragments)(outDir, "dist", "modern");
115977
+ const outputPath = (0, import_devkit4.joinPathFragments)(outDir, "dist");
115970
115978
  const options = {
115971
115979
  name: "modern",
115972
115980
  entry,
@@ -116023,90 +116031,6 @@ var modernBrowserConfig = ({
116023
116031
  }
116024
116032
  return options;
116025
116033
  };
116026
- var legacyBrowserConfig = ({
116027
- entry,
116028
- outDir,
116029
- projectRoot,
116030
- workspaceRoot,
116031
- tsconfig = "tsconfig.json",
116032
- splitting,
116033
- treeshake,
116034
- debug = false,
116035
- external,
116036
- banner = {},
116037
- platform = "browser",
116038
- verbose = false,
116039
- shims = true,
116040
- apiReport = true,
116041
- docModel = true,
116042
- tsdocMetadata = true,
116043
- metafile = true,
116044
- skipNativeModulesPlugin = false,
116045
- define: define2,
116046
- env,
116047
- plugins,
116048
- generatePackageJson,
116049
- dtsTsConfig,
116050
- minify = false,
116051
- getTransform
116052
- }) => {
116053
- const outputPath = (0, import_devkit4.joinPathFragments)(outDir, "dist", "legacy");
116054
- const options = {
116055
- name: "legacy",
116056
- entry,
116057
- format: ["cjs", "esm", "iife"],
116058
- target: ["es2022"],
116059
- tsconfig,
116060
- splitting,
116061
- generatePackageJson,
116062
- treeshake: treeshake ? {
116063
- preset: "recommended"
116064
- } : false,
116065
- projectRoot,
116066
- workspaceRoot,
116067
- outDir: outputPath,
116068
- silent: !verbose,
116069
- metafile,
116070
- shims,
116071
- external,
116072
- platform,
116073
- banner,
116074
- define: define2,
116075
- env,
116076
- dts: false,
116077
- minify,
116078
- experimentalDts: {
116079
- entry,
116080
- compilerOptions: {
116081
- ...dtsTsConfig,
116082
- options: {
116083
- ...dtsTsConfig.options,
116084
- outDir: outputPath
116085
- }
116086
- }
116087
- },
116088
- apiReport,
116089
- docModel,
116090
- tsdocMetadata,
116091
- sourcemap: debug,
116092
- clean: false,
116093
- skipNativeModulesPlugin,
116094
- tsconfigDecoratorMetadata: true,
116095
- plugins,
116096
- outExtension,
116097
- getTransform
116098
- };
116099
- if (!debug || minify) {
116100
- options.minify = "terser";
116101
- options.terserOptions = {
116102
- compress: true,
116103
- ecma: 2020,
116104
- keep_classnames: true,
116105
- keep_fnames: true
116106
- };
116107
- }
116108
- return options;
116109
- };
116110
116034
 
116111
116035
  // packages/workspace-tools/src/executors/tsup-browser/executor.ts
116112
116036
  var tsupBrowserBuildExecutorFn = (options, context, config) => {
@@ -116124,8 +116048,7 @@ var tsupBrowserBuildExecutorFn = (options, context, config) => {
116124
116048
  ...process.env
116125
116049
  },
116126
116050
  getConfig: {
116127
- "dist/modern": modernBrowserConfig,
116128
- "dist/legacy": legacyBrowserConfig
116051
+ dist: browserConfig
116129
116052
  }
116130
116053
  },
116131
116054
  context,
@@ -109250,6 +109250,7 @@ var runTsupBuild = async (context, config, options) => {
109250
109250
  options.plugins.push(environmentPlugin(stormEnv));
109251
109251
  const getConfigOptions = {
109252
109252
  ...options,
109253
+ main: context.entry,
109253
109254
  define: {
109254
109255
  __STORM_CONFIG: JSON.stringify(stormEnv)
109255
109256
  },
@@ -115821,6 +115822,7 @@ ${externalDependencies.map((dep) => {
115821
115822
  }
115822
115823
  };
115823
115824
  }
115825
+ packageJson.sideEffects ??= false;
115824
115826
  packageJson.funding ??= workspacePackageJson.funding;
115825
115827
  packageJson.types ??= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.d.ts`;
115826
115828
  packageJson.typings ??= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.d.ts`;
@@ -115839,7 +115841,6 @@ ${externalDependencies.map((dep) => {
115839
115841
  }
115840
115842
  packageJson.source ??= `${(0, import_devkit3.joinPathFragments)(distSrc, "index.ts").replaceAll("\\", "/")}`;
115841
115843
  }
115842
- packageJson.sideEffects ??= false;
115843
115844
  packageJson.files ??= ["dist/**/*"];
115844
115845
  if (options.includeSrc === true && !packageJson.files.includes("src")) {
115845
115846
  packageJson.files.push("src/**/*");
@@ -115894,8 +115895,15 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115894
115895
  );
115895
115896
  }
115896
115897
  Promise.all(
115897
- entryPoints.map(
115898
- (entryPoint) => runTsupBuild(
115898
+ entryPoints.map((entryPoint) => {
115899
+ let outputPath = removeExtension(entryPoint).replace(sourceRoot, "");
115900
+ if (outputPath.startsWith(".")) {
115901
+ outputPath = outputPath.substring(1);
115902
+ }
115903
+ if (outputPath.startsWith("/")) {
115904
+ outputPath = outputPath.substring(1);
115905
+ }
115906
+ return runTsupBuild(
115899
115907
  {
115900
115908
  entry: entryPoint,
115901
115909
  projectRoot,
@@ -115906,13 +115914,13 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115906
115914
  {
115907
115915
  ...options,
115908
115916
  outputPath: (0, import_devkit3.joinPathFragments)(
115909
- config.workspaceRoot,
115910
115917
  options.outputPath,
115911
- removeExtension(entryPoint).replace(sourceRoot, "").replace(findFileName(entryPoint), "")
115918
+ "dist",
115919
+ outputPath.replace(findFileName(entryPoint), "")
115912
115920
  )
115913
115921
  }
115914
- )
115915
- )
115922
+ );
115923
+ })
115916
115924
  );
115917
115925
  writeSuccess(config, "\u26A1 The Build process has completed successfully");
115918
115926
  return {
@@ -109250,6 +109250,7 @@ var runTsupBuild = async (context, config, options) => {
109250
109250
  options.plugins.push(environmentPlugin(stormEnv));
109251
109251
  const getConfigOptions = {
109252
109252
  ...options,
109253
+ main: context.entry,
109253
109254
  define: {
109254
109255
  __STORM_CONFIG: JSON.stringify(stormEnv)
109255
109256
  },
@@ -115821,6 +115822,7 @@ ${externalDependencies.map((dep) => {
115821
115822
  }
115822
115823
  };
115823
115824
  }
115825
+ packageJson.sideEffects ??= false;
115824
115826
  packageJson.funding ??= workspacePackageJson.funding;
115825
115827
  packageJson.types ??= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.d.ts`;
115826
115828
  packageJson.typings ??= `${distPaths.length > 1 ? distPaths[1] : distPaths[0]}index.d.ts`;
@@ -115839,7 +115841,6 @@ ${externalDependencies.map((dep) => {
115839
115841
  }
115840
115842
  packageJson.source ??= `${(0, import_devkit3.joinPathFragments)(distSrc, "index.ts").replaceAll("\\", "/")}`;
115841
115843
  }
115842
- packageJson.sideEffects ??= false;
115843
115844
  packageJson.files ??= ["dist/**/*"];
115844
115845
  if (options.includeSrc === true && !packageJson.files.includes("src")) {
115845
115846
  packageJson.files.push("src/**/*");
@@ -115894,8 +115895,15 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115894
115895
  );
115895
115896
  }
115896
115897
  Promise.all(
115897
- entryPoints.map(
115898
- (entryPoint) => runTsupBuild(
115898
+ entryPoints.map((entryPoint) => {
115899
+ let outputPath = removeExtension(entryPoint).replace(sourceRoot, "");
115900
+ if (outputPath.startsWith(".")) {
115901
+ outputPath = outputPath.substring(1);
115902
+ }
115903
+ if (outputPath.startsWith("/")) {
115904
+ outputPath = outputPath.substring(1);
115905
+ }
115906
+ return runTsupBuild(
115899
115907
  {
115900
115908
  entry: entryPoint,
115901
115909
  projectRoot,
@@ -115906,13 +115914,13 @@ ${(0, import_node_fs5.readFileSync)(file, "utf-8")}`,
115906
115914
  {
115907
115915
  ...options,
115908
115916
  outputPath: (0, import_devkit3.joinPathFragments)(
115909
- config.workspaceRoot,
115910
115917
  options.outputPath,
115911
- removeExtension(entryPoint).replace(sourceRoot, "").replace(findFileName(entryPoint), "")
115918
+ "dist",
115919
+ outputPath.replace(findFileName(entryPoint), "")
115912
115920
  )
115913
115921
  }
115914
- )
115915
- )
115922
+ );
115923
+ })
115916
115924
  );
115917
115925
  writeSuccess(config, "\u26A1 The Build process has completed successfully");
115918
115926
  return {
@@ -116050,9 +116058,7 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
116050
116058
  var applyDefaultOptions2 = (options) => {
116051
116059
  return {
116052
116060
  ...applyDefaultOptions({ plugins: [], ...options, platform: "node" }),
116053
- transports: [
116054
- /*"pino-pretty", "pino-loki"*/
116055
- ]
116061
+ transports: ["pino-pretty", "pino-loki"]
116056
116062
  };
116057
116063
  };
116058
116064
  var executor_default2 = withRunExecutor(
@@ -119429,6 +119429,7 @@ var runTsupBuild = async (context, config, options) => {
119429
119429
  options.plugins.push(environmentPlugin(stormEnv));
119430
119430
  const getConfigOptions = {
119431
119431
  ...options,
119432
+ main: context.entry,
119432
119433
  define: {
119433
119434
  __STORM_CONFIG: JSON.stringify(stormEnv)
119434
119435
  },