@powerlines/nx 0.10.26 → 0.10.27

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 +11 -0
  2. package/dist/{chunk-ACE6O62X.js → chunk-2PYUYDPD.js} +11 -11
  3. package/dist/{chunk-4A6Y7MGQ.js → chunk-2W5L3QE3.js} +2 -2
  4. package/dist/{chunk-6WVDB4DZ.js → chunk-2YSHMNU6.js} +2 -2
  5. package/dist/{chunk-BXKPRYNH.mjs → chunk-DMX7BNND.mjs} +22 -14
  6. package/dist/{chunk-PJYRCGK4.js → chunk-ELZO2KAE.js} +2 -2
  7. package/dist/{chunk-A7SAZMVH.mjs → chunk-EWXGKWHK.mjs} +1 -1
  8. package/dist/{chunk-A26KXB6A.js → chunk-I7QVZOFS.js} +2 -2
  9. package/dist/{chunk-6UH4EGMN.mjs → chunk-LH6XKDMA.mjs} +1 -1
  10. package/dist/{chunk-ONWCIW2E.mjs → chunk-LQRLEK65.mjs} +1 -1
  11. package/dist/{chunk-JPTGZQLU.js → chunk-MAMHMV35.js} +22 -14
  12. package/dist/{chunk-IAWSQ5AX.mjs → chunk-U2ZZ4QLS.mjs} +3 -1
  13. package/dist/{chunk-2SFOQMAA.js → chunk-UAUZWBTW.js} +12 -10
  14. package/dist/{chunk-B5L3T46G.js → chunk-V5EQMHJX.js} +2 -2
  15. package/dist/{chunk-Z22G7IM3.mjs → chunk-WAXOGGDZ.mjs} +1 -1
  16. package/dist/{chunk-X6GFPXO4.mjs → chunk-WGIN2BGP.mjs} +11 -11
  17. package/dist/{chunk-KCL7KVDF.mjs → chunk-WNLIJGN4.mjs} +1 -1
  18. package/dist/{chunk-L46S3DXB.mjs → chunk-Y4WK22DY.mjs} +1 -1
  19. package/dist/{chunk-7TPTVC3S.js → chunk-YPABMWPC.js} +2 -2
  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.js +5 -5
  37. package/dist/src/helpers/plugin-utilities.mjs +2 -2
  38. package/dist/src/plugin/index.js +4 -4
  39. package/dist/src/plugin/index.mjs +3 -3
  40. package/dist/src/types/plugin.d.mts +24 -0
  41. package/dist/src/types/plugin.d.ts +24 -0
  42. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  # Changelog for Powerlines - Nx
4
4
 
5
+ ## [0.10.27](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.27) (11/21/2025)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **powerlines:** Fix config file path resolution issue
10
+ ([c201914](https://github.com/storm-software/powerlines/commit/c201914))
11
+
12
+ ### Updated Dependencies
13
+
14
+ - Updated **powerlines** to **v0.23.10**
15
+
5
16
  ## [0.10.26](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.26) (11/20/2025)
6
17
 
7
18
  ### Bug Fixes
@@ -5,6 +5,7 @@ var getConfig = require('@storm-software/config-tools/get-config');
5
5
  var exists = require('@stryke/fs/exists');
6
6
  var append = require('@stryke/path/append');
7
7
  var joinPaths = require('@stryke/path/join-paths');
8
+ var replace = require('@stryke/path/replace');
8
9
  var isFunction = require('@stryke/type-checks/is-function');
9
10
  var isSetObject = require('@stryke/type-checks/is-set-object');
10
11
  var c12 = require('c12');
@@ -13,7 +14,6 @@ var types = require('@storm-software/config-tools/types');
13
14
  require('@stryke/fs/json');
14
15
  require('@stryke/fs/list-files');
15
16
  require('@stryke/fs/remove-file');
16
- require('@stryke/hash/hash-files');
17
17
  require('@stryke/helpers/get-unique');
18
18
  require('@stryke/path/file-path-fns');
19
19
  var kebabCase = require('@stryke/string-format/kebab-case');
@@ -32,23 +32,23 @@ async function loadWorkspaceConfig(workspaceRoot, cwd) {
32
32
  }));
33
33
  }
34
34
  chunkSHUYVCID_js.__name(loadWorkspaceConfig, "loadWorkspaceConfig");
35
- async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode, configFile, framework = "powerlines") {
35
+ async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode = "production", configFile, framework = "powerlines") {
36
36
  let resolvedUserConfig = {};
37
- const resolvedUserConfigFile = configFile && exists.existsSync(configFile) ? configFile : configFile && exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
37
+ let resolvedUserConfigFile;
38
+ if (configFile) {
39
+ resolvedUserConfigFile = exists.existsSync(replace.replacePath(configFile, projectRoot)) ? replace.replacePath(configFile, projectRoot) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), replace.replacePath(configFile, projectRoot))) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), replace.replacePath(configFile, projectRoot)) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile) : void 0;
40
+ }
41
+ if (!resolvedUserConfigFile) {
42
+ resolvedUserConfigFile = exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
43
+ }
38
44
  if (resolvedUserConfigFile) {
39
- let resolvedPath;
40
- try {
41
- resolvedPath = jiti.esmResolve(resolvedUserConfigFile);
42
- } catch {
43
- resolvedPath = resolvedUserConfigFile;
44
- }
45
- const resolved = await jiti.import(resolvedPath);
45
+ const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
46
46
  if (resolved) {
47
47
  let config = {};
48
48
  if (isFunction.isFunction(resolved)) {
49
49
  config = await Promise.resolve(resolved({
50
50
  command,
51
- mode: mode || "production",
51
+ mode,
52
52
  isSsrBuild: false,
53
53
  isPreview: false
54
54
  }));
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk2SFOQMAA_js = require('./chunk-2SFOQMAA.js');
3
+ var chunkUAUZWBTW_js = require('./chunk-UAUZWBTW.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 = chunk2SFOQMAA_js.withExecutor("build", executorFn);
22
+ var executor = chunkUAUZWBTW_js.withExecutor("build", executorFn);
23
23
  var executor_default = executor;
24
24
 
25
25
  exports.executorFn = executorFn;
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkJPTGZQLU_js = require('./chunk-JPTGZQLU.js');
3
+ var chunkMAMHMV35_js = require('./chunk-MAMHMV35.js');
4
4
 
5
5
  // src/plugin/index.ts
6
- var createNodesV2 = chunkJPTGZQLU_js.createNxPlugin({
6
+ var createNodesV2 = chunkMAMHMV35_js.createNxPlugin({
7
7
  framework: "powerlines"
8
8
  });
9
9
 
@@ -1,4 +1,4 @@
1
- import { PROJECT_ROOT_HASH_LENGTH, loadUserConfigFile } from './chunk-X6GFPXO4.mjs';
1
+ import { PROJECT_ROOT_HASH_LENGTH, loadUserConfigFile } from './chunk-WGIN2BGP.mjs';
2
2
  import { CONFIG_INPUTS } from './chunk-LQU7XWFP.mjs';
3
3
  import { __name } from './chunk-O6YSETKJ.mjs';
4
4
  import { createNodesFromFiles } from '@nx/devkit';
@@ -45,6 +45,14 @@ function createNxPlugin(opts) {
45
45
  throw new Error("The cache directory could not be determined.");
46
46
  }
47
47
  const nxJson = readNxJson(contextV2.workspaceRoot);
48
+ const resolver = createJiti(contextV2.workspaceRoot, {
49
+ debug: !!options?.debug,
50
+ interopDefault: true,
51
+ fsCache: joinPaths(envPaths.cache, "nx-plugin", murmurhash(contextV2.workspaceRoot, {
52
+ maxLength: PROJECT_ROOT_HASH_LENGTH
53
+ }), "jiti"),
54
+ moduleCache: true
55
+ });
48
56
  return createNodesFromFiles(async (configFile, _, context) => {
49
57
  try {
50
58
  const projectRoot = getProjectRoot(configFile, contextV2.workspaceRoot);
@@ -53,16 +61,10 @@ function createNxPlugin(opts) {
53
61
  return {};
54
62
  }
55
63
  const root = getRoot(projectRoot, context);
56
- const cacheDir = joinPaths(envPaths.cache, "nx-plugin", murmurhash(contextV2.workspaceRoot, {
57
- maxLength: PROJECT_ROOT_HASH_LENGTH
58
- }));
59
- const jiti = createJiti(joinPaths(contextV2.workspaceRoot, projectRoot), {
60
- interopDefault: true,
61
- fsCache: joinPaths(cacheDir, "jiti"),
62
- moduleCache: true
63
- });
64
- console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
65
- const userConfig = await loadUserConfigFile(projectRoot, contextV2.workspaceRoot, jiti, "build", "development", configFile, framework);
64
+ if (options?.debug) {
65
+ console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
66
+ }
67
+ const userConfig = await loadUserConfigFile(projectRoot, contextV2.workspaceRoot, resolver, "build", "development", configFile, framework);
66
68
  if (!existsSync(joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"))) {
67
69
  console.warn(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Cannot find \`package.json\` file in the project's root directory (path: "${joinPaths(contextV2.workspaceRoot, projectRoot)}"). Skipping project configuration.`);
68
70
  return {};
@@ -74,7 +76,9 @@ function createNxPlugin(opts) {
74
76
  }
75
77
  const packageJson = JSON.parse(packageJsonContent);
76
78
  if (!userConfig.configFile && !packageJson?.storm) {
77
- console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
79
+ if (options?.debug) {
80
+ console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
81
+ }
78
82
  return {};
79
83
  }
80
84
  const projectConfig = getProjectConfigFromProjectRoot(projectRoot, packageJson);
@@ -84,7 +88,9 @@ function createNxPlugin(opts) {
84
88
  }
85
89
  const tsconfig = userConfig?.tsconfig || (existsSync(joinPaths(projectRoot, "tsconfig.json")) ? joinPaths(projectRoot, "tsconfig.json") : void 0);
86
90
  const targets = readTargetsFromPackageJson(packageJson, nxJson, projectRoot, context.workspaceRoot);
87
- console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
91
+ if (options?.debug) {
92
+ console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
93
+ }
88
94
  if (options?.clean !== false && !targets[options?.clean?.targetName || "clean"]) {
89
95
  targets[options?.clean?.targetName || "clean"] = {
90
96
  inputs: Array.isArray(options?.clean?.inputs) ? options.clean.inputs : withNamedInputs(targetInputs, [
@@ -314,7 +320,9 @@ function createNxPlugin(opts) {
314
320
  addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
315
321
  overwrite: true
316
322
  });
317
- console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
323
+ if (options?.debug) {
324
+ console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
325
+ }
318
326
  return {
319
327
  projects: {
320
328
  [root]: defu(projectConfig, {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk2SFOQMAA_js = require('./chunk-2SFOQMAA.js');
3
+ var chunkUAUZWBTW_js = require('./chunk-UAUZWBTW.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 = chunk2SFOQMAA_js.withExecutor("clean", executorFn);
14
+ var executor = chunkUAUZWBTW_js.withExecutor("clean", executorFn);
15
15
  var executor_default = executor;
16
16
 
17
17
  exports.executorFn = executorFn;
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-IAWSQ5AX.mjs';
1
+ import { withExecutor } from './chunk-U2ZZ4QLS.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
 
4
4
  // src/executors/lint/executor.ts
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk2SFOQMAA_js = require('./chunk-2SFOQMAA.js');
3
+ var chunkUAUZWBTW_js = require('./chunk-UAUZWBTW.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 = chunk2SFOQMAA_js.withExecutor("docs", executorFn);
14
+ var executor = chunkUAUZWBTW_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-IAWSQ5AX.mjs';
1
+ import { withExecutor } from './chunk-U2ZZ4QLS.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
  import defu from 'defu';
4
4
 
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-IAWSQ5AX.mjs';
1
+ import { withExecutor } from './chunk-U2ZZ4QLS.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
 
4
4
  // src/executors/clean/executor.ts
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkACE6O62X_js = require('./chunk-ACE6O62X.js');
3
+ var chunk2PYUYDPD_js = require('./chunk-2PYUYDPD.js');
4
4
  var chunkVIU4CXA3_js = require('./chunk-VIU4CXA3.js');
5
5
  var chunkSHUYVCID_js = require('./chunk-SHUYVCID.js');
6
6
  var devkit = require('@nx/devkit');
@@ -51,6 +51,14 @@ function createNxPlugin(opts) {
51
51
  throw new Error("The cache directory could not be determined.");
52
52
  }
53
53
  const nxJson$1 = nxJson_js.readNxJson(contextV2.workspaceRoot);
54
+ const resolver = jiti.createJiti(contextV2.workspaceRoot, {
55
+ debug: !!options?.debug,
56
+ interopDefault: true,
57
+ fsCache: joinPaths.joinPaths(envPaths.cache, "nx-plugin", murmurhash.murmurhash(contextV2.workspaceRoot, {
58
+ maxLength: chunk2PYUYDPD_js.PROJECT_ROOT_HASH_LENGTH
59
+ }), "jiti"),
60
+ moduleCache: true
61
+ });
54
62
  return devkit.createNodesFromFiles(async (configFile, _, context) => {
55
63
  try {
56
64
  const projectRoot = pluginHelpers.getProjectRoot(configFile, contextV2.workspaceRoot);
@@ -59,16 +67,10 @@ function createNxPlugin(opts) {
59
67
  return {};
60
68
  }
61
69
  const root = pluginHelpers.getRoot(projectRoot, context);
62
- const cacheDir = joinPaths.joinPaths(envPaths.cache, "nx-plugin", murmurhash.murmurhash(contextV2.workspaceRoot, {
63
- maxLength: chunkACE6O62X_js.PROJECT_ROOT_HASH_LENGTH
64
- }));
65
- const jiti$1 = jiti.createJiti(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot), {
66
- interopDefault: true,
67
- fsCache: joinPaths.joinPaths(cacheDir, "jiti"),
68
- moduleCache: true
69
- });
70
- console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
71
- const userConfig = await chunkACE6O62X_js.loadUserConfigFile(projectRoot, contextV2.workspaceRoot, jiti$1, "build", "development", configFile, framework);
70
+ if (options?.debug) {
71
+ console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Loading ${framework} user configuration for project in root directory ${projectRoot}.`);
72
+ }
73
+ const userConfig = await chunk2PYUYDPD_js.loadUserConfigFile(projectRoot, contextV2.workspaceRoot, resolver, "build", "development", configFile, framework);
72
74
  if (!exists.existsSync(joinPaths.joinPaths(contextV2.workspaceRoot, projectRoot, "package.json"))) {
73
75
  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.`);
74
76
  return {};
@@ -80,7 +82,9 @@ function createNxPlugin(opts) {
80
82
  }
81
83
  const packageJson = JSON.parse(packageJsonContent);
82
84
  if (!userConfig.configFile && !packageJson?.storm) {
83
- console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
85
+ if (options?.debug) {
86
+ console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
87
+ }
84
88
  return {};
85
89
  }
86
90
  const projectConfig = pluginHelpers.getProjectConfigFromProjectRoot(projectRoot, packageJson);
@@ -90,7 +94,9 @@ function createNxPlugin(opts) {
90
94
  }
91
95
  const tsconfig = userConfig?.tsconfig || (exists.existsSync(joinPaths.joinPaths(projectRoot, "tsconfig.json")) ? joinPaths.joinPaths(projectRoot, "tsconfig.json") : void 0);
92
96
  const targets = packageJson_js.readTargetsFromPackageJson(packageJson, nxJson$1, projectRoot, context.workspaceRoot);
93
- console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
97
+ if (options?.debug) {
98
+ console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Preparing Nx targets for project in root directory ${projectRoot}.`);
99
+ }
94
100
  if (options?.clean !== false && !targets[options?.clean?.targetName || "clean"]) {
95
101
  targets[options?.clean?.targetName || "clean"] = {
96
102
  inputs: Array.isArray(options?.clean?.inputs) ? options.clean.inputs : nxJson.withNamedInputs(targetInputs, [
@@ -320,7 +326,9 @@ function createNxPlugin(opts) {
320
326
  projectTags.addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
321
327
  overwrite: true
322
328
  });
323
- console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
329
+ if (options?.debug) {
330
+ console.debug(`[${name}] - ${(/* @__PURE__ */ new Date()).toISOString()} - Completed preparing Nx configuration for project in root directory ${projectRoot}.`);
331
+ }
324
332
  return {
325
333
  projects: {
326
334
  [root]: defu__default.default(projectConfig, {
@@ -1,4 +1,4 @@
1
- import { loadWorkspaceConfig, CACHE_HASH_LENGTH, PROJECT_ROOT_HASH_LENGTH, getPrefixedProjectRootHash, loadUserConfigFile, writeMetaFile } from './chunk-X6GFPXO4.mjs';
1
+ import { loadWorkspaceConfig, CACHE_HASH_LENGTH, PROJECT_ROOT_HASH_LENGTH, getPrefixedProjectRootHash, loadUserConfigFile, writeMetaFile } from './chunk-WGIN2BGP.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
  import { getLogFn, getLogLevel, writeError } from '@storm-software/config-tools/logger';
4
4
  import { withRunExecutor } from '@storm-software/workspace-tools/base/base-executor';
@@ -624,6 +624,7 @@ function createDefaultEnvironment(userConfig) {
624
624
  __name(createDefaultEnvironment, "createDefaultEnvironment");
625
625
  function resolveOptions(options) {
626
626
  return defu5(options, {
627
+ debug: options.logLevel === "trace",
627
628
  interopDefault: true,
628
629
  fsCache: options.mode !== "development" ? joinPaths$1(options.cacheDir, "jiti") : false,
629
630
  moduleCache: options.mode !== "development"
@@ -3061,6 +3062,7 @@ var PowerlinesContext = class _PowerlinesContext {
3061
3062
  projectRoot: cacheKey.projectRoot,
3062
3063
  cacheDir: this.cachePath,
3063
3064
  mode: cacheKey.mode,
3065
+ logLevel: config.logLevel || this.config?.logLevel || this.workspaceConfig.logLevel || "info",
3064
3066
  skipCache: cacheKey.skipCache
3065
3067
  });
3066
3068
  const userConfig = await loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkACE6O62X_js = require('./chunk-ACE6O62X.js');
3
+ var chunk2PYUYDPD_js = require('./chunk-2PYUYDPD.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');
@@ -654,6 +654,7 @@ function createDefaultEnvironment(userConfig) {
654
654
  chunkSHUYVCID_js.__name(createDefaultEnvironment, "createDefaultEnvironment");
655
655
  function resolveOptions(options) {
656
656
  return defu5__default.default(options, {
657
+ debug: options.logLevel === "trace",
657
658
  interopDefault: true,
658
659
  fsCache: options.mode !== "development" ? joinPaths.joinPaths(options.cacheDir, "jiti") : false,
659
660
  moduleCache: options.mode !== "development"
@@ -2677,7 +2678,7 @@ var PowerlinesContext = class _PowerlinesContext {
2677
2678
  * @returns A promise that resolves to the new context.
2678
2679
  */
2679
2680
  static async from(workspaceRoot, config) {
2680
- const context = new _PowerlinesContext(await chunkACE6O62X_js.loadWorkspaceConfig(workspaceRoot, config.root));
2681
+ const context = new _PowerlinesContext(await chunk2PYUYDPD_js.loadWorkspaceConfig(workspaceRoot, config.root));
2681
2682
  await context.withUserConfig(config);
2682
2683
  context.powerlinesPath = await resolve.resolvePackage("powerlines");
2683
2684
  if (!context.powerlinesPath) {
@@ -2774,10 +2775,10 @@ var PowerlinesContext = class _PowerlinesContext {
2774
2775
  workspaceRoot: this.workspaceConfig?.workspaceRoot,
2775
2776
  projectRoot: this.config?.projectRoot
2776
2777
  }, {
2777
- maxLength: chunkACE6O62X_js.PROJECT_ROOT_HASH_LENGTH
2778
+ maxLength: chunk2PYUYDPD_js.PROJECT_ROOT_HASH_LENGTH
2778
2779
  }),
2779
2780
  configHash: murmurhash.murmurhash(this.config, {
2780
- maxLength: chunkACE6O62X_js.CACHE_HASH_LENGTH
2781
+ maxLength: chunk2PYUYDPD_js.CACHE_HASH_LENGTH
2781
2782
  })
2782
2783
  };
2783
2784
  }
@@ -2837,7 +2838,7 @@ var PowerlinesContext = class _PowerlinesContext {
2837
2838
  * Get the path to the data directory for the project
2838
2839
  */
2839
2840
  get dataPath() {
2840
- return join.joinPaths(this.envPaths.data, "projects", chunkACE6O62X_js.getPrefixedProjectRootHash(this.config.name, this.meta.projectRootHash));
2841
+ return join.joinPaths(this.envPaths.data, "projects", chunk2PYUYDPD_js.getPrefixedProjectRootHash(this.config.name, this.meta.projectRootHash));
2841
2842
  }
2842
2843
  /**
2843
2844
  * Get the path to the cache directory for the project
@@ -2847,7 +2848,7 @@ var PowerlinesContext = class _PowerlinesContext {
2847
2848
  checksum: this.#checksum,
2848
2849
  config: this.meta.configHash
2849
2850
  }, {
2850
- maxLength: chunkACE6O62X_js.CACHE_HASH_LENGTH
2851
+ maxLength: chunk2PYUYDPD_js.CACHE_HASH_LENGTH
2851
2852
  }));
2852
2853
  }
2853
2854
  /**
@@ -3091,9 +3092,10 @@ var PowerlinesContext = class _PowerlinesContext {
3091
3092
  projectRoot: cacheKey.projectRoot,
3092
3093
  cacheDir: this.cachePath,
3093
3094
  mode: cacheKey.mode,
3095
+ logLevel: config.logLevel || this.config?.logLevel || this.workspaceConfig.logLevel || "info",
3094
3096
  skipCache: cacheKey.skipCache
3095
3097
  });
3096
- const userConfig = await chunkACE6O62X_js.loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
3098
+ const userConfig = await chunk2PYUYDPD_js.loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
3097
3099
  this.mergeUserConfig(userConfig.config);
3098
3100
  configCache.set(cacheKey, {
3099
3101
  projectJson: this.projectJson,
@@ -3452,7 +3454,7 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
3452
3454
  * @returns A promise that resolves to the new context.
3453
3455
  */
3454
3456
  static async from(workspaceRoot, config) {
3455
- const context = new _PowerlinesAPIContext(await chunkACE6O62X_js.loadWorkspaceConfig(workspaceRoot, config.root));
3457
+ const context = new _PowerlinesAPIContext(await chunk2PYUYDPD_js.loadWorkspaceConfig(workspaceRoot, config.root));
3456
3458
  await context.withUserConfig(config);
3457
3459
  context.powerlinesPath = await resolve.resolvePackage("powerlines");
3458
3460
  if (!context.powerlinesPath) {
@@ -3640,7 +3642,7 @@ ${context.entry.map((entry) => `- ${entry.input.file || entry.file}${entry.outpu
3640
3642
 
3641
3643
  ${console.formatLogMessage(context.config)}`);
3642
3644
  context.fs[__VFS_PATCH__]();
3643
- await chunkACE6O62X_js.writeMetaFile(context);
3645
+ await chunk2PYUYDPD_js.writeMetaFile(context);
3644
3646
  context.persistedMeta = context.meta;
3645
3647
  if (!exists.existsSync(context.cachePath)) {
3646
3648
  await helpers.createDirectory(context.cachePath);
@@ -3770,7 +3772,7 @@ ${formatTypes(generatedTypes)}
3770
3772
  throw new Error("Failed to parse the TypeScript configuration file.");
3771
3773
  }
3772
3774
  await this.callPostHook(context, "prepare");
3773
- await chunkACE6O62X_js.writeMetaFile(context);
3775
+ await chunk2PYUYDPD_js.writeMetaFile(context);
3774
3776
  context.fs[__VFS_REVERT__]();
3775
3777
  });
3776
3778
  this.context.log(types.LogLevelLabel.INFO, "Powerlines API has been prepared successfully");
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk2SFOQMAA_js = require('./chunk-2SFOQMAA.js');
3
+ var chunkUAUZWBTW_js = require('./chunk-UAUZWBTW.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 = chunk2SFOQMAA_js.withExecutor("prepare", executorFn);
22
+ var executor = chunkUAUZWBTW_js.withExecutor("prepare", executorFn);
23
23
  var executor_default = executor;
24
24
 
25
25
  exports.executorFn = executorFn;
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-IAWSQ5AX.mjs';
1
+ import { withExecutor } from './chunk-U2ZZ4QLS.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
 
4
4
  // src/executors/docs/executor.ts
@@ -3,6 +3,7 @@ import { getWorkspaceConfig } from '@storm-software/config-tools/get-config';
3
3
  import { existsSync } from '@stryke/fs/exists';
4
4
  import { appendPath } from '@stryke/path/append';
5
5
  import { joinPaths } from '@stryke/path/join-paths';
6
+ import { replacePath } from '@stryke/path/replace';
6
7
  import { isFunction } from '@stryke/type-checks/is-function';
7
8
  import { isSetObject } from '@stryke/type-checks/is-set-object';
8
9
  import { loadConfig } from 'c12';
@@ -11,7 +12,6 @@ import { LogLevelLabel } from '@storm-software/config-tools/types';
11
12
  import '@stryke/fs/json';
12
13
  import '@stryke/fs/list-files';
13
14
  import '@stryke/fs/remove-file';
14
- import '@stryke/hash/hash-files';
15
15
  import '@stryke/helpers/get-unique';
16
16
  import '@stryke/path/file-path-fns';
17
17
  import { kebabCase } from '@stryke/string-format/kebab-case';
@@ -26,23 +26,23 @@ async function loadWorkspaceConfig(workspaceRoot, cwd) {
26
26
  }));
27
27
  }
28
28
  __name(loadWorkspaceConfig, "loadWorkspaceConfig");
29
- async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode, configFile, framework = "powerlines") {
29
+ async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode = "production", configFile, framework = "powerlines") {
30
30
  let resolvedUserConfig = {};
31
- const resolvedUserConfigFile = configFile && existsSync(configFile) ? configFile : configFile && existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths(appendPath(projectRoot, workspaceRoot), configFile) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
31
+ let resolvedUserConfigFile;
32
+ if (configFile) {
33
+ resolvedUserConfigFile = existsSync(replacePath(configFile, projectRoot)) ? replacePath(configFile, projectRoot) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), replacePath(configFile, projectRoot))) ? joinPaths(appendPath(projectRoot, workspaceRoot), replacePath(configFile, projectRoot)) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths(appendPath(projectRoot, workspaceRoot), configFile) : void 0;
34
+ }
35
+ if (!resolvedUserConfigFile) {
36
+ resolvedUserConfigFile = existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.ts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.js`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.${mode}.config.mjs`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
37
+ }
32
38
  if (resolvedUserConfigFile) {
33
- let resolvedPath;
34
- try {
35
- resolvedPath = jiti.esmResolve(resolvedUserConfigFile);
36
- } catch {
37
- resolvedPath = resolvedUserConfigFile;
38
- }
39
- const resolved = await jiti.import(resolvedPath);
39
+ const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));
40
40
  if (resolved) {
41
41
  let config = {};
42
42
  if (isFunction(resolved)) {
43
43
  config = await Promise.resolve(resolved({
44
44
  command,
45
- mode: mode || "production",
45
+ mode,
46
46
  isSsrBuild: false,
47
47
  isPreview: false
48
48
  }));
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-IAWSQ5AX.mjs';
1
+ import { withExecutor } from './chunk-U2ZZ4QLS.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
  import defu from 'defu';
4
4
 
@@ -1,4 +1,4 @@
1
- import { createNxPlugin } from './chunk-BXKPRYNH.mjs';
1
+ import { createNxPlugin } from './chunk-DMX7BNND.mjs';
2
2
 
3
3
  // src/plugin/index.ts
4
4
  var createNodesV2 = createNxPlugin({
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk2SFOQMAA_js = require('./chunk-2SFOQMAA.js');
3
+ var chunkUAUZWBTW_js = require('./chunk-UAUZWBTW.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 = chunk2SFOQMAA_js.withExecutor("lint", executorFn);
14
+ var executor = chunkUAUZWBTW_js.withExecutor("lint", executorFn);
15
15
  var executor_default = executor;
16
16
 
17
17
  exports.executorFn = executorFn;
package/dist/executors.js CHANGED
@@ -1,34 +1,34 @@
1
1
  'use strict';
2
2
 
3
3
  require('./chunk-XO62WWX4.js');
4
- var chunk7TPTVC3S_js = require('./chunk-7TPTVC3S.js');
5
- var chunkB5L3T46G_js = require('./chunk-B5L3T46G.js');
6
- var chunk4A6Y7MGQ_js = require('./chunk-4A6Y7MGQ.js');
7
- var chunkPJYRCGK4_js = require('./chunk-PJYRCGK4.js');
8
- var chunkA26KXB6A_js = require('./chunk-A26KXB6A.js');
9
- require('./chunk-2SFOQMAA.js');
10
- require('./chunk-ACE6O62X.js');
4
+ var chunkYPABMWPC_js = require('./chunk-YPABMWPC.js');
5
+ var chunkV5EQMHJX_js = require('./chunk-V5EQMHJX.js');
6
+ var chunk2W5L3QE3_js = require('./chunk-2W5L3QE3.js');
7
+ var chunkELZO2KAE_js = require('./chunk-ELZO2KAE.js');
8
+ var chunkI7QVZOFS_js = require('./chunk-I7QVZOFS.js');
9
+ require('./chunk-UAUZWBTW.js');
10
+ require('./chunk-2PYUYDPD.js');
11
11
  require('./chunk-SHUYVCID.js');
12
12
 
13
13
 
14
14
 
15
15
  Object.defineProperty(exports, "lint", {
16
16
  enumerable: true,
17
- get: function () { return chunk7TPTVC3S_js.executor_default; }
17
+ get: function () { return chunkYPABMWPC_js.executor_default; }
18
18
  });
19
19
  Object.defineProperty(exports, "prepare", {
20
20
  enumerable: true,
21
- get: function () { return chunkB5L3T46G_js.executor_default; }
21
+ get: function () { return chunkV5EQMHJX_js.executor_default; }
22
22
  });
23
23
  Object.defineProperty(exports, "build", {
24
24
  enumerable: true,
25
- get: function () { return chunk4A6Y7MGQ_js.executor_default; }
25
+ get: function () { return chunk2W5L3QE3_js.executor_default; }
26
26
  });
27
27
  Object.defineProperty(exports, "clean", {
28
28
  enumerable: true,
29
- get: function () { return chunkPJYRCGK4_js.executor_default; }
29
+ get: function () { return chunkELZO2KAE_js.executor_default; }
30
30
  });
31
31
  Object.defineProperty(exports, "docs", {
32
32
  enumerable: true,
33
- get: function () { return chunkA26KXB6A_js.executor_default; }
33
+ get: function () { return chunkI7QVZOFS_js.executor_default; }
34
34
  });
@@ -1,9 +1,9 @@
1
1
  import './chunk-UV4HQO3Y.mjs';
2
- export { executor_default as lint } from './chunk-A7SAZMVH.mjs';
3
- export { executor_default as prepare } from './chunk-KCL7KVDF.mjs';
4
- export { executor_default as build } from './chunk-6UH4EGMN.mjs';
5
- export { executor_default as clean } from './chunk-ONWCIW2E.mjs';
6
- export { executor_default as docs } from './chunk-Z22G7IM3.mjs';
7
- import './chunk-IAWSQ5AX.mjs';
8
- import './chunk-X6GFPXO4.mjs';
2
+ export { executor_default as lint } from './chunk-EWXGKWHK.mjs';
3
+ export { executor_default as prepare } from './chunk-WNLIJGN4.mjs';
4
+ export { executor_default as build } from './chunk-LH6XKDMA.mjs';
5
+ export { executor_default as clean } from './chunk-LQRLEK65.mjs';
6
+ export { executor_default as docs } from './chunk-WAXOGGDZ.mjs';
7
+ import './chunk-U2ZZ4QLS.mjs';
8
+ import './chunk-WGIN2BGP.mjs';
9
9
  import './chunk-O6YSETKJ.mjs';
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
1
  'use strict';
2
2
 
3
- var chunk6WVDB4DZ_js = require('./chunk-6WVDB4DZ.js');
3
+ var chunk2YSHMNU6_js = require('./chunk-2YSHMNU6.js');
4
4
  require('./chunk-XO62WWX4.js');
5
- var chunk7TPTVC3S_js = require('./chunk-7TPTVC3S.js');
6
- var chunkB5L3T46G_js = require('./chunk-B5L3T46G.js');
7
- var chunk4A6Y7MGQ_js = require('./chunk-4A6Y7MGQ.js');
8
- var chunkPJYRCGK4_js = require('./chunk-PJYRCGK4.js');
9
- var chunkA26KXB6A_js = require('./chunk-A26KXB6A.js');
5
+ var chunkYPABMWPC_js = require('./chunk-YPABMWPC.js');
6
+ var chunkV5EQMHJX_js = require('./chunk-V5EQMHJX.js');
7
+ var chunk2W5L3QE3_js = require('./chunk-2W5L3QE3.js');
8
+ var chunkELZO2KAE_js = require('./chunk-ELZO2KAE.js');
9
+ var chunkI7QVZOFS_js = require('./chunk-I7QVZOFS.js');
10
10
  require('./chunk-N2YKXZ5R.js');
11
11
  var chunkWUJKJGEW_js = require('./chunk-WUJKJGEW.js');
12
- require('./chunk-2SFOQMAA.js');
13
- require('./chunk-JPTGZQLU.js');
14
- require('./chunk-ACE6O62X.js');
12
+ require('./chunk-UAUZWBTW.js');
13
+ require('./chunk-MAMHMV35.js');
14
+ require('./chunk-2PYUYDPD.js');
15
15
  require('./chunk-VIU4CXA3.js');
16
16
  require('./chunk-SHUYVCID.js');
17
17
 
@@ -19,27 +19,27 @@ require('./chunk-SHUYVCID.js');
19
19
 
20
20
  Object.defineProperty(exports, "createNodesV2", {
21
21
  enumerable: true,
22
- get: function () { return chunk6WVDB4DZ_js.createNodesV2; }
22
+ get: function () { return chunk2YSHMNU6_js.createNodesV2; }
23
23
  });
24
24
  Object.defineProperty(exports, "lint", {
25
25
  enumerable: true,
26
- get: function () { return chunk7TPTVC3S_js.executor_default; }
26
+ get: function () { return chunkYPABMWPC_js.executor_default; }
27
27
  });
28
28
  Object.defineProperty(exports, "prepare", {
29
29
  enumerable: true,
30
- get: function () { return chunkB5L3T46G_js.executor_default; }
30
+ get: function () { return chunkV5EQMHJX_js.executor_default; }
31
31
  });
32
32
  Object.defineProperty(exports, "build", {
33
33
  enumerable: true,
34
- get: function () { return chunk4A6Y7MGQ_js.executor_default; }
34
+ get: function () { return chunk2W5L3QE3_js.executor_default; }
35
35
  });
36
36
  Object.defineProperty(exports, "clean", {
37
37
  enumerable: true,
38
- get: function () { return chunkPJYRCGK4_js.executor_default; }
38
+ get: function () { return chunkELZO2KAE_js.executor_default; }
39
39
  });
40
40
  Object.defineProperty(exports, "docs", {
41
41
  enumerable: true,
42
- get: function () { return chunkA26KXB6A_js.executor_default; }
42
+ get: function () { return chunkI7QVZOFS_js.executor_default; }
43
43
  });
44
44
  Object.defineProperty(exports, "sync", {
45
45
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -1,14 +1,14 @@
1
- export { createNodesV2 } from './chunk-L46S3DXB.mjs';
1
+ export { createNodesV2 } from './chunk-Y4WK22DY.mjs';
2
2
  import './chunk-UV4HQO3Y.mjs';
3
- export { executor_default as lint } from './chunk-A7SAZMVH.mjs';
4
- export { executor_default as prepare } from './chunk-KCL7KVDF.mjs';
5
- export { executor_default as build } from './chunk-6UH4EGMN.mjs';
6
- export { executor_default as clean } from './chunk-ONWCIW2E.mjs';
7
- export { executor_default as docs } from './chunk-Z22G7IM3.mjs';
3
+ export { executor_default as lint } from './chunk-EWXGKWHK.mjs';
4
+ export { executor_default as prepare } from './chunk-WNLIJGN4.mjs';
5
+ export { executor_default as build } from './chunk-LH6XKDMA.mjs';
6
+ export { executor_default as clean } from './chunk-LQRLEK65.mjs';
7
+ export { executor_default as docs } from './chunk-WAXOGGDZ.mjs';
8
8
  import './chunk-23KFTIT2.mjs';
9
9
  export { generator_default as sync, generatorFn as syncGenerator } from './chunk-326QB2VK.mjs';
10
- import './chunk-IAWSQ5AX.mjs';
11
- import './chunk-BXKPRYNH.mjs';
12
- import './chunk-X6GFPXO4.mjs';
10
+ import './chunk-U2ZZ4QLS.mjs';
11
+ import './chunk-DMX7BNND.mjs';
12
+ import './chunk-WGIN2BGP.mjs';
13
13
  import './chunk-LQU7XWFP.mjs';
14
14
  import './chunk-O6YSETKJ.mjs';
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunk2SFOQMAA_js = require('../../chunk-2SFOQMAA.js');
4
- require('../../chunk-ACE6O62X.js');
3
+ var chunkUAUZWBTW_js = require('../../chunk-UAUZWBTW.js');
4
+ require('../../chunk-2PYUYDPD.js');
5
5
  require('../../chunk-SHUYVCID.js');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "withExecutor", {
10
10
  enumerable: true,
11
- get: function () { return chunk2SFOQMAA_js.withExecutor; }
11
+ get: function () { return chunkUAUZWBTW_js.withExecutor; }
12
12
  });
@@ -1,3 +1,3 @@
1
- export { withExecutor } from '../../chunk-IAWSQ5AX.mjs';
2
- import '../../chunk-X6GFPXO4.mjs';
1
+ export { withExecutor } from '../../chunk-U2ZZ4QLS.mjs';
2
+ import '../../chunk-WGIN2BGP.mjs';
3
3
  import '../../chunk-O6YSETKJ.mjs';
@@ -2,18 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunk4A6Y7MGQ_js = require('../../../chunk-4A6Y7MGQ.js');
6
- require('../../../chunk-2SFOQMAA.js');
7
- require('../../../chunk-ACE6O62X.js');
5
+ var chunk2W5L3QE3_js = require('../../../chunk-2W5L3QE3.js');
6
+ require('../../../chunk-UAUZWBTW.js');
7
+ require('../../../chunk-2PYUYDPD.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
10
10
 
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunk4A6Y7MGQ_js.executor_default; }
14
+ get: function () { return chunk2W5L3QE3_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunk4A6Y7MGQ_js.executorFn; }
18
+ get: function () { return chunk2W5L3QE3_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-6UH4EGMN.mjs';
2
- import '../../../chunk-IAWSQ5AX.mjs';
3
- import '../../../chunk-X6GFPXO4.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-LH6XKDMA.mjs';
2
+ import '../../../chunk-U2ZZ4QLS.mjs';
3
+ import '../../../chunk-WGIN2BGP.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,18 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkPJYRCGK4_js = require('../../../chunk-PJYRCGK4.js');
6
- require('../../../chunk-2SFOQMAA.js');
7
- require('../../../chunk-ACE6O62X.js');
5
+ var chunkELZO2KAE_js = require('../../../chunk-ELZO2KAE.js');
6
+ require('../../../chunk-UAUZWBTW.js');
7
+ require('../../../chunk-2PYUYDPD.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
10
10
 
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkPJYRCGK4_js.executor_default; }
14
+ get: function () { return chunkELZO2KAE_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkPJYRCGK4_js.executorFn; }
18
+ get: function () { return chunkELZO2KAE_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-ONWCIW2E.mjs';
2
- import '../../../chunk-IAWSQ5AX.mjs';
3
- import '../../../chunk-X6GFPXO4.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-LQRLEK65.mjs';
2
+ import '../../../chunk-U2ZZ4QLS.mjs';
3
+ import '../../../chunk-WGIN2BGP.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,18 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkA26KXB6A_js = require('../../../chunk-A26KXB6A.js');
6
- require('../../../chunk-2SFOQMAA.js');
7
- require('../../../chunk-ACE6O62X.js');
5
+ var chunkI7QVZOFS_js = require('../../../chunk-I7QVZOFS.js');
6
+ require('../../../chunk-UAUZWBTW.js');
7
+ require('../../../chunk-2PYUYDPD.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
10
10
 
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkA26KXB6A_js.executor_default; }
14
+ get: function () { return chunkI7QVZOFS_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkA26KXB6A_js.executorFn; }
18
+ get: function () { return chunkI7QVZOFS_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-Z22G7IM3.mjs';
2
- import '../../../chunk-IAWSQ5AX.mjs';
3
- import '../../../chunk-X6GFPXO4.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-WAXOGGDZ.mjs';
2
+ import '../../../chunk-U2ZZ4QLS.mjs';
3
+ import '../../../chunk-WGIN2BGP.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,18 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunk7TPTVC3S_js = require('../../../chunk-7TPTVC3S.js');
6
- require('../../../chunk-2SFOQMAA.js');
7
- require('../../../chunk-ACE6O62X.js');
5
+ var chunkYPABMWPC_js = require('../../../chunk-YPABMWPC.js');
6
+ require('../../../chunk-UAUZWBTW.js');
7
+ require('../../../chunk-2PYUYDPD.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
10
10
 
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunk7TPTVC3S_js.executor_default; }
14
+ get: function () { return chunkYPABMWPC_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunk7TPTVC3S_js.executorFn; }
18
+ get: function () { return chunkYPABMWPC_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-A7SAZMVH.mjs';
2
- import '../../../chunk-IAWSQ5AX.mjs';
3
- import '../../../chunk-X6GFPXO4.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-EWXGKWHK.mjs';
2
+ import '../../../chunk-U2ZZ4QLS.mjs';
3
+ import '../../../chunk-WGIN2BGP.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,18 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkB5L3T46G_js = require('../../../chunk-B5L3T46G.js');
6
- require('../../../chunk-2SFOQMAA.js');
7
- require('../../../chunk-ACE6O62X.js');
5
+ var chunkV5EQMHJX_js = require('../../../chunk-V5EQMHJX.js');
6
+ require('../../../chunk-UAUZWBTW.js');
7
+ require('../../../chunk-2PYUYDPD.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
10
10
 
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkB5L3T46G_js.executor_default; }
14
+ get: function () { return chunkV5EQMHJX_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkB5L3T46G_js.executorFn; }
18
+ get: function () { return chunkV5EQMHJX_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-KCL7KVDF.mjs';
2
- import '../../../chunk-IAWSQ5AX.mjs';
3
- import '../../../chunk-X6GFPXO4.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-WNLIJGN4.mjs';
2
+ import '../../../chunk-U2ZZ4QLS.mjs';
3
+ import '../../../chunk-WGIN2BGP.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkJPTGZQLU_js = require('../../chunk-JPTGZQLU.js');
4
- require('../../chunk-ACE6O62X.js');
3
+ var chunkMAMHMV35_js = require('../../chunk-MAMHMV35.js');
4
+ require('../../chunk-2PYUYDPD.js');
5
5
  require('../../chunk-VIU4CXA3.js');
6
6
  require('../../chunk-SHUYVCID.js');
7
7
 
@@ -9,13 +9,13 @@ require('../../chunk-SHUYVCID.js');
9
9
 
10
10
  Object.defineProperty(exports, "createNxPlugin", {
11
11
  enumerable: true,
12
- get: function () { return chunkJPTGZQLU_js.createNxPlugin; }
12
+ get: function () { return chunkMAMHMV35_js.createNxPlugin; }
13
13
  });
14
14
  Object.defineProperty(exports, "getNxPluginInputs", {
15
15
  enumerable: true,
16
- get: function () { return chunkJPTGZQLU_js.getNxPluginInputs; }
16
+ get: function () { return chunkMAMHMV35_js.getNxPluginInputs; }
17
17
  });
18
18
  Object.defineProperty(exports, "getNxTargetInputs", {
19
19
  enumerable: true,
20
- get: function () { return chunkJPTGZQLU_js.getNxTargetInputs; }
20
+ get: function () { return chunkMAMHMV35_js.getNxTargetInputs; }
21
21
  });
@@ -1,4 +1,4 @@
1
- export { createNxPlugin, getNxPluginInputs, getNxTargetInputs } from '../../chunk-BXKPRYNH.mjs';
2
- import '../../chunk-X6GFPXO4.mjs';
1
+ export { createNxPlugin, getNxPluginInputs, getNxTargetInputs } from '../../chunk-DMX7BNND.mjs';
2
+ import '../../chunk-WGIN2BGP.mjs';
3
3
  import '../../chunk-LQU7XWFP.mjs';
4
4
  import '../../chunk-O6YSETKJ.mjs';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunk6WVDB4DZ_js = require('../../chunk-6WVDB4DZ.js');
4
- require('../../chunk-JPTGZQLU.js');
5
- require('../../chunk-ACE6O62X.js');
3
+ var chunk2YSHMNU6_js = require('../../chunk-2YSHMNU6.js');
4
+ require('../../chunk-MAMHMV35.js');
5
+ require('../../chunk-2PYUYDPD.js');
6
6
  require('../../chunk-VIU4CXA3.js');
7
7
  require('../../chunk-SHUYVCID.js');
8
8
 
@@ -10,5 +10,5 @@ require('../../chunk-SHUYVCID.js');
10
10
 
11
11
  Object.defineProperty(exports, "createNodesV2", {
12
12
  enumerable: true,
13
- get: function () { return chunk6WVDB4DZ_js.createNodesV2; }
13
+ get: function () { return chunk2YSHMNU6_js.createNodesV2; }
14
14
  });
@@ -1,5 +1,5 @@
1
- export { createNodesV2 } from '../../chunk-L46S3DXB.mjs';
2
- import '../../chunk-BXKPRYNH.mjs';
3
- import '../../chunk-X6GFPXO4.mjs';
1
+ export { createNodesV2 } from '../../chunk-Y4WK22DY.mjs';
2
+ import '../../chunk-DMX7BNND.mjs';
3
+ import '../../chunk-WGIN2BGP.mjs';
4
4
  import '../../chunk-LQU7XWFP.mjs';
5
5
  import '../../chunk-O6YSETKJ.mjs';
@@ -1,4 +1,13 @@
1
1
  interface NxPluginOptions {
2
+ /**
3
+ * Enable debug logging for the plugin
4
+ *
5
+ * @defaultValue false
6
+ */
7
+ debug?: boolean;
8
+ /**
9
+ * Configuration options for the clean target added by the Nx plugin
10
+ */
2
11
  clean?: false | {
3
12
  /**
4
13
  * The name of the clean target to use when cleaning the project
@@ -33,6 +42,9 @@ interface NxPluginOptions {
33
42
  */
34
43
  executor?: string;
35
44
  };
45
+ /**
46
+ * Configuration options for the prepare target added by the Nx plugin
47
+ */
36
48
  prepare?: false | {
37
49
  /**
38
50
  * The name of the prepare target to use when preparing the project
@@ -67,6 +79,9 @@ interface NxPluginOptions {
67
79
  */
68
80
  executor?: string;
69
81
  };
82
+ /**
83
+ * Configuration options for the lint target added by the Nx plugin
84
+ */
70
85
  lint?: false | {
71
86
  /**
72
87
  * The name of the lint target to use when linting the project
@@ -101,6 +116,9 @@ interface NxPluginOptions {
101
116
  */
102
117
  executor?: string;
103
118
  };
119
+ /**
120
+ * Configuration options for the build target added by the Nx plugin
121
+ */
104
122
  build?: false | {
105
123
  /**
106
124
  * The name of the build target to use when building the project
@@ -135,6 +153,9 @@ interface NxPluginOptions {
135
153
  */
136
154
  executor?: string;
137
155
  };
156
+ /**
157
+ * Configuration options for the docs target added by the Nx plugin
158
+ */
138
159
  docs?: false | {
139
160
  /**
140
161
  * The name of the docs target to use when generating documentation for the project
@@ -169,6 +190,9 @@ interface NxPluginOptions {
169
190
  */
170
191
  executor?: string;
171
192
  };
193
+ /**
194
+ * Configuration options for the deploy target added by the Nx plugin
195
+ */
172
196
  deploy?: false | {
173
197
  /**
174
198
  * The name of the deploy target to use when deploying the project
@@ -1,4 +1,13 @@
1
1
  interface NxPluginOptions {
2
+ /**
3
+ * Enable debug logging for the plugin
4
+ *
5
+ * @defaultValue false
6
+ */
7
+ debug?: boolean;
8
+ /**
9
+ * Configuration options for the clean target added by the Nx plugin
10
+ */
2
11
  clean?: false | {
3
12
  /**
4
13
  * The name of the clean target to use when cleaning the project
@@ -33,6 +42,9 @@ interface NxPluginOptions {
33
42
  */
34
43
  executor?: string;
35
44
  };
45
+ /**
46
+ * Configuration options for the prepare target added by the Nx plugin
47
+ */
36
48
  prepare?: false | {
37
49
  /**
38
50
  * The name of the prepare target to use when preparing the project
@@ -67,6 +79,9 @@ interface NxPluginOptions {
67
79
  */
68
80
  executor?: string;
69
81
  };
82
+ /**
83
+ * Configuration options for the lint target added by the Nx plugin
84
+ */
70
85
  lint?: false | {
71
86
  /**
72
87
  * The name of the lint target to use when linting the project
@@ -101,6 +116,9 @@ interface NxPluginOptions {
101
116
  */
102
117
  executor?: string;
103
118
  };
119
+ /**
120
+ * Configuration options for the build target added by the Nx plugin
121
+ */
104
122
  build?: false | {
105
123
  /**
106
124
  * The name of the build target to use when building the project
@@ -135,6 +153,9 @@ interface NxPluginOptions {
135
153
  */
136
154
  executor?: string;
137
155
  };
156
+ /**
157
+ * Configuration options for the docs target added by the Nx plugin
158
+ */
138
159
  docs?: false | {
139
160
  /**
140
161
  * The name of the docs target to use when generating documentation for the project
@@ -169,6 +190,9 @@ interface NxPluginOptions {
169
190
  */
170
191
  executor?: string;
171
192
  };
193
+ /**
194
+ * Configuration options for the deploy target added by the Nx plugin
195
+ */
172
196
  deploy?: false | {
173
197
  /**
174
198
  * The name of the deploy target to use when deploying the project
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/nx",
3
- "version": "0.10.26",
3
+ "version": "0.10.27",
4
4
  "description": "A Nx plugin to support Powerlines development in Nx monorepos.",
5
5
  "repository": {
6
6
  "type": "github",
@@ -196,7 +196,7 @@
196
196
  "defu": "^6.1.4",
197
197
  "jiti": "^2.6.1",
198
198
  "nx": "^22.1.0",
199
- "powerlines": "^0.23.9"
199
+ "powerlines": "^0.23.10"
200
200
  },
201
201
  "devDependencies": {
202
202
  "@nx/workspace": "^22.1.0",
@@ -210,5 +210,5 @@
210
210
  "publishConfig": { "access": "public" },
211
211
  "executors": "./executors.json",
212
212
  "generators": "./generators.json",
213
- "gitHead": "d217b583335e4615b4e28fba7325f51fbd78a3f6"
213
+ "gitHead": "5a6b8349dc29bf9e496ed5dee32c6cfb8d9bff4e"
214
214
  }