@powerlines/nx 0.10.20 → 0.10.22

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 (40) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/{chunk-EX3O7O2B.js → chunk-62CNXBCW.js} +2 -2
  3. package/dist/{chunk-D7WLM2B6.js → chunk-7JI7SNPI.js} +2 -2
  4. package/dist/{chunk-TO3WM5BR.js → chunk-7N6FX55G.js} +47 -6
  5. package/dist/{chunk-GHJHSY4S.mjs → chunk-C7YXZ6X3.mjs} +1 -1
  6. package/dist/{chunk-FVXW6LDE.js → chunk-IPVB7OAF.js} +2981 -2711
  7. package/dist/{chunk-DL2U52BR.mjs → chunk-IZ2DVA7V.mjs} +1 -1
  8. package/dist/{chunk-SDMJCGHR.mjs → chunk-JFEKW6WO.mjs} +1 -1
  9. package/dist/{chunk-PWKMRXQL.js → chunk-JZFLLKX7.js} +2 -2
  10. package/dist/{chunk-H4DMVLQJ.mjs → chunk-NQA6VVBG.mjs} +1 -1
  11. package/dist/{chunk-4F2AZ6CR.mjs → chunk-OY7HISJN.mjs} +2973 -2703
  12. package/dist/{chunk-FEJ2ZSZP.mjs → chunk-R6VKTKIJ.mjs} +1 -1
  13. package/dist/{chunk-WN4V3Q7V.js → chunk-SBOWIOOS.js} +2 -2
  14. package/dist/{chunk-UKZ7TQQQ.js → chunk-SJ6WM4OK.js} +2 -2
  15. package/dist/{chunk-RDLEKRFJ.mjs → chunk-XL4OPEOX.mjs} +1 -1
  16. package/dist/{chunk-OS7UD4XD.mjs → chunk-XRMEXEW2.mjs} +47 -6
  17. package/dist/{chunk-X7QXBIDS.js → chunk-Z6JAOALZ.js} +2 -2
  18. package/dist/executors.js +11 -11
  19. package/dist/executors.mjs +6 -6
  20. package/dist/index.js +14 -14
  21. package/dist/index.mjs +8 -8
  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/helpers/plugin-utilities.js +4 -4
  35. package/dist/src/helpers/plugin-utilities.mjs +1 -1
  36. package/dist/src/plugin/index.js +3 -3
  37. package/dist/src/plugin/index.mjs +2 -2
  38. package/dist/src/types/plugin.d.mts +34 -0
  39. package/dist/src/types/plugin.d.ts +34 -0
  40. package/package.json +13 -13
package/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
2
2
 
3
3
  # Changelog for Powerlines - Nx
4
4
 
5
+ ## [0.10.22](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.22) (11/20/2025)
6
+
7
+ ### Updated Dependencies
8
+
9
+ - Updated **powerlines** to **v0.23.5**
10
+
11
+ ## [0.10.21](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.21) (11/20/2025)
12
+
13
+ ### Miscellaneous
14
+
15
+ - **monorepo:** Update child packages to use updated function names
16
+ ([2e20b2d](https://github.com/storm-software/powerlines/commit/2e20b2d))
17
+
18
+ ### Updated Dependencies
19
+
20
+ - Updated **powerlines** to **v0.23.4**
21
+
22
+ ## [0.10.20](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.20) (11/19/2025)
23
+
24
+ ### Updated Dependencies
25
+
26
+ - Updated **powerlines** to **v0.23.3**
27
+
5
28
  ## [0.10.19](https://github.com/storm-software/powerlines/releases/tag/nx%400.10.19) (11/19/2025)
6
29
 
7
30
  ### Updated Dependencies
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkTO3WM5BR_js = require('./chunk-TO3WM5BR.js');
3
+ var chunk7N6FX55G_js = require('./chunk-7N6FX55G.js');
4
4
 
5
5
  // src/plugin/index.ts
6
- var createNodesV2 = chunkTO3WM5BR_js.createNxPlugin({
6
+ var createNodesV2 = chunk7N6FX55G_js.createNxPlugin({
7
7
  framework: "powerlines"
8
8
  });
9
9
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkFVXW6LDE_js = require('./chunk-FVXW6LDE.js');
3
+ var chunkIPVB7OAF_js = require('./chunk-IPVB7OAF.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 = chunkFVXW6LDE_js.withExecutor("build", executorFn);
22
+ var executor = chunkIPVB7OAF_js.withExecutor("build", executorFn);
23
23
  var executor_default = executor;
24
24
 
25
25
  exports.executorFn = executorFn;
@@ -168,8 +168,8 @@ function createNxPlugin(opts) {
168
168
  executor: options?.build?.executor || `@${framework}/nx:${options?.build?.targetName || "build"}`,
169
169
  dependsOn: [
170
170
  `^${options?.build?.targetName || "build"}`,
171
- "prepare"
172
- ],
171
+ options?.prepare !== false && `^${options?.prepare?.targetName || "prepare"}`
172
+ ].filter(Boolean),
173
173
  defaultConfiguration: options?.build?.defaultConfiguration || "production",
174
174
  options: {
175
175
  entry: userConfig.entry || "{sourceRoot}/index.ts",
@@ -210,8 +210,8 @@ function createNxPlugin(opts) {
210
210
  executor: options?.lint?.executor || `@${framework}/nx:${options?.lint?.targetName || "lint"}`,
211
211
  dependsOn: [
212
212
  `^${options?.lint?.targetName || "lint"}`,
213
- "prepare"
214
- ],
213
+ options?.prepare !== false && `^${options?.prepare?.targetName || "prepare"}`
214
+ ].filter(Boolean),
215
215
  defaultConfiguration: options?.lint?.defaultConfiguration || "production",
216
216
  options: {
217
217
  entry: userConfig.entry || "{sourceRoot}/index.ts",
@@ -251,8 +251,8 @@ function createNxPlugin(opts) {
251
251
  executor: options?.docs?.executor || `@${framework}/nx:${options?.docs?.targetName || "docs"}`,
252
252
  dependsOn: [
253
253
  `^${options?.docs?.targetName || "docs"}`,
254
- "build"
255
- ],
254
+ options?.build !== false && `^${options?.build?.targetName || "build"}`
255
+ ].filter(Boolean),
256
256
  defaultConfiguration: options?.docs?.defaultConfiguration || "production",
257
257
  options: {
258
258
  entry: userConfig.entry || "{sourceRoot}/index.ts",
@@ -275,6 +275,47 @@ function createNxPlugin(opts) {
275
275
  }
276
276
  };
277
277
  }
278
+ if (options?.deploy !== false && !targets[options?.deploy?.targetName || "deploy"]) {
279
+ targets[options?.deploy?.targetName || "deploy"] = {
280
+ inputs: Array.isArray(options?.deploy?.inputs) ? options.deploy.inputs : nxJson.withNamedInputs([
281
+ ...targetInputs,
282
+ artifactsFolder
283
+ ], options?.deploy?.inputs ? [
284
+ options.deploy.inputs
285
+ ] : [
286
+ "documentation",
287
+ "typescript"
288
+ ]),
289
+ outputs: options?.deploy?.outputs ?? [
290
+ "{options.outputPath}"
291
+ ],
292
+ executor: options?.deploy?.executor || `@${framework}/nx:${options?.deploy?.targetName || "deploy"}`,
293
+ dependsOn: [
294
+ `^${options?.deploy?.targetName || "deploy"}`,
295
+ options?.build !== false && `^${options?.build?.targetName || "build"}`
296
+ ].filter(Boolean),
297
+ defaultConfiguration: options?.deploy?.defaultConfiguration || "production",
298
+ options: {
299
+ entry: userConfig.entry || "{sourceRoot}/index.ts",
300
+ projectType: projectConfig.projectType || userConfig.type,
301
+ tsconfig,
302
+ skipInstalls: userConfig.skipInstalls,
303
+ skipCache: userConfig.skipCache
304
+ },
305
+ configurations: {
306
+ production: {
307
+ mode: "production"
308
+ },
309
+ test: {
310
+ mode: "test"
311
+ },
312
+ development: {
313
+ mode: "development",
314
+ skipCache: true
315
+ }
316
+ }
317
+ };
318
+ }
278
319
  projectTags.setDefaultProjectTags(projectConfig, name);
279
320
  projectTags.addProjectTag(projectConfig, framework, projectConfig.projectType || userConfig.type || "library", {
280
321
  overwrite: true
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-4F2AZ6CR.mjs';
1
+ import { withExecutor } from './chunk-OY7HISJN.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
  import defu from 'defu';
4
4