@powerlines/nx 0.10.7 → 0.10.9

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 (46) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{chunk-XSNM76JD.mjs → chunk-3TWAKTYR.mjs} +1 -1
  3. package/dist/{chunk-VTK4AV5G.mjs → chunk-3WPWHDP3.mjs} +223 -0
  4. package/dist/{chunk-FI2LBCTE.js → chunk-4S5RU53T.js} +2 -2
  5. package/dist/{chunk-LPW4ZM6F.mjs → chunk-AX3G6RLK.mjs} +1 -1
  6. package/dist/{chunk-LRS4T7I7.js → chunk-B3UMNKEM.js} +2 -2
  7. package/dist/{chunk-WIXVSWS2.js → chunk-IUHTUUDE.js} +2 -2
  8. package/dist/{chunk-67ALH5AX.js → chunk-L5RBARDS.js} +20 -21
  9. package/dist/{chunk-KPMBIBPE.mjs → chunk-M647TAWI.mjs} +1 -1
  10. package/dist/{chunk-T42RXTJI.js → chunk-QJEIBIEZ.js} +2 -2
  11. package/dist/{chunk-KBRKYARM.mjs → chunk-QWEMU3V4.mjs} +21 -21
  12. package/dist/{chunk-5LTOVY72.mjs → chunk-R4LYPNZD.mjs} +1 -1
  13. package/dist/{chunk-I2XQBFXH.mjs → chunk-T52ZTHWM.mjs} +1 -1
  14. package/dist/{chunk-2KH2YNA7.js → chunk-VP7AMTR6.js} +2 -2
  15. package/dist/{chunk-3NYVLWKQ.js → chunk-WUF54G5K.js} +224 -0
  16. package/dist/executors.js +13 -13
  17. package/dist/executors.mjs +6 -6
  18. package/dist/index.d.mts +1 -1
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.js +15 -19
  21. package/dist/index.mjs +7 -7
  22. package/dist/src/base/base-executor.js +2 -2
  23. package/dist/src/base/base-executor.mjs +1 -1
  24. package/dist/src/executors/build/executor.js +4 -4
  25. package/dist/src/executors/build/executor.mjs +2 -2
  26. package/dist/src/executors/clean/executor.js +4 -4
  27. package/dist/src/executors/clean/executor.mjs +2 -2
  28. package/dist/src/executors/docs/executor.js +4 -4
  29. package/dist/src/executors/docs/executor.mjs +2 -2
  30. package/dist/src/executors/lint/executor.js +4 -4
  31. package/dist/src/executors/lint/executor.mjs +2 -2
  32. package/dist/src/executors/prepare/executor.js +4 -4
  33. package/dist/src/executors/prepare/executor.mjs +2 -2
  34. package/dist/src/plugin/index.d.mts +3 -4
  35. package/dist/src/plugin/index.d.ts +3 -4
  36. package/dist/src/plugin/index.js +2 -6
  37. package/dist/src/plugin/index.mjs +1 -1
  38. package/package.json +16 -16
  39. package/dist/src/executors/build/schema.d.ts +0 -85
  40. package/dist/src/executors/clean/schema.d.ts +0 -75
  41. package/dist/src/executors/docs/schema.d.ts +0 -75
  42. package/dist/src/executors/lint/schema.d.ts +0 -75
  43. package/dist/src/executors/prepare/schema.d.ts +0 -75
  44. package/dist/src/executors/prepare/schema.json +0 -77
  45. package/dist/src/generators/sync/schema.d.ts +0 -15
  46. package/dist/src/generators/sync/schema.json +0 -19
package/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  # Changelog for Powerlines - Nx
4
4
 
5
+ ## [0.10.8](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.8) (11/16/2025)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **nx:** Resolved issue with selecting config files in Nx plugin
10
+ ([0f3535f](https://github.com/storm-software/powerlines/commit/0f3535f))
11
+
12
+ ### Updated Dependencies
13
+
14
+ - Updated **powerlines** to **v0.19.4**
15
+
16
+ ## [0.10.7](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.7) (11/12/2025)
17
+
18
+ ### Updated Dependencies
19
+
20
+ - Updated **powerlines** to **v0.19.3**
21
+
5
22
  ## [0.10.6](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.6) (11/08/2025)
6
23
 
7
24
  ### Updated Dependencies
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-VTK4AV5G.mjs';
1
+ import { withExecutor } from './chunk-3WPWHDP3.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
  import defu from 'defu';
4
4
 
@@ -71,6 +71,7 @@ import '@stryke/fs/read-file';
71
71
  import 'magic-string';
72
72
  import { defineNuxtModule, addVitePlugin, addWebpackPlugin } from '@nuxt/kit';
73
73
  import '@nuxt/schema';
74
+ import * as $ from '@stryke/capnp';
74
75
 
75
76
  function resolveModulePath(nodePath, state) {
76
77
  if (!t.isStringLiteral(nodePath.node)) {
@@ -3946,6 +3947,228 @@ createRolldownPlugin(createUnpluginFactory("rolldown"));
3946
3947
  createRollupPlugin(createUnpluginFactory("rollup"));
3947
3948
  createRspackPlugin(createUnpluginFactory("rspack"));
3948
3949
  createUnloaderPlugin(createUnpluginFactory("unloader"));
3950
+ BigInt("0xa56c61324b9d6e49");
3951
+ var FileMetadata_KeyValuePair = class extends $.Struct {
3952
+ static {
3953
+ __name(this, "FileMetadata_KeyValuePair");
3954
+ }
3955
+ static _capnp = {
3956
+ displayName: "KeyValuePair",
3957
+ id: "eabb26cf58b2a14c",
3958
+ size: new $.ObjectSize(0, 2)
3959
+ };
3960
+ get key() {
3961
+ return $.utils.getText(0, this);
3962
+ }
3963
+ set key(value) {
3964
+ $.utils.setText(0, value, this);
3965
+ }
3966
+ get value() {
3967
+ return $.utils.getText(1, this);
3968
+ }
3969
+ set value(value) {
3970
+ $.utils.setText(1, value, this);
3971
+ }
3972
+ toString() {
3973
+ return "FileMetadata_KeyValuePair_" + super.toString();
3974
+ }
3975
+ };
3976
+ var FileMetadata = class _FileMetadata extends $.Struct {
3977
+ static {
3978
+ __name(this, "FileMetadata");
3979
+ }
3980
+ static KeyValuePair = FileMetadata_KeyValuePair;
3981
+ static _capnp = {
3982
+ displayName: "FileMetadata",
3983
+ id: "8e2cab5d7e28c7b3",
3984
+ size: new $.ObjectSize(0, 4),
3985
+ defaultVariant: "normal"
3986
+ };
3987
+ static _Properties;
3988
+ /**
3989
+ * The variant of the file.
3990
+ *
3991
+ */
3992
+ get id() {
3993
+ return $.utils.getText(0, this);
3994
+ }
3995
+ set id(value) {
3996
+ $.utils.setText(0, value, this);
3997
+ }
3998
+ /**
3999
+ * The output mode of the file.
4000
+ *
4001
+ */
4002
+ get variant() {
4003
+ return $.utils.getText(1, this, _FileMetadata._capnp.defaultVariant);
4004
+ }
4005
+ set variant(value) {
4006
+ $.utils.setText(1, value, this);
4007
+ }
4008
+ /**
4009
+ * Additional metadata associated with the file.
4010
+ *
4011
+ */
4012
+ get mode() {
4013
+ return $.utils.getText(2, this);
4014
+ }
4015
+ set mode(value) {
4016
+ $.utils.setText(2, value, this);
4017
+ }
4018
+ _adoptProperties(value) {
4019
+ $.utils.adopt(value, $.utils.getPointer(3, this));
4020
+ }
4021
+ _disownProperties() {
4022
+ return $.utils.disown(this.properties);
4023
+ }
4024
+ get properties() {
4025
+ return $.utils.getList(3, _FileMetadata._Properties, this);
4026
+ }
4027
+ _hasProperties() {
4028
+ return !$.utils.isNull($.utils.getPointer(3, this));
4029
+ }
4030
+ _initProperties(length) {
4031
+ return $.utils.initList(3, _FileMetadata._Properties, length, this);
4032
+ }
4033
+ set properties(value) {
4034
+ $.utils.copyFrom(value, $.utils.getPointer(3, this));
4035
+ }
4036
+ toString() {
4037
+ return "FileMetadata_" + super.toString();
4038
+ }
4039
+ };
4040
+ var FileIdentifier = class extends $.Struct {
4041
+ static {
4042
+ __name(this, "FileIdentifier");
4043
+ }
4044
+ static _capnp = {
4045
+ displayName: "FileIdentifier",
4046
+ id: "e12b8732389d7406",
4047
+ size: new $.ObjectSize(0, 2)
4048
+ };
4049
+ /**
4050
+ * An additional identifier for the file.
4051
+ *
4052
+ */
4053
+ get path() {
4054
+ return $.utils.getText(0, this);
4055
+ }
4056
+ set path(value) {
4057
+ $.utils.setText(0, value, this);
4058
+ }
4059
+ get id() {
4060
+ return $.utils.getText(1, this);
4061
+ }
4062
+ set id(value) {
4063
+ $.utils.setText(1, value, this);
4064
+ }
4065
+ toString() {
4066
+ return "FileIdentifier_" + super.toString();
4067
+ }
4068
+ };
4069
+ var FileData = class extends $.Struct {
4070
+ static {
4071
+ __name(this, "FileData");
4072
+ }
4073
+ static _capnp = {
4074
+ displayName: "FileData",
4075
+ id: "fa6725c8a360f9a2",
4076
+ size: new $.ObjectSize(0, 2)
4077
+ };
4078
+ /**
4079
+ * The contents of the file.
4080
+ *
4081
+ */
4082
+ get path() {
4083
+ return $.utils.getText(0, this);
4084
+ }
4085
+ set path(value) {
4086
+ $.utils.setText(0, value, this);
4087
+ }
4088
+ get content() {
4089
+ return $.utils.getText(1, this);
4090
+ }
4091
+ set content(value) {
4092
+ $.utils.setText(1, value, this);
4093
+ }
4094
+ toString() {
4095
+ return "FileData_" + super.toString();
4096
+ }
4097
+ };
4098
+ var FileSystemData = class _FileSystemData extends $.Struct {
4099
+ static {
4100
+ __name(this, "FileSystemData");
4101
+ }
4102
+ static _capnp = {
4103
+ displayName: "FileSystemData",
4104
+ id: "aaa72a672ac0732f",
4105
+ size: new $.ObjectSize(0, 3)
4106
+ };
4107
+ static _Ids;
4108
+ static _Metadata;
4109
+ static _Files;
4110
+ _adoptIds(value) {
4111
+ $.utils.adopt(value, $.utils.getPointer(0, this));
4112
+ }
4113
+ _disownIds() {
4114
+ return $.utils.disown(this.ids);
4115
+ }
4116
+ get ids() {
4117
+ return $.utils.getList(0, _FileSystemData._Ids, this);
4118
+ }
4119
+ _hasIds() {
4120
+ return !$.utils.isNull($.utils.getPointer(0, this));
4121
+ }
4122
+ _initIds(length) {
4123
+ return $.utils.initList(0, _FileSystemData._Ids, length, this);
4124
+ }
4125
+ set ids(value) {
4126
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
4127
+ }
4128
+ _adoptMetadata(value) {
4129
+ $.utils.adopt(value, $.utils.getPointer(1, this));
4130
+ }
4131
+ _disownMetadata() {
4132
+ return $.utils.disown(this.metadata);
4133
+ }
4134
+ get metadata() {
4135
+ return $.utils.getList(1, _FileSystemData._Metadata, this);
4136
+ }
4137
+ _hasMetadata() {
4138
+ return !$.utils.isNull($.utils.getPointer(1, this));
4139
+ }
4140
+ _initMetadata(length) {
4141
+ return $.utils.initList(1, _FileSystemData._Metadata, length, this);
4142
+ }
4143
+ set metadata(value) {
4144
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
4145
+ }
4146
+ _adoptFiles(value) {
4147
+ $.utils.adopt(value, $.utils.getPointer(2, this));
4148
+ }
4149
+ _disownFiles() {
4150
+ return $.utils.disown(this.files);
4151
+ }
4152
+ get files() {
4153
+ return $.utils.getList(2, _FileSystemData._Files, this);
4154
+ }
4155
+ _hasFiles() {
4156
+ return !$.utils.isNull($.utils.getPointer(2, this));
4157
+ }
4158
+ _initFiles(length) {
4159
+ return $.utils.initList(2, _FileSystemData._Files, length, this);
4160
+ }
4161
+ set files(value) {
4162
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
4163
+ }
4164
+ toString() {
4165
+ return "FileSystemData_" + super.toString();
4166
+ }
4167
+ };
4168
+ FileMetadata._Properties = $.CompositeList(FileMetadata_KeyValuePair);
4169
+ FileSystemData._Ids = $.CompositeList(FileIdentifier);
4170
+ FileSystemData._Metadata = $.CompositeList(FileMetadata);
4171
+ FileSystemData._Files = $.CompositeList(FileData);
3949
4172
 
3950
4173
  // ../powerlines/src/index.ts
3951
4174
  var src_default = PowerlinesAPI;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk3NYVLWKQ_js = require('./chunk-3NYVLWKQ.js');
3
+ var chunkWUF54G5K_js = require('./chunk-WUF54G5K.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 = chunk3NYVLWKQ_js.withExecutor("lint", executorFn);
14
+ var executor = chunkWUF54G5K_js.withExecutor("lint", executorFn);
15
15
  var executor_default = executor;
16
16
 
17
17
  exports.executorFn = executorFn;
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-VTK4AV5G.mjs';
1
+ import { withExecutor } from './chunk-3WPWHDP3.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 chunk3NYVLWKQ_js = require('./chunk-3NYVLWKQ.js');
3
+ var chunkWUF54G5K_js = require('./chunk-WUF54G5K.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 = chunk3NYVLWKQ_js.withExecutor("clean", executorFn);
14
+ var executor = chunkWUF54G5K_js.withExecutor("clean", 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 chunk3NYVLWKQ_js = require('./chunk-3NYVLWKQ.js');
3
+ var chunkWUF54G5K_js = require('./chunk-WUF54G5K.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 = chunk3NYVLWKQ_js.withExecutor("prepare", executorFn);
22
+ var executor = chunkWUF54G5K_js.withExecutor("prepare", executorFn);
23
23
  var executor_default = executor;
24
24
 
25
25
  exports.executorFn = executorFn;
@@ -12,6 +12,7 @@ var json = require('@stryke/fs/json');
12
12
  var murmurhash = require('@stryke/hash/murmurhash');
13
13
  var joinPaths = require('@stryke/path/join-paths');
14
14
  var kebabCase = require('@stryke/string-format/kebab-case');
15
+ var titleCase = require('@stryke/string-format/title-case');
15
16
  var isError = require('@stryke/type-checks/is-error');
16
17
  var defu = require('defu');
17
18
  var jiti = require('jiti');
@@ -37,18 +38,18 @@ var CONFIG_INPUTS = [
37
38
  "{projectRoot}/{framework}.*.yml",
38
39
  "{projectRoot}/{framework}.toml",
39
40
  "{projectRoot}/{framework}.*.toml",
40
- "{projectRoot}/{framework}.js",
41
- "{projectRoot}/{framework}.*.js",
42
- "{projectRoot}/{framework}.cjs",
43
- "{projectRoot}/{framework}.*.cjs",
44
- "{projectRoot}/{framework}.mjs",
45
- "{projectRoot}/{framework}.*.mjs",
46
- "{projectRoot}/{framework}.ts",
47
- "{projectRoot}/{framework}.*.ts",
48
- "{projectRoot}/{framework}.cts",
49
- "{projectRoot}/{framework}.*.cts",
50
- "{projectRoot}/{framework}.mts",
51
- "{projectRoot}/{framework}.*.mts"
41
+ "{projectRoot}/{framework}.config.js",
42
+ "{projectRoot}/{framework}.*.config.js",
43
+ "{projectRoot}/{framework}.config.cjs",
44
+ "{projectRoot}/{framework}.*.config.cjs",
45
+ "{projectRoot}/{framework}.config.mjs",
46
+ "{projectRoot}/{framework}.*.config.mjs",
47
+ "{projectRoot}/{framework}.config.ts",
48
+ "{projectRoot}/{framework}.*.config.ts",
49
+ "{projectRoot}/{framework}.config.cts",
50
+ "{projectRoot}/{framework}.*.config.cts",
51
+ "{projectRoot}/{framework}.config.mts",
52
+ "{projectRoot}/{framework}.*.config.mts"
52
53
  ];
53
54
 
54
55
  // src/helpers/plugin-utilities.ts
@@ -62,10 +63,11 @@ function getNxPluginInputs(framework) {
62
63
  chunkSHUYVCID_js.__name(getNxPluginInputs, "getNxPluginInputs");
63
64
  function createNxPlugin(opts) {
64
65
  const framework = opts?.framework || "powerlines";
65
- const name2 = opts?.name || `${framework}/plugin/nx`;
66
+ const name = opts?.name || `${framework}/plugin/nx`;
66
67
  const artifactsFolder = opts?.artifactsFolder || `{projectRoot}/.${framework}`;
67
68
  const targetInputs = getNxTargetInputs(framework);
68
69
  const pluginInputs = getNxPluginInputs(framework);
70
+ console.debug(`[${name}]: Initializing the ${titleCase.titleCase(framework)} Nx plugin for the following inputs: ${pluginInputs}`);
69
71
  return [
70
72
  pluginInputs,
71
73
  async (configFiles, options, contextV2) => {
@@ -82,7 +84,7 @@ function createNxPlugin(opts) {
82
84
  try {
83
85
  const projectRoot = pluginHelpers.getProjectRoot(configFile, contextV2.workspaceRoot);
84
86
  if (!projectRoot) {
85
- console.error(`[${name2}]: package.json and ${framework} configuration files (i.e. ${framework}.config.ts) must be located in the project root directory: ${configFile}`);
87
+ console.error(`[${name}]: package.json and ${framework} configuration files (i.e. ${framework}.config.ts) must be located in the project root directory: ${configFile}`);
86
88
  return {};
87
89
  }
88
90
  const root = pluginHelpers.getRoot(projectRoot, context);
@@ -97,12 +99,12 @@ function createNxPlugin(opts) {
97
99
  const userConfig = await chunkUOTRU26N_js.loadUserConfigFile(projectRoot, jiti$1, "build", "development", configFile, framework);
98
100
  const packageJson = json.readJsonFileSync(joinPaths.joinPaths(projectRoot, "package.json"));
99
101
  if (!userConfig.configFile && !packageJson.storm) {
100
- console.debug(`[${name2}]: Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
102
+ console.debug(`[${name}]: Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
101
103
  return {};
102
104
  }
103
105
  const projectConfig = pluginHelpers.getProjectConfigFromProjectRoot(projectRoot, packageJson);
104
106
  if (!projectConfig) {
105
- console.warn(`[${name2}]: No project configuration found for project in root directory ${projectRoot}`);
107
+ console.warn(`[${name}]: No project configuration found for project in root directory ${projectRoot}`);
106
108
  return {};
107
109
  }
108
110
  const tsconfig = userConfig?.tsconfig || (exists.existsSync(joinPaths.joinPaths(projectRoot, "tsconfig.json")) ? joinPaths.joinPaths(projectRoot, "tsconfig.json") : void 0);
@@ -291,7 +293,7 @@ function createNxPlugin(opts) {
291
293
  }
292
294
  };
293
295
  }
294
- projectTags.setDefaultProjectTags(projectConfig, name2);
296
+ projectTags.setDefaultProjectTags(projectConfig, name);
295
297
  projectTags.addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
296
298
  overwrite: true
297
299
  });
@@ -307,7 +309,7 @@ function createNxPlugin(opts) {
307
309
  }
308
310
  };
309
311
  } catch (error) {
310
- console.error(`[${name2}]: ${isError.isError(error) ? error.message : "Unknown fatal error"}`);
312
+ console.error(`[${name}]: ${isError.isError(error) ? error.message : "Unknown fatal error"}`);
311
313
  return {};
312
314
  }
313
315
  }, configFiles, options, contextV2);
@@ -317,11 +319,8 @@ function createNxPlugin(opts) {
317
319
  chunkSHUYVCID_js.__name(createNxPlugin, "createNxPlugin");
318
320
 
319
321
  // src/plugin/index.ts
320
- var name = "powerlines/nx/plugin";
321
322
  var createNodesV2 = createNxPlugin({
322
- name,
323
323
  framework: "powerlines"
324
324
  });
325
325
 
326
326
  exports.createNodesV2 = createNodesV2;
327
- exports.name = name;
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-VTK4AV5G.mjs';
1
+ import { withExecutor } from './chunk-3WPWHDP3.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 chunk3NYVLWKQ_js = require('./chunk-3NYVLWKQ.js');
3
+ var chunkWUF54G5K_js = require('./chunk-WUF54G5K.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 = chunk3NYVLWKQ_js.withExecutor("build", executorFn);
22
+ var executor = chunkWUF54G5K_js.withExecutor("build", executorFn);
23
23
  var executor_default = executor;
24
24
 
25
25
  exports.executorFn = executorFn;
@@ -10,6 +10,7 @@ import { readJsonFileSync } from '@stryke/fs/json';
10
10
  import { murmurhash } from '@stryke/hash/murmurhash';
11
11
  import { joinPaths } from '@stryke/path/join-paths';
12
12
  import { kebabCase } from '@stryke/string-format/kebab-case';
13
+ import { titleCase } from '@stryke/string-format/title-case';
13
14
  import { isError } from '@stryke/type-checks/is-error';
14
15
  import defu from 'defu';
15
16
  import { createJiti } from 'jiti';
@@ -31,18 +32,18 @@ var CONFIG_INPUTS = [
31
32
  "{projectRoot}/{framework}.*.yml",
32
33
  "{projectRoot}/{framework}.toml",
33
34
  "{projectRoot}/{framework}.*.toml",
34
- "{projectRoot}/{framework}.js",
35
- "{projectRoot}/{framework}.*.js",
36
- "{projectRoot}/{framework}.cjs",
37
- "{projectRoot}/{framework}.*.cjs",
38
- "{projectRoot}/{framework}.mjs",
39
- "{projectRoot}/{framework}.*.mjs",
40
- "{projectRoot}/{framework}.ts",
41
- "{projectRoot}/{framework}.*.ts",
42
- "{projectRoot}/{framework}.cts",
43
- "{projectRoot}/{framework}.*.cts",
44
- "{projectRoot}/{framework}.mts",
45
- "{projectRoot}/{framework}.*.mts"
35
+ "{projectRoot}/{framework}.config.js",
36
+ "{projectRoot}/{framework}.*.config.js",
37
+ "{projectRoot}/{framework}.config.cjs",
38
+ "{projectRoot}/{framework}.*.config.cjs",
39
+ "{projectRoot}/{framework}.config.mjs",
40
+ "{projectRoot}/{framework}.*.config.mjs",
41
+ "{projectRoot}/{framework}.config.ts",
42
+ "{projectRoot}/{framework}.*.config.ts",
43
+ "{projectRoot}/{framework}.config.cts",
44
+ "{projectRoot}/{framework}.*.config.cts",
45
+ "{projectRoot}/{framework}.config.mts",
46
+ "{projectRoot}/{framework}.*.config.mts"
46
47
  ];
47
48
 
48
49
  // src/helpers/plugin-utilities.ts
@@ -56,10 +57,11 @@ function getNxPluginInputs(framework) {
56
57
  __name(getNxPluginInputs, "getNxPluginInputs");
57
58
  function createNxPlugin(opts) {
58
59
  const framework = opts?.framework || "powerlines";
59
- const name2 = opts?.name || `${framework}/plugin/nx`;
60
+ const name = opts?.name || `${framework}/plugin/nx`;
60
61
  const artifactsFolder = opts?.artifactsFolder || `{projectRoot}/.${framework}`;
61
62
  const targetInputs = getNxTargetInputs(framework);
62
63
  const pluginInputs = getNxPluginInputs(framework);
64
+ console.debug(`[${name}]: Initializing the ${titleCase(framework)} Nx plugin for the following inputs: ${pluginInputs}`);
63
65
  return [
64
66
  pluginInputs,
65
67
  async (configFiles, options, contextV2) => {
@@ -76,7 +78,7 @@ function createNxPlugin(opts) {
76
78
  try {
77
79
  const projectRoot = getProjectRoot(configFile, contextV2.workspaceRoot);
78
80
  if (!projectRoot) {
79
- console.error(`[${name2}]: package.json and ${framework} configuration files (i.e. ${framework}.config.ts) must be located in the project root directory: ${configFile}`);
81
+ console.error(`[${name}]: package.json and ${framework} configuration files (i.e. ${framework}.config.ts) must be located in the project root directory: ${configFile}`);
80
82
  return {};
81
83
  }
82
84
  const root = getRoot(projectRoot, context);
@@ -91,12 +93,12 @@ function createNxPlugin(opts) {
91
93
  const userConfig = await loadUserConfigFile(projectRoot, jiti, "build", "development", configFile, framework);
92
94
  const packageJson = readJsonFileSync(joinPaths(projectRoot, "package.json"));
93
95
  if (!userConfig.configFile && !packageJson.storm) {
94
- console.debug(`[${name2}]: Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
96
+ console.debug(`[${name}]: Skipping ${projectRoot} - no ${framework} configuration found for project in root directory.`);
95
97
  return {};
96
98
  }
97
99
  const projectConfig = getProjectConfigFromProjectRoot(projectRoot, packageJson);
98
100
  if (!projectConfig) {
99
- console.warn(`[${name2}]: No project configuration found for project in root directory ${projectRoot}`);
101
+ console.warn(`[${name}]: No project configuration found for project in root directory ${projectRoot}`);
100
102
  return {};
101
103
  }
102
104
  const tsconfig = userConfig?.tsconfig || (existsSync(joinPaths(projectRoot, "tsconfig.json")) ? joinPaths(projectRoot, "tsconfig.json") : void 0);
@@ -285,7 +287,7 @@ function createNxPlugin(opts) {
285
287
  }
286
288
  };
287
289
  }
288
- setDefaultProjectTags(projectConfig, name2);
290
+ setDefaultProjectTags(projectConfig, name);
289
291
  addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
290
292
  overwrite: true
291
293
  });
@@ -301,7 +303,7 @@ function createNxPlugin(opts) {
301
303
  }
302
304
  };
303
305
  } catch (error) {
304
- console.error(`[${name2}]: ${isError(error) ? error.message : "Unknown fatal error"}`);
306
+ console.error(`[${name}]: ${isError(error) ? error.message : "Unknown fatal error"}`);
305
307
  return {};
306
308
  }
307
309
  }, configFiles, options, contextV2);
@@ -311,10 +313,8 @@ function createNxPlugin(opts) {
311
313
  __name(createNxPlugin, "createNxPlugin");
312
314
 
313
315
  // src/plugin/index.ts
314
- var name = "powerlines/nx/plugin";
315
316
  var createNodesV2 = createNxPlugin({
316
- name,
317
317
  framework: "powerlines"
318
318
  });
319
319
 
320
- export { createNodesV2, name };
320
+ export { createNodesV2 };
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-VTK4AV5G.mjs';
1
+ import { withExecutor } from './chunk-3WPWHDP3.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
 
4
4
  // src/executors/docs/executor.ts
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-VTK4AV5G.mjs';
1
+ import { withExecutor } from './chunk-3WPWHDP3.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 chunk3NYVLWKQ_js = require('./chunk-3NYVLWKQ.js');
3
+ var chunkWUF54G5K_js = require('./chunk-WUF54G5K.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 = chunk3NYVLWKQ_js.withExecutor("docs", executorFn);
14
+ var executor = chunkWUF54G5K_js.withExecutor("docs", executorFn);
15
15
  var executor_default = executor;
16
16
 
17
17
  exports.executorFn = executorFn;