@storm-software/workspace-tools 1.41.0 → 1.42.0

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,17 @@
1
+ ## [1.41.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.41.0...workspace-tools-v1.41.1) (2024-01-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **workspace-tools:** Cleaned up dependanies and option defaulting in tsup ([0ae0dd3](https://github.com/storm-software/storm-ops/commit/0ae0dd327ed646e6dbcd1c33b44aef820403cd77))
7
+
8
+ # [1.41.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.40.1...workspace-tools-v1.41.0) (2024-01-14)
9
+
10
+
11
+ ### Features
12
+
13
+ * **git-tools:** Improved all CLI tools and git hooks to use the `zx` package ([a905c21](https://github.com/storm-software/storm-ops/commit/a905c213d710d995cc114b32a90bf4d042c550d6))
14
+
1
15
  ## [1.40.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.40.0...workspace-tools-v1.40.1) (2024-01-14)
2
16
 
3
17
 
package/README.md CHANGED
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
16
16
 
17
17
  <h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
18
18
 
19
- [![Version](https://img.shields.io/badge/version-1.39.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
19
+ [![Version](https://img.shields.io/badge/version-1.41.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;
20
20
  [![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
21
21
 
22
22
  <h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
package/config/nx.json CHANGED
@@ -4,9 +4,6 @@
4
4
  "affected": {
5
5
  "defaultBase": "main"
6
6
  },
7
- "workspaceLayout": {
8
- "projectNameAndRootFormat": "as-provided"
9
- },
10
7
  "tasksRunnerOptions": {
11
8
  "default": {
12
9
  "runner": "nx/tasks-runners/default",
@@ -26,9 +23,12 @@
26
23
  "namedInputs": {
27
24
  "globalBuildAffectingConfig": [
28
25
  "{workspaceRoot}/tsconfig.base.json",
29
- "{workspaceRoot}/package.json"
26
+ "{workspaceRoot}/package.json",
27
+ "{workspaceRoot}/storm.json"
30
28
  ],
31
29
  "globalNonBuildAffectingConfig": [
30
+ "{workspaceRoot}/**/biome.json",
31
+ "{workspaceRoot}/**/lefthook.json",
32
32
  "{workspaceRoot}/.log4brains.yml",
33
33
  "{workspaceRoot}/.eslintrc.json",
34
34
  "{workspaceRoot}/.all-contributorsrc",
@@ -81,20 +81,15 @@
81
81
  },
82
82
  "lint": {
83
83
  "cache": true,
84
- "executor": "@nx/eslint:lint",
84
+ "executor": "nx:run-commands",
85
85
  "outputs": ["{options.outputFile}"],
86
86
  "options": {
87
- "lintFilePatterns": [
88
- "{projectRoot}/**/*.ts",
89
- "{projectRoot}/package.json"
90
- ]
87
+ "commands": [
88
+ "npx biome lint --apply --no-errors-on-unmatched --files-ignore-unknown=true {projectRoot}"
89
+ ],
90
+ "color": true
91
91
  },
92
- "inputs": [
93
- "default",
94
- "{workspaceRoot}/.eslintrc.json",
95
- "{workspaceRoot}/.eslintignore",
96
- "{workspaceRoot}/eslint.config.js"
97
- ]
92
+ "inputs": ["default", "{workspaceRoot}/**/biome.json"]
98
93
  },
99
94
  "test": {
100
95
  "cache": true,
package/index.js CHANGED
@@ -127893,7 +127893,9 @@ var getConfigFile = async (filePath) => {
127893
127893
  return void 0;
127894
127894
  }
127895
127895
  const config = cosmiconfigResult.config ?? {};
127896
- cosmiconfigResult.filepath && (config.configFile = cosmiconfigResult.filepath);
127896
+ if (cosmiconfigResult.filepath) {
127897
+ config.configFile = cosmiconfigResult.filepath;
127898
+ }
127897
127899
  config.runtimeVersion = "0.0.1";
127898
127900
  _static_cache = config;
127899
127901
  return config;
@@ -131997,14 +131999,13 @@ var applyWorkspaceTokens = (options, config, tokenizerFn) => {
131997
131999
  var withRunExecutor = (name, executorFn, executorOptions = {
131998
132000
  skipReadingConfig: false,
131999
132001
  hooks: {}
132000
- }) => async (options, context) => {
132002
+ }) => async (_options, context) => {
132001
132003
  const startTime = Date.now();
132004
+ let options = _options;
132002
132005
  try {
132003
- console.info(
132004
- chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} executor...
132006
+ console.info(chalk.bold.hex("#1fb2a6")(`\u26A1 Running the ${name} executor...
132005
132007
 
132006
- `)
132007
- );
132008
+ `));
132008
132009
  if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
132009
132010
  throw new Error(
132010
132011
  "The Build process failed because the context is not valid. Please run this command from a workspace."
@@ -132029,19 +132030,11 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
132029
132030
  );
132030
132031
  }
132031
132032
  if (executorOptions?.hooks?.applyDefaultOptions) {
132032
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(`Running the applyDefaultOptions hook...`));
132033
- options = await Promise.resolve(
132034
- executorOptions.hooks.applyDefaultOptions(options, config)
132035
- );
132036
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(`Completed the applyDefaultOptions hook...`));
132033
+ getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim("Running the applyDefaultOptions hook..."));
132034
+ options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
132035
+ getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim("Completed the applyDefaultOptions hook..."));
132037
132036
  }
132038
- getLogLevel(config.logLevel) >= LogLevel.INFO && console.info(
132039
- chalk.hex("#0ea5e9").italic(`
132040
-
132041
- \u2699\uFE0F Executor schema options:
132042
- `),
132043
- options
132044
- );
132037
+ getLogLevel(config.logLevel) >= LogLevel.INFO && console.info(chalk.hex("#0ea5e9").italic("\n\n \u2699\uFE0F Executor schema options: \n"), options);
132045
132038
  const tokenized = applyWorkspaceTokens(
132046
132039
  options,
132047
132040
  {
@@ -132056,44 +132049,34 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
132056
132049
  applyWorkspaceExecutorTokens
132057
132050
  );
132058
132051
  if (executorOptions?.hooks?.preProcess) {
132059
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(`Running the preProcess hook...`));
132060
- await Promise.resolve(
132061
- executorOptions.hooks.preProcess(tokenized, config)
132062
- );
132063
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(`Completed the preProcess hook...`));
132052
+ getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim("Running the preProcess hook..."));
132053
+ await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
132054
+ getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim("Completed the preProcess hook..."));
132064
132055
  }
132065
- const result = await Promise.resolve(
132066
- executorFn(tokenized, context, config)
132067
- );
132056
+ const result = await Promise.resolve(executorFn(tokenized, context, config));
132068
132057
  if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
132069
132058
  throw new Error(`The ${name} executor failed to run`, {
132070
- cause: result.error
132059
+ cause: result?.error
132071
132060
  });
132072
132061
  }
132073
132062
  if (executorOptions?.hooks?.postProcess) {
132074
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(`Running the postProcess hook...`));
132063
+ getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim("Running the postProcess hook..."));
132075
132064
  await Promise.resolve(executorOptions.hooks.postProcess(config));
132076
- getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim(`Completed the postProcess hook...`));
132065
+ getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.debug(chalk.dim("Completed the postProcess hook..."));
132077
132066
  }
132078
132067
  console.info(
132079
- chalk.bold.hex("#087f5b")(
132080
- `
132068
+ chalk.bold.hex("#087f5b")(`
132081
132069
 
132082
132070
  \u{1F389} Successfully completed running the ${name} executor!
132083
132071
 
132084
- `
132085
- )
132072
+ `)
132086
132073
  );
132087
132074
  return {
132088
132075
  success: true
132089
132076
  };
132090
132077
  } catch (error) {
132091
132078
  console.error(
132092
- chalk.bold.hex("#7d1a1a")(
132093
- `\u274C An error occurred while running the executor
132094
-
132095
- `
132096
- ),
132079
+ chalk.bold.hex("#7d1a1a")("\u274C An error occurred while running the executor\n\n"),
132097
132080
  error
132098
132081
  );
132099
132082
  return {
@@ -139003,10 +138986,10 @@ var import_transform = __toESM(require_transform());
139003
138986
  var getTypiaTransform = (program, diagnostics) => (0, import_transform.default)(program, {}, { addDiagnostic: (input) => diagnostics.push(input) });
139004
138987
 
139005
138988
  // packages/workspace-tools/src/executors/tsup/executor.ts
139006
- async function tsupExecutorFn(options, context) {
138989
+ async function tsupExecutorFn(options, context, config) {
139007
138990
  try {
139008
138991
  console.log("\u{1F4E6} Running Storm build executor on the workspace");
139009
- options.verbose && console.log(
138992
+ getLogLevel(config?.logLevel) >= LogLevel.TRACE && console.log(
139010
138993
  `\u2699\uFE0F Executor options:
139011
138994
  ${Object.keys(options).map(
139012
138995
  (key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : JSON.stringify(options[key])}`
@@ -139022,7 +139005,9 @@ ${Object.keys(options).map(
139022
139005
  const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
139023
139006
  const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
139024
139007
  if (options.clean !== false) {
139025
- console.log(`\u{1F9F9} Cleaning output path: ${options.outputPath}`);
139008
+ if (getLogLevel(config?.logLevel) >= LogLevel.DEBUG) {
139009
+ console.log(`\u{1F9F9} Cleaning output path: ${options.outputPath}`);
139010
+ }
139026
139011
  (0, import_fs_extra.removeSync)(options.outputPath);
139027
139012
  }
139028
139013
  const assets = Array.from(options.assets);
@@ -139091,11 +139076,15 @@ ${Object.keys(options).map(
139091
139076
  const implicitDependencies = context.projectsConfigurations.projects[context.projectName].implicitDependencies;
139092
139077
  const internalDependencies = [];
139093
139078
  const projectConfigs = await Promise.resolve(getProjectConfigurations());
139094
- console.log("Project Configs:");
139095
- console.log(projectConfigs);
139079
+ if (getLogLevel(config?.logLevel) >= LogLevel.TRACE) {
139080
+ console.log("Project Configs:");
139081
+ console.log(projectConfigs);
139082
+ }
139096
139083
  if (implicitDependencies && implicitDependencies.length > 0) {
139097
139084
  options.external = implicitDependencies.reduce((ret, key) => {
139098
- console.log(`\u26A1 Adding implicit dependency: ${key}`);
139085
+ if (getLogLevel(config?.logLevel) >= LogLevel.DEBUG) {
139086
+ console.log(`\u26A1 Adding implicit dependency: ${key}`);
139087
+ }
139099
139088
  const projectConfig = projectConfigs[key];
139100
139089
  if (projectConfig?.targets?.build) {
139101
139090
  const projectPackageJson = (0, import_devkit3.readJsonFile)(projectConfig.targets?.build.options.project);
@@ -139121,10 +139110,12 @@ ${Object.keys(options).map(
139121
139110
  }
139122
139111
  }
139123
139112
  }
139124
- console.log(`Building with the following dependencies marked as external:
139113
+ if (getLogLevel(config?.logLevel) >= LogLevel.TRACE) {
139114
+ console.log(`Building with the following dependencies marked as external:
139125
139115
  ${externalDependencies.map((dep) => {
139126
- return `name: ${dep.name}, node: ${dep.node}, outputs: ${dep.outputs}`;
139127
- }).join("\n")}`);
139116
+ return `name: ${dep.name}, node: ${dep.node}, outputs: ${dep.outputs}`;
139117
+ }).join("\n")}`);
139118
+ }
139128
139119
  const prettierOptions = {
139129
139120
  plugins: ["prettier-plugin-packagejson"],
139130
139121
  trailingComma: "none",
@@ -139161,12 +139152,14 @@ ${externalDependencies.map((dep) => {
139161
139152
  while (propertyKey.startsWith("/")) {
139162
139153
  propertyKey = propertyKey.substring(1);
139163
139154
  }
139164
- console.debug(
139165
- `Trying to add entry point ${propertyKey} at "${(0, import_devkit3.joinPathFragments)(
139166
- filePath.path,
139167
- filePath.name
139168
- )}"`
139169
- );
139155
+ if (getLogLevel(config?.logLevel) >= LogLevel.DEBUG) {
139156
+ console.debug(
139157
+ `Trying to add entry point ${propertyKey} at "${(0, import_devkit3.joinPathFragments)(
139158
+ filePath.path,
139159
+ filePath.name
139160
+ )}"`
139161
+ );
139162
+ }
139170
139163
  if (!(propertyKey in ret)) {
139171
139164
  ret[propertyKey] = (0, import_devkit3.joinPathFragments)(filePath.path, filePath.name);
139172
139165
  }
@@ -139282,7 +139275,9 @@ ${externalDependencies.map((dep) => {
139282
139275
  packageJson.repository ??= workspacePackageJson.repository;
139283
139276
  packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_path4.join)("packages", context.projectName);
139284
139277
  const packageJsonPath = (0, import_path4.join)(context.root, options.outputPath, "package.json");
139285
- console.log(`\u26A1 Writing package.json file to: ${packageJsonPath}`);
139278
+ if (getLogLevel(config?.logLevel) >= LogLevel.DEBUG) {
139279
+ console.debug(`\u26A1 Writing package.json file to: ${packageJsonPath}`);
139280
+ }
139286
139281
  (0, import_fs4.writeFileSync)(
139287
139282
  packageJsonPath,
139288
139283
  await (0, import_prettier.format)(JSON.stringify(packageJson), {
@@ -139345,7 +139340,7 @@ ${(0, import_fs4.readFileSync)(file, "utf-8")}`,
139345
139340
  ...options,
139346
139341
  watch: false,
139347
139342
  main: options.entry,
139348
- transformers: ["typia/lib/transform"]
139343
+ transformers: options.skipTypia ? [] : ["typia/lib/transform"]
139349
139344
  },
139350
139345
  context.root,
139351
139346
  sourceRoot,
@@ -139369,21 +139364,26 @@ ${options.banner}
139369
139364
  getTransform: options.skipTypia ? void 0 : getTypiaTransform
139370
139365
  };
139371
139366
  if (options.getConfig) {
139367
+ if (getLogLevel(config?.logLevel) >= LogLevel.INFO) {
139368
+ console.log("\u26A1 Running the Build process");
139369
+ }
139372
139370
  const getConfigFns = _isFunction(options.getConfig) ? [options.getConfig] : Object.keys(options.getConfig).map((key) => options.getConfig[key]);
139373
- const config = (0, import_tsup.defineConfig)(
139371
+ const tsupConfig = (0, import_tsup.defineConfig)(
139374
139372
  getConfigFns.map(
139375
139373
  (getConfigFn) => getConfig(context.root, projectRoot, getConfigFn, getConfigOptions)
139376
139374
  )
139377
139375
  );
139378
- if (_isFunction(config)) {
139379
- await build(await Promise.resolve(config({})));
139376
+ if (_isFunction(tsupConfig)) {
139377
+ await build(await Promise.resolve(tsupConfig({})), config);
139380
139378
  } else {
139381
- await build(config);
139379
+ await build(tsupConfig, config);
139382
139380
  }
139383
- } else {
139384
- console.log("The Build process did not run because no `getConfig` parameter was provided");
139381
+ } else if (getLogLevel(config?.logLevel) >= LogLevel.WARN) {
139382
+ console.warn("The Build process did not run because no `getConfig` parameter was provided");
139383
+ }
139384
+ if (getLogLevel(config?.logLevel) >= LogLevel.INFO) {
139385
+ console.log("\u26A1 The Build process has completed successfully");
139385
139386
  }
139386
- console.log("\u26A1 The Build process has completed successfully");
139387
139387
  return {
139388
139388
  success: true
139389
139389
  };
@@ -139409,6 +139409,7 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
139409
139409
  esModuleInterop: true,
139410
139410
  downlevelIteration: true,
139411
139411
  forceConsistentCasingInFileNames: true,
139412
+ emitDeclarationOnly: true,
139412
139413
  declaration: true,
139413
139414
  declarationMap: true,
139414
139415
  declarationDir: (0, import_path4.join)(workspaceRoot, "tmp", ".tsup", "declaration")
@@ -139423,12 +139424,19 @@ function getNormalizedTsConfig(workspaceRoot, outputPath, options) {
139423
139424
  }
139424
139425
  return tsConfig;
139425
139426
  }
139426
- var build = async (options) => {
139427
- Array.isArray(options) ? options.length > 0 ? options[0].silent : false : options.silent && console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
139428
- if (Array.isArray(options)) {
139429
- await Promise.all(options.map((buildOptions) => (0, import_tsup.build)(buildOptions)));
139430
- } else {
139431
- await (0, import_tsup.build)(options);
139427
+ var build = async (options, config) => {
139428
+ try {
139429
+ if (Array.isArray(options)) {
139430
+ await Promise.all(options.map((buildOptions) => build(buildOptions, config)));
139431
+ } else {
139432
+ if (getLogLevel(config?.logLevel) >= LogLevel.TRACE && !options.silent) {
139433
+ console.log("\u2699\uFE0F Tsup build config: \n", options, "\n");
139434
+ }
139435
+ await (0, import_tsup.build)(options);
139436
+ }
139437
+ } catch (e) {
139438
+ console.error("\u26A0\uFE0F A failure occured during the Tsup Build executor");
139439
+ console.error(e);
139432
139440
  }
139433
139441
  };
139434
139442
  var applyDefaultOptions = (options) => {
@@ -139458,7 +139466,6 @@ var applyDefaultOptions = (options) => {
139458
139466
  options.skipTypia ??= false;
139459
139467
  options.define ??= {};
139460
139468
  options.env ??= {};
139461
- options.verbose ??= !!process.env.CI;
139462
139469
  options.getConfig ??= { dist: defaultConfig };
139463
139470
  return options;
139464
139471
  };
@@ -139502,6 +139509,9 @@ function neutralConfig({
139502
139509
  metafile = false,
139503
139510
  define: define2,
139504
139511
  env: env2,
139512
+ apiReport = true,
139513
+ docModel = true,
139514
+ tsdocMetadata = true,
139505
139515
  plugins,
139506
139516
  generatePackageJson,
139507
139517
  dtsTsConfig,
@@ -139542,9 +139552,9 @@ function neutralConfig({
139542
139552
  }
139543
139553
  }
139544
139554
  },
139545
- apiReport: false,
139546
- docModel: false,
139547
- tsdocMetadata: false,
139555
+ apiReport,
139556
+ docModel,
139557
+ tsdocMetadata,
139548
139558
  sourcemap: debug,
139549
139559
  clean: false,
139550
139560
  tsconfigDecoratorMetadata: true,
@@ -139570,13 +139580,11 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
139570
139580
  {
139571
139581
  ...options,
139572
139582
  getConfig: {
139573
- "dist": neutralConfig
139583
+ dist: neutralConfig
139574
139584
  },
139575
139585
  platform: "neutral",
139576
139586
  banner: getFileBanner(
139577
- context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
139578
- (s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : ""
139579
- ).join(" ") : "TypeScript (Neutral Platform)"
139587
+ context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : "").join(" ") : "TypeScript (Neutral Platform)"
139580
139588
  ),
139581
139589
  define: {
139582
139590
  ...options.define
@@ -139698,12 +139706,10 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
139698
139706
  return tsupExecutorFn(
139699
139707
  {
139700
139708
  ...options,
139701
- getConfig: { "dist": nodeConfig },
139709
+ getConfig: { dist: nodeConfig },
139702
139710
  platform: "node",
139703
139711
  banner: getFileBanner(
139704
- context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
139705
- (s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : ""
139706
- ).join(" ") : "TypeScript (NodeJs Platform)"
139712
+ context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : "").join(" ") : "TypeScript (NodeJs Platform)"
139707
139713
  ),
139708
139714
  define: {
139709
139715
  ...options.define
@@ -139712,7 +139718,8 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
139712
139718
  ...process.env
139713
139719
  }
139714
139720
  },
139715
- context
139721
+ context,
139722
+ config
139716
139723
  );
139717
139724
  };
139718
139725
  var applyDefaultOptions3 = (options) => {