@storm-software/workspace-tools 1.38.0 → 1.38.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.38.0",
3
+ "version": "1.38.1",
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": [
@@ -116575,7 +116575,6 @@ ${externalDependencies.map((dep) => {
116575
116575
  packageJson.dependencies[packageName] = "latest";
116576
116576
  }
116577
116577
  });
116578
- console.log(JSON.stringify(options.getConfig));
116579
116578
  const distPaths = !options?.getConfig || _isFunction(options.getConfig) ? ["dist/"] : Object.keys(options.getConfig).map((key) => `${key}/`);
116580
116579
  packageJson.type = "module";
116581
116580
  if (distPaths.length > 0) {
@@ -116606,7 +116606,6 @@ ${externalDependencies.map((dep) => {
116606
116606
  packageJson.dependencies[packageName] = "latest";
116607
116607
  }
116608
116608
  });
116609
- console.log(JSON.stringify(options.getConfig));
116610
116609
  const distPaths = !options?.getConfig || _isFunction(options.getConfig) ? ["dist/"] : Object.keys(options.getConfig).map((key) => `${key}/`);
116611
116610
  packageJson.type = "module";
116612
116611
  if (distPaths.length > 0) {
@@ -116606,7 +116606,6 @@ ${externalDependencies.map((dep) => {
116606
116606
  packageJson.dependencies[packageName] = "latest";
116607
116607
  }
116608
116608
  });
116609
- console.log(JSON.stringify(options.getConfig));
116610
116609
  const distPaths = !options?.getConfig || _isFunction(options.getConfig) ? ["dist/"] : Object.keys(options.getConfig).map((key) => `${key}/`);
116611
116610
  packageJson.type = "module";
116612
116611
  if (distPaths.length > 0) {
@@ -116912,7 +116911,7 @@ var _isFunction = (value) => {
116912
116911
 
116913
116912
  // packages/workspace-tools/src/executors/tsup-neutral/get-config.ts
116914
116913
  var import_devkit3 = __toESM(require_devkit());
116915
- function modernNeutralConfig({
116914
+ function neutralConfig({
116916
116915
  entry,
116917
116916
  outDir,
116918
116917
  projectRoot,
@@ -116933,9 +116932,9 @@ function modernNeutralConfig({
116933
116932
  generatePackageJson,
116934
116933
  dtsTsConfig
116935
116934
  }) {
116936
- let outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist", "modern");
116935
+ let outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist");
116937
116936
  const options = {
116938
- name: "modern",
116937
+ name: "neutral",
116939
116938
  entry,
116940
116939
  format: ["cjs", "esm", "iife"],
116941
116940
  target: ["esnext"],
@@ -116987,84 +116986,6 @@ function modernNeutralConfig({
116987
116986
  }
116988
116987
  return options;
116989
116988
  }
116990
- function legacyNeutralConfig({
116991
- entry,
116992
- outDir,
116993
- projectRoot,
116994
- workspaceRoot,
116995
- tsconfig = "tsconfig.json",
116996
- splitting,
116997
- treeshake,
116998
- apiReport = true,
116999
- docModel = true,
117000
- tsdocMetadata = true,
117001
- debug = false,
117002
- external,
117003
- banner = {},
117004
- platform = "neutral",
117005
- verbose = false,
117006
- shims = true,
117007
- metafile = false,
117008
- define: define2,
117009
- env,
117010
- plugins,
117011
- generatePackageJson,
117012
- dtsTsConfig
117013
- }) {
117014
- let outputPath = (0, import_devkit3.joinPathFragments)(outDir, "dist", "legacy");
117015
- const options = {
117016
- name: "legacy",
117017
- entry,
117018
- format: ["cjs", "esm", "iife"],
117019
- target: ["es2022"],
117020
- tsconfig,
117021
- splitting,
117022
- generatePackageJson,
117023
- treeshake: treeshake ? {
117024
- preset: "recommended"
117025
- } : false,
117026
- projectRoot,
117027
- workspaceRoot,
117028
- outDir: outputPath,
117029
- silent: !verbose,
117030
- metafile,
117031
- shims,
117032
- external,
117033
- platform,
117034
- banner,
117035
- define: define2,
117036
- env,
117037
- dts: false,
117038
- experimentalDts: {
117039
- entry,
117040
- compilerOptions: {
117041
- ...dtsTsConfig,
117042
- options: {
117043
- ...dtsTsConfig.options,
117044
- outDir: outputPath
117045
- }
117046
- }
117047
- },
117048
- apiReport,
117049
- docModel,
117050
- tsdocMetadata,
117051
- sourcemap: debug,
117052
- clean: false,
117053
- tsconfigDecoratorMetadata: true,
117054
- plugins,
117055
- outExtension
117056
- };
117057
- if (!debug) {
117058
- options.minify = "terser";
117059
- options.terserOptions = {
117060
- compress: true,
117061
- ecma: 2020,
117062
- keep_classnames: true,
117063
- keep_fnames: true
117064
- };
117065
- }
117066
- return options;
117067
- }
117068
116989
 
117069
116990
  // packages/workspace-tools/src/executors/tsup-neutral/executor.ts
117070
116991
  var tsupNeutralBuildExecutorFn = (options, context, config) => {
@@ -117072,8 +116993,7 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
117072
116993
  {
117073
116994
  ...options,
117074
116995
  getConfig: {
117075
- "dist/modern": modernNeutralConfig,
117076
- "dist/legacy": legacyNeutralConfig
116996
+ "dist": neutralConfig
117077
116997
  },
117078
116998
  platform: "neutral",
117079
116999
  banner: getFileBanner(
@@ -116606,7 +116606,6 @@ ${externalDependencies.map((dep) => {
116606
116606
  packageJson.dependencies[packageName] = "latest";
116607
116607
  }
116608
116608
  });
116609
- console.log(JSON.stringify(options.getConfig));
116610
116609
  const distPaths = !options?.getConfig || _isFunction(options.getConfig) ? ["dist/"] : Object.keys(options.getConfig).map((key) => `${key}/`);
116611
116610
  packageJson.type = "module";
116612
116611
  if (distPaths.length > 0) {