@powerlines/nx 0.11.127 → 0.11.129

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{chunk-LOTVN4ME.mjs → chunk-2LSGUZP7.mjs} +1 -1
  3. package/dist/{chunk-56MCJH3J.js → chunk-3YHYRSAI.js} +2 -2
  4. package/dist/{chunk-7AZLH52Q.js → chunk-4DT2QBIV.js} +2 -2
  5. package/dist/{chunk-IWSYHFCU.mjs → chunk-6JRIBRDK.mjs} +1 -1
  6. package/dist/{chunk-OVX2CEXQ.mjs → chunk-AGZ4P3AS.mjs} +1 -2
  7. package/dist/{chunk-UHUBYHC5.js → chunk-BAAOY6SV.js} +67 -37
  8. package/dist/{chunk-E5JLGW6Y.js → chunk-DJOV2W72.js} +2 -2
  9. package/dist/{chunk-KKAINAQ4.js → chunk-EKQ7LM5Q.js} +2 -2
  10. package/dist/{chunk-KXFIN2NL.mjs → chunk-GICOAOUL.mjs} +1 -1
  11. package/dist/{chunk-B73RFLCU.js → chunk-IPLLMUCB.js} +2 -2
  12. package/dist/{chunk-LM4Z5ESW.mjs → chunk-LS6GDBS3.mjs} +1 -1
  13. package/dist/{chunk-DQI2I5KK.js → chunk-NU3VTAH5.js} +1 -2
  14. package/dist/{chunk-WA6S6OWI.js → chunk-O2RWQV3W.js} +2 -2
  15. package/dist/{chunk-TTWSRFD2.mjs → chunk-Q2C7WFUE.mjs} +1 -1
  16. package/dist/{chunk-NOSBV75N.js → chunk-SXKQNYVO.js} +3 -3
  17. package/dist/{chunk-S5T5BM2U.mjs → chunk-T7AKYV2C.mjs} +1 -1
  18. package/dist/{chunk-562NI5FM.mjs → chunk-U5YHJZWT.mjs} +1 -1
  19. package/dist/{chunk-IGOI3JVE.mjs → chunk-YMWDR3XY.mjs} +59 -29
  20. package/dist/executors.js +12 -12
  21. package/dist/executors.mjs +7 -7
  22. package/dist/index.js +15 -15
  23. package/dist/index.mjs +9 -9
  24. package/dist/src/base/base-executor.js +3 -3
  25. package/dist/src/base/base-executor.mjs +2 -2
  26. package/dist/src/executors/build/executor.js +5 -5
  27. package/dist/src/executors/build/executor.mjs +3 -3
  28. package/dist/src/executors/clean/executor.js +5 -5
  29. package/dist/src/executors/clean/executor.mjs +3 -3
  30. package/dist/src/executors/docs/executor.js +5 -5
  31. package/dist/src/executors/docs/executor.mjs +3 -3
  32. package/dist/src/executors/lint/executor.js +5 -5
  33. package/dist/src/executors/lint/executor.mjs +3 -3
  34. package/dist/src/executors/prepare/executor.js +5 -5
  35. package/dist/src/executors/prepare/executor.mjs +3 -3
  36. package/dist/src/helpers/plugin-utilities.d.mts +1 -1
  37. package/dist/src/helpers/plugin-utilities.d.ts +1 -1
  38. package/dist/src/helpers/plugin-utilities.js +5 -5
  39. package/dist/src/helpers/plugin-utilities.mjs +2 -2
  40. package/dist/src/plugin/index.js +4 -4
  41. package/dist/src/plugin/index.mjs +3 -3
  42. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  # Changelog for Powerlines - Nx
4
4
 
5
+ ## [0.11.128](https://github.com/storm-software/powerlines/releases/tag/nx%400.11.128) (01/21/2026)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **powerlines:** Resolve issue using builtins inside code provided to `bundle`
10
+ function
11
+ ([5b57a3e6](https://github.com/storm-software/powerlines/commit/5b57a3e6))
12
+
13
+ ### Updated Dependencies
14
+
15
+ - Updated **powerlines** to **v0.37.72**
16
+
17
+ ## [0.11.127](https://github.com/storm-software/powerlines/releases/tag/nx%400.11.127) (01/21/2026)
18
+
19
+ ### Updated Dependencies
20
+
21
+ - Updated **powerlines** to **v0.37.71**
22
+
5
23
  ## [0.11.126](https://github.com/storm-software/powerlines/releases/tag/nx%400.11.126) (01/21/2026)
6
24
 
7
25
  ### Updated Dependencies
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-IGOI3JVE.mjs';
1
+ import { withExecutor } from './chunk-YMWDR3XY.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
 
4
4
  // src/executors/docs/executor.ts
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkUHUBYHC5_js = require('./chunk-UHUBYHC5.js');
3
+ var chunkBAAOY6SV_js = require('./chunk-BAAOY6SV.js');
4
4
  var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
5
5
 
6
6
  // src/executors/lint/executor.ts
@@ -11,7 +11,7 @@ async function executorFn(context, api) {
11
11
  };
12
12
  }
13
13
  chunkSHUYVCID_js.__name(executorFn, "executorFn");
14
- var executor = chunkUHUBYHC5_js.withExecutor("lint", executorFn);
14
+ var executor = chunkBAAOY6SV_js.withExecutor("lint", executorFn);
15
15
  var executor_default = executor;
16
16
 
17
17
  exports.executorFn = executorFn;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkUHUBYHC5_js = require('./chunk-UHUBYHC5.js');
3
+ var chunkBAAOY6SV_js = require('./chunk-BAAOY6SV.js');
4
4
  var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
5
5
  var defu = require('defu');
6
6
 
@@ -19,7 +19,7 @@ async function executorFn(context, api) {
19
19
  };
20
20
  }
21
21
  chunkSHUYVCID_js.__name(executorFn, "executorFn");
22
- var executor = chunkUHUBYHC5_js.withExecutor("prepare", executorFn);
22
+ var executor = chunkBAAOY6SV_js.withExecutor("prepare", executorFn);
23
23
  var executor_default = executor;
24
24
 
25
25
  exports.executorFn = executorFn;
@@ -1,4 +1,4 @@
1
- import { createNxPlugin } from './chunk-KXFIN2NL.mjs';
1
+ import { createNxPlugin } from './chunk-GICOAOUL.mjs';
2
2
 
3
3
  // src/plugin/index.ts
4
4
  var createNodesV2 = createNxPlugin({
@@ -8,7 +8,6 @@ import { isFunction } from '@stryke/type-checks/is-function';
8
8
  import { isSetObject } from '@stryke/type-checks/is-set-object';
9
9
  import { loadConfig } from 'c12';
10
10
  import defu from 'defu';
11
- import { LogLevelLabel } from '@storm-software/config-tools/types';
12
11
  import '@stryke/fs/json';
13
12
  import '@stryke/fs/list-files';
14
13
  import '@stryke/fs/remove-file';
@@ -80,7 +79,7 @@ function getPrefixedProjectRootHash(name, projectRootHash) {
80
79
  __name(getPrefixedProjectRootHash, "getPrefixedProjectRootHash");
81
80
  async function writeMetaFile(context) {
82
81
  const metaFilePath = joinPaths(context.dataPath, "meta.json");
83
- context.log(LogLevelLabel.DEBUG, `Writing runtime metadata to ${metaFilePath}`);
82
+ context.debug(`Writing runtime metadata to ${metaFilePath}`);
84
83
  await context.fs.write(metaFilePath, JSON.stringify(context.meta, null, 2));
85
84
  }
86
85
  __name(writeMetaFile, "writeMetaFile");
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkDQI2I5KK_js = require('./chunk-DQI2I5KK.js');
3
+ var chunkNU3VTAH5_js = require('./chunk-NU3VTAH5.js');
4
4
  var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
5
5
  var logger = require('@storm-software/config-tools/logger');
6
6
  var baseExecutor = require('@storm-software/workspace-tools/base/base-executor');
@@ -36,7 +36,6 @@ var isType = require('@stryke/path/is-type');
36
36
  var isParentPath = require('@stryke/path/is-parent-path');
37
37
  var prettyBytes = require('@stryke/string-format/pretty-bytes');
38
38
  var tsMorph = require('ts-morph');
39
- var types = require('@storm-software/config-tools/types');
40
39
  var _package = require('@stryke/string-format/package');
41
40
  var superdiff = require('@donedeal0/superdiff');
42
41
  var json = require('@stryke/fs/json');
@@ -44,6 +43,7 @@ var stormJson = require('@stryke/json/storm-json');
44
43
  var titleCase = require('@stryke/string-format/title-case');
45
44
  var exists = require('@stryke/fs/exists');
46
45
  var ts = require('typescript');
46
+ var types = require('@storm-software/config-tools/types');
47
47
  var getEnvPaths = require('@stryke/env/get-env-paths');
48
48
  var hashFiles = require('@stryke/hash/hash-files');
49
49
  var murmurhash = require('@stryke/hash/murmurhash');
@@ -107,11 +107,11 @@ var $__namespace = /*#__PURE__*/_interopNamespace($);
107
107
 
108
108
  // ../powerlines/package.json
109
109
  var package_default = {
110
- version: "0.37.70"};
110
+ version: "0.37.72"};
111
111
 
112
112
  // ../powerlines/src/plugin-utils/modules.ts
113
113
  function isBuiltinModule(context, moduleName) {
114
- const prefix = context.config.output?.builtinPrefix || context.config?.framework || "powerlines";
114
+ const prefix = context.config?.framework || "powerlines";
115
115
  return moduleName.startsWith(`${prefix.replace(/:$/, "")}:`) || Object.keys(context.fs.metadata).filter((key) => context.fs.metadata[key]?.type === "builtin").includes(moduleName);
116
116
  }
117
117
  chunkSHUYVCID_js.__name(isBuiltinModule, "isBuiltinModule");
@@ -310,7 +310,7 @@ var VirtualFileSystemHost = class extends tsMorph.InMemoryFileSystemHost {
310
310
  }
311
311
  };
312
312
  function createProgram(context, override) {
313
- context.log(types.LogLevelLabel.TRACE, `Creating ts-morph Project instance with configuration from: ${context.tsconfig.tsconfigFilePath}.`);
313
+ context.debug(`Creating ts-morph Project instance with configuration from: ${context.tsconfig.tsconfigFilePath}.`);
314
314
  const project = new tsMorph.Project(defu6__default.default(override ?? {}, {
315
315
  skipAddingFilesFromTsConfig: false,
316
316
  tsConfigFilePath: context.tsconfig.tsconfigFilePath,
@@ -378,7 +378,7 @@ async function emitBuiltinTypes(context, files) {
378
378
  context.trace(`Processing emitted type declaration file: ${emittedFile.filePath}`);
379
379
  const filePath = append.appendPath(emittedFile.filePath, context.workspaceConfig.workspaceRoot);
380
380
  if (!filePath.endsWith(".map") && filePathFns.findFileName(filePath) !== "tsconfig.tsbuildinfo" && isParentPath.isParentPath(filePath, context.builtinsPath)) {
381
- const moduleId = `${context.config.output?.builtinPrefix || context.config?.framework || "powerlines"}:${replace.replaceExtension(replace.replacePath(filePath, context.builtinsPath), "", {
381
+ const moduleId = `${context.config.framework}:${replace.replaceExtension(replace.replacePath(filePath, context.builtinsPath), "", {
382
382
  fullExtension: true
383
383
  })}`;
384
384
  const moduleComment = emittedFile.text.match(getModuleCommentBlockRegex(moduleId))?.find((comment) => isSetString.isSetString(comment?.trim()));
@@ -406,7 +406,7 @@ ${value || ""}`.trim();
406
406
  async function callHook(context, key, options, ...args) {
407
407
  const hooks = context.selectHooks(key, options);
408
408
  if (hooks.length > 0) {
409
- context.log(types.LogLevelLabel.DEBUG, ` \u{1F9E9} Calling plugin hook: ${chalk5__default.default.bold.cyanBright(`${key}${options?.order ? ` (${options.order})` : ""}`)}`);
409
+ context.debug(` \u{1F9E9} Calling plugin hook: ${chalk5__default.default.bold.cyanBright(`${key}${options?.order ? ` (${options.order})` : ""}`)}`);
410
410
  const invokeHook = /* @__PURE__ */ chunkSHUYVCID_js.__name(async (hook, hookArgs) => {
411
411
  return Reflect.apply(hook.handler, hook.context, hookArgs);
412
412
  }, "invokeHook");
@@ -478,17 +478,17 @@ async function installPackage(context, packageName, dev = false) {
478
478
  cwd: context.config.projectRoot
479
479
  })) {
480
480
  if (context.config.autoInstall) {
481
- context.log(types.LogLevelLabel.WARN, `The package "${packageName}" is not installed. It will be installed automatically.`);
481
+ context.warn(`The package "${packageName}" is not installed. It will be installed automatically.`);
482
482
  const result = await install.install(packageName, {
483
483
  cwd: context.config.projectRoot,
484
484
  dev
485
485
  });
486
486
  if (isNumber.isNumber(result.exitCode) && result.exitCode > 0) {
487
- context.log(types.LogLevelLabel.ERROR, result.stderr);
487
+ context.error(result.stderr);
488
488
  throw new Error(`An error occurred while installing the package "${packageName}"`);
489
489
  }
490
490
  } else {
491
- context.log(types.LogLevelLabel.WARN, `The package "${packageName}" is not installed. Since the "autoInstall" option is set to false, it will not be installed automatically.`);
491
+ context.warn(`The package "${packageName}" is not installed. Since the "autoInstall" option is set to false, it will not be installed automatically.`);
492
492
  }
493
493
  } else if (_package.hasPackageVersion(packageName) && !process.env.POWERLINES_SKIP_VERSION_CHECK) {
494
494
  const isMatching = await packageFns.doesPackageMatch(_package.getPackageName(packageName), _package.getPackageVersion(packageName), context.config.projectRoot);
@@ -497,7 +497,7 @@ async function installPackage(context, packageName, dev = false) {
497
497
  cwd: context.config.projectRoot
498
498
  });
499
499
  if (!packageListing?.version.startsWith("catalog:") && !packageListing?.version.startsWith("workspace:")) {
500
- context.log(types.LogLevelLabel.WARN, `The package "${_package.getPackageName(packageName)}" is installed but does not match the expected version ${_package.getPackageVersion(packageName)} (installed version: ${packageListing?.version || "<Unknown>"}). Please ensure this is intentional before proceeding. Note: You can skip this validation with the "STORM_STACK_SKIP_VERSION_CHECK" environment variable.`);
500
+ context.warn(`The package "${_package.getPackageName(packageName)}" is installed but does not match the expected version ${_package.getPackageVersion(packageName)} (installed version: ${packageListing?.version || "<Unknown>"}). Please ensure this is intentional before proceeding. Note: You can skip this validation with the "STORM_STACK_SKIP_VERSION_CHECK" environment variable.`);
501
501
  }
502
502
  }
503
503
  }
@@ -506,14 +506,14 @@ chunkSHUYVCID_js.__name(installPackage, "installPackage");
506
506
 
507
507
  // ../powerlines/src/internal/helpers/install-dependencies.ts
508
508
  async function installDependencies(context) {
509
- context.log(types.LogLevelLabel.TRACE, `Checking and installing missing project dependencies.`);
509
+ context.debug(`Checking and installing missing project dependencies.`);
510
510
  context.dependencies ??= {};
511
511
  context.devDependencies ??= {};
512
512
  if (Object.keys(context.dependencies).length === 0 && Object.keys(context.devDependencies).length === 0) {
513
- context.log(types.LogLevelLabel.TRACE, `No dependencies or devDependencies to install. Skipping installation step.`);
513
+ context.debug(`No dependencies or devDependencies to install. Skipping installation step.`);
514
514
  return;
515
515
  }
516
- context.log(types.LogLevelLabel.DEBUG, `The following packages are required:
516
+ context.debug(`The following packages are required:
517
517
  Dependencies:
518
518
  ${Object.entries(context.dependencies).map(([name, version]) => `- ${name}@${String(version)}`).join(" \n")}
519
519
 
@@ -670,14 +670,14 @@ async function resolveTsconfigChanges(context) {
670
670
  }
671
671
  chunkSHUYVCID_js.__name(resolveTsconfigChanges, "resolveTsconfigChanges");
672
672
  async function initializeTsconfig(context) {
673
- context.log(types.LogLevelLabel.TRACE, "Initializing TypeScript configuration (tsconfig.json) for the Powerlines project.");
673
+ context.debug("Initializing TypeScript configuration (tsconfig.json) for the Powerlines project.");
674
674
  if (!packageFns.isPackageExists("typescript")) {
675
675
  throw new Error('The TypeScript package is not installed. Please install the package using the command: "npm install typescript --save-dev"');
676
676
  }
677
677
  const tsconfigFilePath = getTsconfigFilePath(context.workspaceConfig.workspaceRoot, context.config.projectRoot, context.config.tsconfig);
678
678
  context.tsconfig.originalTsconfigJson = await json.readJsonFile(tsconfigFilePath);
679
679
  context.tsconfig.tsconfigJson = await resolveTsconfigChanges(context);
680
- context.log(types.LogLevelLabel.TRACE, "Writing updated TypeScript configuration (tsconfig.json) file to disk.");
680
+ context.debug("Writing updated TypeScript configuration (tsconfig.json) file to disk.");
681
681
  await context.fs.write(tsconfigFilePath, stormJson.StormJSON.stringify(context.tsconfig.tsconfigJson));
682
682
  context.tsconfig = getParsedTypeScriptConfig(context.workspaceConfig.workspaceRoot, context.config.projectRoot, context.config.tsconfig, context.config.tsconfigRaw, context.tsconfig.originalTsconfigJson);
683
683
  }
@@ -719,7 +719,7 @@ async function resolveTsconfig(context) {
719
719
  getChanges(diff);
720
720
  }
721
721
  if (changes.length > 0) {
722
- context.log(types.LogLevelLabel.WARN, `Updating the following configuration values in "${context.tsconfig.tsconfigFilePath}" file:
722
+ context.warn(`Updating the following configuration values in "${context.tsconfig.tsconfigFilePath}" file:
723
723
 
724
724
  ${changes.map((change, i) => `${chalk5__default.default.bold.whiteBright(`${i + 1}. ${titleCase.titleCase(change.status)} the ${change.field} field: `)}
725
725
  ${chalk5__default.default.red(` - Previous: ${change.previous} `)}
@@ -1829,7 +1829,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
1829
1829
  if (isParentPath.isParentPath(normalized, this.#context.builtinsPath)) {
1830
1830
  normalized = replace.replacePath(normalized, this.#context.builtinsPath);
1831
1831
  }
1832
- return normalizeId(normalized, this.#context.config.output.builtinPrefix);
1832
+ return normalizeId(normalized, this.#context.config.framework);
1833
1833
  }
1834
1834
  /**
1835
1835
  * Normalizes a given path by resolving it against the project root, workspace root, and built-ins path.
@@ -1838,7 +1838,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
1838
1838
  * @returns The normalized path.
1839
1839
  */
1840
1840
  #normalizePath(path) {
1841
- return normalizePath(path.includes("{") || path.includes("}") ? replacePathTokens(this.#context, path) : path, this.#context.builtinsPath, this.#context.config.output.builtinPrefix);
1841
+ return normalizePath(path.includes("{") || path.includes("}") ? replacePathTokens(this.#context, path) : path, this.#context.builtinsPath, this.#context.config.framework);
1842
1842
  }
1843
1843
  /**
1844
1844
  * Gets the storage adapter and relative key for a given key.
@@ -2875,8 +2875,7 @@ var PowerlinesContext = class _PowerlinesContext {
2875
2875
  }, {
2876
2876
  output: config.framework ? {
2877
2877
  artifactsPath: `.${config.framework ?? "powerlines"}`,
2878
- dts: join.joinPaths(config.root ?? this.config.projectRoot, `${config.framework ?? "powerlines"}.d.ts`),
2879
- builtinPrefix: config.framework ?? "powerlines"
2878
+ dts: join.joinPaths(config.root ?? this.config.projectRoot, `${config.framework ?? "powerlines"}.d.ts`)
2880
2879
  } : {}
2881
2880
  });
2882
2881
  }
@@ -2888,7 +2887,7 @@ var PowerlinesContext = class _PowerlinesContext {
2888
2887
  * @returns A promise that resolves to the new context.
2889
2888
  */
2890
2889
  static async from(workspaceRoot, config) {
2891
- const context = new _PowerlinesContext(await chunkDQI2I5KK_js.loadWorkspaceConfig(workspaceRoot, config.root));
2890
+ const context = new _PowerlinesContext(await chunkNU3VTAH5_js.loadWorkspaceConfig(workspaceRoot, config.root));
2892
2891
  await context.withUserConfig(config);
2893
2892
  const powerlinesPath = await resolve.resolvePackage("powerlines");
2894
2893
  if (!powerlinesPath) {
@@ -3004,10 +3003,10 @@ var PowerlinesContext = class _PowerlinesContext {
3004
3003
  workspaceRoot: this.workspaceConfig?.workspaceRoot,
3005
3004
  projectRoot: this.config?.projectRoot
3006
3005
  }, {
3007
- maxLength: chunkDQI2I5KK_js.PROJECT_ROOT_HASH_LENGTH
3006
+ maxLength: chunkNU3VTAH5_js.PROJECT_ROOT_HASH_LENGTH
3008
3007
  }),
3009
3008
  configHash: murmurhash.murmurhash(this.config, {
3010
- maxLength: chunkDQI2I5KK_js.CACHE_HASH_LENGTH
3009
+ maxLength: chunkNU3VTAH5_js.CACHE_HASH_LENGTH
3011
3010
  })
3012
3011
  };
3013
3012
  }
@@ -3078,7 +3077,7 @@ var PowerlinesContext = class _PowerlinesContext {
3078
3077
  * Get the path to the data directory for the project
3079
3078
  */
3080
3079
  get dataPath() {
3081
- return join.joinPaths(this.envPaths.data, "projects", chunkDQI2I5KK_js.getPrefixedProjectRootHash(this.config.name, this.meta.projectRootHash));
3080
+ return join.joinPaths(this.envPaths.data, "projects", chunkNU3VTAH5_js.getPrefixedProjectRootHash(this.config.name, this.meta.projectRootHash));
3082
3081
  }
3083
3082
  /**
3084
3083
  * Get the path to the cache directory for the project
@@ -3088,7 +3087,7 @@ var PowerlinesContext = class _PowerlinesContext {
3088
3087
  checksum: this.#checksum,
3089
3088
  config: this.meta.configHash
3090
3089
  }, {
3091
- maxLength: chunkDQI2I5KK_js.CACHE_HASH_LENGTH
3090
+ maxLength: chunkNU3VTAH5_js.CACHE_HASH_LENGTH
3092
3091
  }));
3093
3092
  }
3094
3093
  /**
@@ -3110,6 +3109,29 @@ var PowerlinesContext = class _PowerlinesContext {
3110
3109
  return Object.values(this.fs.metadata).filter((meta) => meta && meta.type === "builtin").map((meta) => meta?.id).filter(Boolean);
3111
3110
  }
3112
3111
  /**
3112
+ * The alias mappings for the project used during module resolution
3113
+ *
3114
+ * @remarks
3115
+ * This includes both the built-in module aliases as well as any custom aliases defined in the build configuration.
3116
+ */
3117
+ get alias() {
3118
+ return this.builtins.reduce((ret, id) => {
3119
+ const moduleId = `${this.config?.framework || "powerlines"}:${id.replace(/^.*?:/, "")}`;
3120
+ if (!ret[moduleId]) {
3121
+ const path = this.fs.paths[id];
3122
+ if (path) {
3123
+ ret[moduleId] = path;
3124
+ }
3125
+ }
3126
+ return ret;
3127
+ }, this.config.build.alias ? Array.isArray(this.config.build.alias) ? this.config.build.alias.reduce((ret, alias) => {
3128
+ if (!ret[alias.find.toString()]) {
3129
+ ret[alias.find.toString()] = alias.replacement;
3130
+ }
3131
+ return ret;
3132
+ }, {}) : this.config.build.alias : {});
3133
+ }
3134
+ /**
3113
3135
  * The {@link Project} instance used for type reflection and module manipulation
3114
3136
  *
3115
3137
  * @see https://ts-morph.com/
@@ -3636,7 +3658,6 @@ var PowerlinesContext = class _PowerlinesContext {
3636
3658
  ".git",
3637
3659
  ".nx",
3638
3660
  ".cache",
3639
- ".storm",
3640
3661
  "tmp",
3641
3662
  "dist"
3642
3663
  ]
@@ -3681,7 +3702,8 @@ var PowerlinesContext = class _PowerlinesContext {
3681
3702
  skipCache: config.skipCache ?? this.config.skipCache ?? false,
3682
3703
  configFile: config.configFile ?? this.config.configFile,
3683
3704
  framework: config.framework ?? this.config.framework ?? "powerlines",
3684
- command: this.config.inlineConfig?.command
3705
+ command: this.config.inlineConfig?.command,
3706
+ alias: this.config.build?.alias ?? config.build?.alias
3685
3707
  };
3686
3708
  if (configCache.has(cacheKey)) {
3687
3709
  const result = configCache.get(cacheKey);
@@ -3705,10 +3727,14 @@ var PowerlinesContext = class _PowerlinesContext {
3705
3727
  projectRoot: cacheKey.projectRoot,
3706
3728
  cacheDir: this.cachePath,
3707
3729
  mode: cacheKey.mode,
3708
- logLevel: config.logLevel || this.config?.logLevel || this.workspaceConfig.logLevel || "info",
3709
- skipCache: cacheKey.skipCache
3730
+ logLevel: config.logLevel || this.config.logLevel || this.workspaceConfig.logLevel || "info",
3731
+ skipCache: cacheKey.skipCache,
3732
+ alias: this.config.build?.alias ? Array.isArray(this.config.build.alias) ? this.config.build.alias.reduce((ret, alias) => {
3733
+ ret[alias.find.toString()] = alias.replacement;
3734
+ return ret;
3735
+ }, {}) : this.config.build.alias : {}
3710
3736
  });
3711
- const userConfig = await chunkDQI2I5KK_js.loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
3737
+ const userConfig = await chunkNU3VTAH5_js.loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
3712
3738
  this.mergeUserConfig(userConfig.config);
3713
3739
  configCache.set(cacheKey, {
3714
3740
  projectJson: this.projectJson,
@@ -3739,7 +3765,6 @@ var PowerlinesContext = class _PowerlinesContext {
3739
3765
  outputPath: cacheKey.projectRoot ? join.joinPaths(this.workspaceConfig?.directories?.build || "dist", cacheKey.projectRoot) : this.workspaceConfig?.directories?.build || "dist",
3740
3766
  artifactsPath: `.${config.framework ?? "powerlines"}`,
3741
3767
  dts: join.joinPaths(cacheKey.projectRoot, `${config.framework ?? "powerlines"}.d.ts`),
3742
- builtinPrefix: config.framework ?? "powerlines",
3743
3768
  assets: [
3744
3769
  {
3745
3770
  glob: "LICENSE"
@@ -3898,6 +3923,11 @@ function createPluginContext(plugin, environment) {
3898
3923
  if (prop === "log" || prop === "logger") {
3899
3924
  return log;
3900
3925
  }
3926
+ if (prop === "fatal") {
3927
+ return (message) => {
3928
+ log(types.LogLevelLabel.FATAL, normalizeMessage(message));
3929
+ };
3930
+ }
3901
3931
  if (prop === "error") {
3902
3932
  return (message) => {
3903
3933
  log(types.LogLevelLabel.ERROR, normalizeMessage(message));
@@ -4186,7 +4216,7 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
4186
4216
  * @returns A promise that resolves to the new context.
4187
4217
  */
4188
4218
  static async from(workspaceRoot, config) {
4189
- const context = new _PowerlinesAPIContext(await chunkDQI2I5KK_js.loadWorkspaceConfig(workspaceRoot, config.root));
4219
+ const context = new _PowerlinesAPIContext(await chunkNU3VTAH5_js.loadWorkspaceConfig(workspaceRoot, config.root));
4190
4220
  await context.withUserConfig(config);
4191
4221
  const powerlinesPath = await resolve.resolvePackage("powerlines");
4192
4222
  if (!powerlinesPath) {
@@ -4322,14 +4352,14 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
4322
4352
  }
4323
4353
  if (Object.keys(this.environments).length === 1) {
4324
4354
  environment = this.environments[Object.keys(this.environments)[0]];
4325
- this.log(types.LogLevelLabel.DEBUG, `Applying the only configured environment: ${chalk5__default.default.bold.cyanBright(environment?.environment.name)}`);
4355
+ this.debug(`Applying the only configured environment: ${chalk5__default.default.bold.cyanBright(environment?.environment.name)}`);
4326
4356
  }
4327
4357
  if (!environment) {
4328
4358
  if (name) {
4329
4359
  throw new Error(`Environment "${name}" not found.`);
4330
4360
  }
4331
4361
  environment = await this.in(createDefaultEnvironment(this.config.userConfig));
4332
- this.log(types.LogLevelLabel.WARN, `No environment specified, and no default environment found. Using a temporary default environment: ${chalk5__default.default.bold.cyanBright(environment?.environment.name)}`);
4362
+ this.warn(`No environment specified, and no default environment found. Using a temporary default environment: ${chalk5__default.default.bold.cyanBright(environment?.environment.name)}`);
4333
4363
  }
4334
4364
  return environment;
4335
4365
  }
@@ -4358,7 +4388,7 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
4358
4388
  let environment;
4359
4389
  if (Object.keys(this.environments).length > 1) {
4360
4390
  environment = await this.in(createEnvironment(GLOBAL_ENVIRONMENT, this.config.userConfig));
4361
- this.log(types.LogLevelLabel.DEBUG, `Combined all ${Object.keys(this.environments).length} environments into a single global context.`);
4391
+ this.debug(`Combined all ${Object.keys(this.environments).length} environments into a single global context.`);
4362
4392
  } else {
4363
4393
  environment = await this.getEnvironment();
4364
4394
  }
@@ -4646,7 +4676,7 @@ ${formatTypes(types)}
4646
4676
  environment: context,
4647
4677
  order: "post"
4648
4678
  });
4649
- await chunkDQI2I5KK_js.writeMetaFile(context);
4679
+ await chunkNU3VTAH5_js.writeMetaFile(context);
4650
4680
  context.persistedMeta = context.meta;
4651
4681
  });
4652
4682
  this.context.debug("\u2714 Powerlines preparation has completed successfully");
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkUHUBYHC5_js = require('./chunk-UHUBYHC5.js');
3
+ var chunkBAAOY6SV_js = require('./chunk-BAAOY6SV.js');
4
4
  var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
5
5
  var defu = require('defu');
6
6
 
@@ -19,7 +19,7 @@ async function executorFn(context, api) {
19
19
  };
20
20
  }
21
21
  chunkSHUYVCID_js.__name(executorFn, "executorFn");
22
- var executor = chunkUHUBYHC5_js.withExecutor("build", executorFn);
22
+ var executor = chunkBAAOY6SV_js.withExecutor("build", executorFn);
23
23
  var executor_default = executor;
24
24
 
25
25
  exports.executorFn = executorFn;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkUHUBYHC5_js = require('./chunk-UHUBYHC5.js');
3
+ var chunkBAAOY6SV_js = require('./chunk-BAAOY6SV.js');
4
4
  var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
5
5
 
6
6
  // src/executors/clean/executor.ts
@@ -11,7 +11,7 @@ async function executorFn(context, api) {
11
11
  };
12
12
  }
13
13
  chunkSHUYVCID_js.__name(executorFn, "executorFn");
14
- var executor = chunkUHUBYHC5_js.withExecutor("clean", executorFn);
14
+ var executor = chunkBAAOY6SV_js.withExecutor("clean", executorFn);
15
15
  var executor_default = executor;
16
16
 
17
17
  exports.executorFn = executorFn;
@@ -1,4 +1,4 @@
1
- import { PROJECT_ROOT_HASH_LENGTH, loadUserConfigFile } from './chunk-OVX2CEXQ.mjs';
1
+ import { PROJECT_ROOT_HASH_LENGTH, loadUserConfigFile } from './chunk-AGZ4P3AS.mjs';
2
2
  import { CONFIG_INPUTS } from './chunk-IC47MFKB.mjs';
3
3
  import { __name } from './chunk-O6YSETKJ.mjs';
4
4
  import { createNodesFromFiles } from '@nx/devkit';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkUHUBYHC5_js = require('./chunk-UHUBYHC5.js');
3
+ var chunkBAAOY6SV_js = require('./chunk-BAAOY6SV.js');
4
4
  var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
5
5
 
6
6
  // src/executors/docs/executor.ts
@@ -11,7 +11,7 @@ async function executorFn(context, api) {
11
11
  };
12
12
  }
13
13
  chunkSHUYVCID_js.__name(executorFn, "executorFn");
14
- var executor = chunkUHUBYHC5_js.withExecutor("docs", executorFn);
14
+ var executor = chunkBAAOY6SV_js.withExecutor("docs", executorFn);
15
15
  var executor_default = executor;
16
16
 
17
17
  exports.executorFn = executorFn;
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-IGOI3JVE.mjs';
1
+ import { withExecutor } from './chunk-YMWDR3XY.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
 
4
4
  // src/executors/lint/executor.ts
@@ -10,7 +10,6 @@ var isFunction = require('@stryke/type-checks/is-function');
10
10
  var isSetObject = require('@stryke/type-checks/is-set-object');
11
11
  var c12 = require('c12');
12
12
  var defu = require('defu');
13
- var types = require('@storm-software/config-tools/types');
14
13
  require('@stryke/fs/json');
15
14
  require('@stryke/fs/list-files');
16
15
  require('@stryke/fs/remove-file');
@@ -86,7 +85,7 @@ function getPrefixedProjectRootHash(name, projectRootHash) {
86
85
  chunkSHUYVCID_js.__name(getPrefixedProjectRootHash, "getPrefixedProjectRootHash");
87
86
  async function writeMetaFile(context) {
88
87
  const metaFilePath = joinPaths.joinPaths(context.dataPath, "meta.json");
89
- context.log(types.LogLevelLabel.DEBUG, `Writing runtime metadata to ${metaFilePath}`);
88
+ context.debug(`Writing runtime metadata to ${metaFilePath}`);
90
89
  await context.fs.write(metaFilePath, JSON.stringify(context.meta, null, 2));
91
90
  }
92
91
  chunkSHUYVCID_js.__name(writeMetaFile, "writeMetaFile");
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkNOSBV75N_js = require('./chunk-NOSBV75N.js');
3
+ var chunkSXKQNYVO_js = require('./chunk-SXKQNYVO.js');
4
4
 
5
5
  // src/plugin/index.ts
6
- var createNodesV2 = chunkNOSBV75N_js.createNxPlugin({
6
+ var createNodesV2 = chunkSXKQNYVO_js.createNxPlugin({
7
7
  framework: "powerlines"
8
8
  });
9
9
 
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-IGOI3JVE.mjs';
1
+ import { withExecutor } from './chunk-YMWDR3XY.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
  import defu from 'defu';
4
4
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkDQI2I5KK_js = require('./chunk-DQI2I5KK.js');
3
+ var chunkNU3VTAH5_js = require('./chunk-NU3VTAH5.js');
4
4
  var chunkIQVSZEQ6_js = require('./chunk-IQVSZEQ6.js');
5
5
  var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
6
6
  var devkit = require('@nx/devkit');
@@ -57,7 +57,7 @@ function createNxPlugin(opts) {
57
57
  debug: !!options?.debug,
58
58
  interopDefault: true,
59
59
  fsCache: joinPaths.joinPaths(envPaths.cache, "nx-plugin", murmurhash.murmurhash(contextV2.workspaceRoot, {
60
- maxLength: chunkDQI2I5KK_js.PROJECT_ROOT_HASH_LENGTH
60
+ maxLength: chunkNU3VTAH5_js.PROJECT_ROOT_HASH_LENGTH
61
61
  }), "jiti"),
62
62
  moduleCache: true
63
63
  });
@@ -72,7 +72,7 @@ function createNxPlugin(opts) {
72
72
  if (opts?.verbose) {
73
73
  console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
74
74
  }
75
- const userConfig = await chunkDQI2I5KK_js.loadUserConfigFile(projectRoot, contextV2.workspaceRoot, resolver, "build", "development", configFile, framework);
75
+ const userConfig = await chunkNU3VTAH5_js.loadUserConfigFile(projectRoot, contextV2.workspaceRoot, resolver, "build", "development", configFile, framework);
76
76
  if (!exists.existsSync(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"))) {
77
77
  if (opts?.verbose) {
78
78
  console.warn(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Cannot find \`package.json\` file in the project's root directory (path: "${joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot)}"). Skipping project configuration.`);
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-IGOI3JVE.mjs';
1
+ import { withExecutor } from './chunk-YMWDR3XY.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
 
4
4
  // src/executors/clean/executor.ts
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-IGOI3JVE.mjs';
1
+ import { withExecutor } from './chunk-YMWDR3XY.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
  import defu from 'defu';
4
4