@powerlines/nx 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{chunk-MQQZWVFL.js → chunk-2KAWJURA.js} +2 -2
  3. package/dist/{chunk-VFYKWLFU.js → chunk-5DSETHHW.js} +2 -2
  4. package/dist/{chunk-GZAHD3HX.mjs → chunk-CNNNEVWJ.mjs} +1 -1
  5. package/dist/{chunk-HCFUFMAF.mjs → chunk-E5KDMPYX.mjs} +1 -1
  6. package/dist/{chunk-BM7JS6C2.js → chunk-GPR4LRJV.js} +2 -2
  7. package/dist/{chunk-Y7LKUYQR.js → chunk-J2XU6B3K.js} +2 -2
  8. package/dist/{chunk-EJ5N22VV.mjs → chunk-KO42I6KA.mjs} +1 -1
  9. package/dist/{chunk-MQKPEN3X.js → chunk-LRONVULK.js} +29 -28
  10. package/dist/{chunk-XSNPOHTI.mjs → chunk-QAEGJGQS.mjs} +1 -1
  11. package/dist/{chunk-6SBXXTFC.js → chunk-RK2TJCMI.js} +2 -2
  12. package/dist/{chunk-WAQHDLQP.mjs → chunk-THDQE26D.mjs} +1 -1
  13. package/dist/{chunk-4T5LIOS7.mjs → chunk-UQ4OVGQQ.mjs} +30 -29
  14. package/dist/executors.js +11 -11
  15. package/dist/executors.mjs +6 -6
  16. package/dist/index.js +11 -11
  17. package/dist/index.mjs +6 -6
  18. package/dist/src/base/base-executor.js +2 -2
  19. package/dist/src/base/base-executor.mjs +1 -1
  20. package/dist/src/executors/build/executor.js +4 -4
  21. package/dist/src/executors/build/executor.mjs +2 -2
  22. package/dist/src/executors/clean/executor.js +4 -4
  23. package/dist/src/executors/clean/executor.mjs +2 -2
  24. package/dist/src/executors/docs/executor.js +4 -4
  25. package/dist/src/executors/docs/executor.mjs +2 -2
  26. package/dist/src/executors/lint/executor.js +4 -4
  27. package/dist/src/executors/lint/executor.mjs +2 -2
  28. package/dist/src/executors/prepare/executor.js +4 -4
  29. package/dist/src/executors/prepare/executor.mjs +2 -2
  30. 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.3.0](https://github.com/storm-software/powerlines/releases/tag/nx%400.3.0) (2025-10-21)
6
+
7
+ ### Features
8
+
9
+ - **plugin-deepkit:** Initial check-in of the `deepkit` plugin module
10
+ ([cf91fac](https://github.com/storm-software/powerlines/commit/cf91fac))
11
+
12
+ ### Updated Dependencies
13
+
14
+ - Updated powerlines to 0.3.0
15
+
5
16
  ## [0.2.0](https://github.com/storm-software/powerlines/releases/tag/nx%400.2.0) (2025-10-21)
6
17
 
7
18
  ### Features
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkMQKPEN3X_js = require('./chunk-MQKPEN3X.js');
3
+ var chunkLRONVULK_js = require('./chunk-LRONVULK.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 = chunkMQKPEN3X_js.withExecutor("clean", executorFn);
14
+ var executor = chunkLRONVULK_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 chunkMQKPEN3X_js = require('./chunk-MQKPEN3X.js');
3
+ var chunkLRONVULK_js = require('./chunk-LRONVULK.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 = chunkMQKPEN3X_js.withExecutor("lint", executorFn);
14
+ var executor = chunkLRONVULK_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-4T5LIOS7.mjs';
1
+ import { withExecutor } from './chunk-UQ4OVGQQ.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-4T5LIOS7.mjs';
1
+ import { withExecutor } from './chunk-UQ4OVGQQ.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 chunkMQKPEN3X_js = require('./chunk-MQKPEN3X.js');
3
+ var chunkLRONVULK_js = require('./chunk-LRONVULK.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 = chunkMQKPEN3X_js.withExecutor("docs", executorFn);
14
+ var executor = chunkLRONVULK_js.withExecutor("docs", 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 chunkMQKPEN3X_js = require('./chunk-MQKPEN3X.js');
3
+ var chunkLRONVULK_js = require('./chunk-LRONVULK.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 = chunkMQKPEN3X_js.withExecutor("build", executorFn);
22
+ var executor = chunkLRONVULK_js.withExecutor("build", executorFn);
23
23
  var executor_default = executor;
24
24
 
25
25
  exports.executorFn = executorFn;
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-4T5LIOS7.mjs';
1
+ import { withExecutor } from './chunk-UQ4OVGQQ.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
 
4
4
  // src/executors/lint/executor.ts
@@ -1589,16 +1589,23 @@ var PowerlinesContext = class _PowerlinesContext {
1589
1589
  static async from(workspaceRoot, config) {
1590
1590
  const context = new _PowerlinesContext(await chunkHHPODCTP_js.loadWorkspaceConfig(workspaceRoot, config.root));
1591
1591
  await context.withUserConfig(config);
1592
- context.corePackagePath = process.env.POWERLINES_LOCAL ? join.joinPaths(context.workspaceConfig.workspaceRoot, "packages/core") : await resolve.resolvePackage("powerlines");
1593
- if (!context.corePackagePath) {
1594
- throw new Error("Could not resolve powerlines package location.");
1592
+ context.powerlinesPath = await resolve.resolvePackage("powerlines");
1593
+ if (!context.powerlinesPath) {
1594
+ throw new Error("Could not resolve `powerlines` package location.");
1595
1595
  }
1596
1596
  return context;
1597
1597
  }
1598
+ /**
1599
+ * An object containing the dependencies that should be installed for the project
1600
+ */
1598
1601
  dependencies = {};
1602
+ /**
1603
+ * An object containing the development dependencies that should be installed for the project
1604
+ */
1605
+ devDependencies = {};
1599
1606
  reflections = {};
1600
1607
  persistedMeta = void 0;
1601
- corePackagePath;
1608
+ powerlinesPath;
1602
1609
  packageJson;
1603
1610
  projectJson = void 0;
1604
1611
  resolver;
@@ -1688,7 +1695,7 @@ var PowerlinesContext = class _PowerlinesContext {
1688
1695
  * Get the path to the artifacts directory for the project
1689
1696
  */
1690
1697
  get artifactsPath() {
1691
- return join.joinPaths(this.workspaceConfig.workspaceRoot, this.config.projectRoot, ".storm");
1698
+ return join.joinPaths(this.workspaceConfig.workspaceRoot, this.config.projectRoot, this.config.output.artifactsFolder);
1692
1699
  }
1693
1700
  /**
1694
1701
  * Get the path to the builtin modules used by the project
@@ -1874,7 +1881,7 @@ var PowerlinesContext = class _PowerlinesContext {
1874
1881
  mode: "virtual",
1875
1882
  dts: join.joinPaths(cacheKey.projectRoot, `${config.framework ?? "powerlines"}.d.ts`),
1876
1883
  builtinPrefix: config.framework ?? "powerlines",
1877
- runtimeFolder: join.joinPaths(cacheKey.projectRoot, `.${config.framework ?? "powerlines"}`),
1884
+ artifactsFolder: join.joinPaths(cacheKey.projectRoot, `.${config.framework ?? "powerlines"}`),
1878
1885
  assets: [
1879
1886
  {
1880
1887
  glob: "LICENSE"
@@ -2088,9 +2095,9 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends P
2088
2095
  static async fromConfig(workspaceConfig, config) {
2089
2096
  const context = new _PowerlinesEnvironmentContext(config, workspaceConfig);
2090
2097
  await context.init();
2091
- context.corePackagePath = process.env.POWERLINES_LOCAL ? joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, "packages/core") : await resolve.resolvePackage("powerlines");
2092
- if (!context.corePackagePath) {
2093
- throw new Error("Could not resolve powerlines package location.");
2098
+ context.powerlinesPath = await resolve.resolvePackage("powerlines");
2099
+ if (!context.powerlinesPath) {
2100
+ throw new Error("Could not resolve `powerlines` package location.");
2094
2101
  }
2095
2102
  return context;
2096
2103
  }
@@ -2208,9 +2215,9 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
2208
2215
  static async from(workspaceRoot, config) {
2209
2216
  const context = new _PowerlinesAPIContext(await chunkHHPODCTP_js.loadWorkspaceConfig(workspaceRoot, config.root));
2210
2217
  await context.withUserConfig(config);
2211
- context.corePackagePath = process.env.POWERLINES_LOCAL ? joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, "packages/core") : await resolve.resolvePackage("powerlines");
2212
- if (!context.corePackagePath) {
2213
- throw new Error("Could not resolve powerlines package location.");
2218
+ context.powerlinesPath = await resolve.resolvePackage("powerlines");
2219
+ if (!context.powerlinesPath) {
2220
+ throw new Error("Could not resolve `powerlines` package location.");
2214
2221
  }
2215
2222
  return context;
2216
2223
  }
@@ -2316,7 +2323,7 @@ async function installPackage(context, packageName, dev = false) {
2316
2323
  } else {
2317
2324
  context.log(types.LogLevelLabel.WARN, `The package "${packageName}" is not installed. Since the "skipInstalls" option is set to true, it will not be installed automatically.`);
2318
2325
  }
2319
- } else if (_package.hasPackageVersion(packageName) && !process.env.STORM_STACK_SKIP_VERSION_CHECK) {
2326
+ } else if (_package.hasPackageVersion(packageName) && !process.env.POWERLINES_SKIP_VERSION_CHECK) {
2320
2327
  const isMatching = await packageFns.doesPackageMatch(_package.getPackageName(packageName), _package.getPackageVersion(packageName), context.config.projectRoot);
2321
2328
  if (!isMatching) {
2322
2329
  const packageListing = await packageFns.getPackageListing(_package.getPackageName(packageName), {
@@ -2926,20 +2933,14 @@ chunkSHUYVCID_js.__name(generateTypes, "generateTypes");
2926
2933
  async function installDependencies(context) {
2927
2934
  context.log(types.LogLevelLabel.TRACE, `Checking and installing missing project dependencies.`);
2928
2935
  context.dependencies ??= {};
2929
- context.dependencies["powerlines"] = {
2930
- type: "dependency"
2931
- };
2936
+ context.dependencies.powerlines = "latest";
2932
2937
  if (context.config.projectType === "application") {
2933
- context.dependencies.unstorage = {
2934
- type: "dependency"
2935
- };
2936
- }
2937
- context.log(types.LogLevelLabel.TRACE, `The following packages must be installed as dependencies:
2938
- ${Object.keys(context.dependencies).map((key) => ` - ${_package.getPackageName(key)}${_package.hasPackageVersion(key) || isSetObject.isSetObject(context.dependencies[key]) && isSetString.isSetString(context.dependencies[key].version) ? ` v${isSetObject.isSetObject(context.dependencies[key]) && isSetString.isSetString(context.dependencies[key].version) ? context.dependencies[key].version : _package.getPackageVersion(key)}` : ""} (${(isString.isString(context.dependencies[key]) ? context.dependencies[key] : context.dependencies[key]?.type) || "dependency"})`).join("\n")}`);
2939
- for (const [key, value] of Object.entries(context.dependencies)) {
2940
- const version = isSetObject.isSetObject(value) && semverFns.isValidRange(value.version) && value.version || _package.getPackageVersion(key);
2941
- await installPackage(context, version ? `${_package.getPackageName(key)}@${String(version)}` : _package.getPackageName(key), (isSetString.isSetString(value) ? value : value.type) === "devDependency");
2938
+ context.dependencies.unstorage = "latest";
2942
2939
  }
2940
+ await Promise.all([
2941
+ Promise.all(Object.entries(context.dependencies).map(async ([name, version]) => installPackage(context, `${_package.getPackageName(name)}@${String(version)}`, false))),
2942
+ Promise.all(Object.entries(context.devDependencies).map(async ([name, version]) => installPackage(context, `${_package.getPackageName(name)}@${String(version)}`, true)))
2943
+ ]);
2943
2944
  }
2944
2945
  chunkSHUYVCID_js.__name(installDependencies, "installDependencies");
2945
2946
  async function resolveTsconfigChanges(context) {
@@ -3348,7 +3349,7 @@ ${console$1.formatLogMessage(context.config)}`);
3348
3349
  await this.#executeEnvironments(async (context) => {
3349
3350
  context.log(types.LogLevelLabel.TRACE, `Initializing the processing options for the Powerlines project.`);
3350
3351
  await this.callPreHook(context, "new");
3351
- const files = await listFiles.listFiles(joinPaths.joinPaths(context.corePackagePath, "files/common/**/*.hbs"));
3352
+ const files = await listFiles.listFiles(joinPaths.joinPaths(context.powerlinesPath, "files/common/**/*.hbs"));
3352
3353
  for (const file of files) {
3353
3354
  context.log(types.LogLevelLabel.TRACE, `Adding template file: ${file}`);
3354
3355
  const template = Handlebars__default.default.compile(file);
@@ -3356,14 +3357,14 @@ ${console$1.formatLogMessage(context.config)}`);
3356
3357
  }
3357
3358
  await this.callNormalHook(context, "new");
3358
3359
  if (context.config.projectType === "application") {
3359
- const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.corePackagePath, "files/application/**/*.hbs"));
3360
+ const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.powerlinesPath, "files/application/**/*.hbs"));
3360
3361
  for (const file of files2) {
3361
3362
  context.log(types.LogLevelLabel.TRACE, `Adding application template file: ${file}`);
3362
3363
  const template = Handlebars__default.default.compile(file);
3363
3364
  await writeFile(context.log, joinPaths.joinPaths(context.config.projectRoot, file.replace(".hbs", "")), template(context));
3364
3365
  }
3365
3366
  } else {
3366
- const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.corePackagePath, "files/library/**/*.hbs"));
3367
+ const files2 = await listFiles.listFiles(joinPaths.joinPaths(context.powerlinesPath, "files/library/**/*.hbs"));
3367
3368
  for (const file of files2) {
3368
3369
  context.log(types.LogLevelLabel.TRACE, `Adding library template file: ${file}`);
3369
3370
  const template = Handlebars__default.default.compile(file);
@@ -1,4 +1,4 @@
1
- import { withExecutor } from './chunk-4T5LIOS7.mjs';
1
+ import { withExecutor } from './chunk-UQ4OVGQQ.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 chunkMQKPEN3X_js = require('./chunk-MQKPEN3X.js');
3
+ var chunkLRONVULK_js = require('./chunk-LRONVULK.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 = chunkMQKPEN3X_js.withExecutor("prepare", executorFn);
22
+ var executor = chunkLRONVULK_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-4T5LIOS7.mjs';
1
+ import { withExecutor } from './chunk-UQ4OVGQQ.mjs';
2
2
  import { __name } from './chunk-O6YSETKJ.mjs';
3
3
 
4
4
  // src/executors/docs/executor.ts
@@ -56,7 +56,7 @@ import { Union } from 'unionfs';
56
56
  import { isObject } from '@stryke/type-checks/is-object';
57
57
  import { isDirectory } from '@stryke/fs/is-file';
58
58
  import { readFile, readFileIfExistingSync } from '@stryke/fs/read-file';
59
- import { isValidRange, parseVersion } from '@stryke/fs/semver-fns';
59
+ import { parseVersion } from '@stryke/fs/semver-fns';
60
60
  import { getParentPath } from '@stryke/path/get-parent-path';
61
61
  import path from 'node:path';
62
62
  import { hasPackageVersion, getPackageName, getPackageVersion } from '@stryke/string-format/package';
@@ -1558,16 +1558,23 @@ var PowerlinesContext = class _PowerlinesContext {
1558
1558
  static async from(workspaceRoot, config) {
1559
1559
  const context = new _PowerlinesContext(await loadWorkspaceConfig(workspaceRoot, config.root));
1560
1560
  await context.withUserConfig(config);
1561
- context.corePackagePath = process.env.POWERLINES_LOCAL ? joinPaths$1(context.workspaceConfig.workspaceRoot, "packages/core") : await resolvePackage("powerlines");
1562
- if (!context.corePackagePath) {
1563
- throw new Error("Could not resolve powerlines package location.");
1561
+ context.powerlinesPath = await resolvePackage("powerlines");
1562
+ if (!context.powerlinesPath) {
1563
+ throw new Error("Could not resolve `powerlines` package location.");
1564
1564
  }
1565
1565
  return context;
1566
1566
  }
1567
+ /**
1568
+ * An object containing the dependencies that should be installed for the project
1569
+ */
1567
1570
  dependencies = {};
1571
+ /**
1572
+ * An object containing the development dependencies that should be installed for the project
1573
+ */
1574
+ devDependencies = {};
1568
1575
  reflections = {};
1569
1576
  persistedMeta = void 0;
1570
- corePackagePath;
1577
+ powerlinesPath;
1571
1578
  packageJson;
1572
1579
  projectJson = void 0;
1573
1580
  resolver;
@@ -1657,7 +1664,7 @@ var PowerlinesContext = class _PowerlinesContext {
1657
1664
  * Get the path to the artifacts directory for the project
1658
1665
  */
1659
1666
  get artifactsPath() {
1660
- return joinPaths$1(this.workspaceConfig.workspaceRoot, this.config.projectRoot, ".storm");
1667
+ return joinPaths$1(this.workspaceConfig.workspaceRoot, this.config.projectRoot, this.config.output.artifactsFolder);
1661
1668
  }
1662
1669
  /**
1663
1670
  * Get the path to the builtin modules used by the project
@@ -1843,7 +1850,7 @@ var PowerlinesContext = class _PowerlinesContext {
1843
1850
  mode: "virtual",
1844
1851
  dts: joinPaths$1(cacheKey.projectRoot, `${config.framework ?? "powerlines"}.d.ts`),
1845
1852
  builtinPrefix: config.framework ?? "powerlines",
1846
- runtimeFolder: joinPaths$1(cacheKey.projectRoot, `.${config.framework ?? "powerlines"}`),
1853
+ artifactsFolder: joinPaths$1(cacheKey.projectRoot, `.${config.framework ?? "powerlines"}`),
1847
1854
  assets: [
1848
1855
  {
1849
1856
  glob: "LICENSE"
@@ -2057,9 +2064,9 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends P
2057
2064
  static async fromConfig(workspaceConfig, config) {
2058
2065
  const context = new _PowerlinesEnvironmentContext(config, workspaceConfig);
2059
2066
  await context.init();
2060
- context.corePackagePath = process.env.POWERLINES_LOCAL ? joinPaths(context.workspaceConfig.workspaceRoot, "packages/core") : await resolvePackage("powerlines");
2061
- if (!context.corePackagePath) {
2062
- throw new Error("Could not resolve powerlines package location.");
2067
+ context.powerlinesPath = await resolvePackage("powerlines");
2068
+ if (!context.powerlinesPath) {
2069
+ throw new Error("Could not resolve `powerlines` package location.");
2063
2070
  }
2064
2071
  return context;
2065
2072
  }
@@ -2177,9 +2184,9 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends PowerlinesContext
2177
2184
  static async from(workspaceRoot, config) {
2178
2185
  const context = new _PowerlinesAPIContext(await loadWorkspaceConfig(workspaceRoot, config.root));
2179
2186
  await context.withUserConfig(config);
2180
- context.corePackagePath = process.env.POWERLINES_LOCAL ? joinPaths(context.workspaceConfig.workspaceRoot, "packages/core") : await resolvePackage("powerlines");
2181
- if (!context.corePackagePath) {
2182
- throw new Error("Could not resolve powerlines package location.");
2187
+ context.powerlinesPath = await resolvePackage("powerlines");
2188
+ if (!context.powerlinesPath) {
2189
+ throw new Error("Could not resolve `powerlines` package location.");
2183
2190
  }
2184
2191
  return context;
2185
2192
  }
@@ -2285,7 +2292,7 @@ async function installPackage(context, packageName, dev = false) {
2285
2292
  } else {
2286
2293
  context.log(LogLevelLabel.WARN, `The package "${packageName}" is not installed. Since the "skipInstalls" option is set to true, it will not be installed automatically.`);
2287
2294
  }
2288
- } else if (hasPackageVersion(packageName) && !process.env.STORM_STACK_SKIP_VERSION_CHECK) {
2295
+ } else if (hasPackageVersion(packageName) && !process.env.POWERLINES_SKIP_VERSION_CHECK) {
2289
2296
  const isMatching = await doesPackageMatch(getPackageName(packageName), getPackageVersion(packageName), context.config.projectRoot);
2290
2297
  if (!isMatching) {
2291
2298
  const packageListing = await getPackageListing(getPackageName(packageName), {
@@ -2895,20 +2902,14 @@ __name(generateTypes, "generateTypes");
2895
2902
  async function installDependencies(context) {
2896
2903
  context.log(LogLevelLabel.TRACE, `Checking and installing missing project dependencies.`);
2897
2904
  context.dependencies ??= {};
2898
- context.dependencies["powerlines"] = {
2899
- type: "dependency"
2900
- };
2905
+ context.dependencies.powerlines = "latest";
2901
2906
  if (context.config.projectType === "application") {
2902
- context.dependencies.unstorage = {
2903
- type: "dependency"
2904
- };
2905
- }
2906
- context.log(LogLevelLabel.TRACE, `The following packages must be installed as dependencies:
2907
- ${Object.keys(context.dependencies).map((key) => ` - ${getPackageName(key)}${hasPackageVersion(key) || isSetObject(context.dependencies[key]) && isSetString(context.dependencies[key].version) ? ` v${isSetObject(context.dependencies[key]) && isSetString(context.dependencies[key].version) ? context.dependencies[key].version : getPackageVersion(key)}` : ""} (${(isString(context.dependencies[key]) ? context.dependencies[key] : context.dependencies[key]?.type) || "dependency"})`).join("\n")}`);
2908
- for (const [key, value] of Object.entries(context.dependencies)) {
2909
- const version = isSetObject(value) && isValidRange(value.version) && value.version || getPackageVersion(key);
2910
- await installPackage(context, version ? `${getPackageName(key)}@${String(version)}` : getPackageName(key), (isSetString(value) ? value : value.type) === "devDependency");
2907
+ context.dependencies.unstorage = "latest";
2911
2908
  }
2909
+ await Promise.all([
2910
+ Promise.all(Object.entries(context.dependencies).map(async ([name, version]) => installPackage(context, `${getPackageName(name)}@${String(version)}`, false))),
2911
+ Promise.all(Object.entries(context.devDependencies).map(async ([name, version]) => installPackage(context, `${getPackageName(name)}@${String(version)}`, true)))
2912
+ ]);
2912
2913
  }
2913
2914
  __name(installDependencies, "installDependencies");
2914
2915
  async function resolveTsconfigChanges(context) {
@@ -3317,7 +3318,7 @@ ${formatLogMessage(context.config)}`);
3317
3318
  await this.#executeEnvironments(async (context) => {
3318
3319
  context.log(LogLevelLabel.TRACE, `Initializing the processing options for the Powerlines project.`);
3319
3320
  await this.callPreHook(context, "new");
3320
- const files = await listFiles(joinPaths(context.corePackagePath, "files/common/**/*.hbs"));
3321
+ const files = await listFiles(joinPaths(context.powerlinesPath, "files/common/**/*.hbs"));
3321
3322
  for (const file of files) {
3322
3323
  context.log(LogLevelLabel.TRACE, `Adding template file: ${file}`);
3323
3324
  const template = Handlebars.compile(file);
@@ -3325,14 +3326,14 @@ ${formatLogMessage(context.config)}`);
3325
3326
  }
3326
3327
  await this.callNormalHook(context, "new");
3327
3328
  if (context.config.projectType === "application") {
3328
- const files2 = await listFiles(joinPaths(context.corePackagePath, "files/application/**/*.hbs"));
3329
+ const files2 = await listFiles(joinPaths(context.powerlinesPath, "files/application/**/*.hbs"));
3329
3330
  for (const file of files2) {
3330
3331
  context.log(LogLevelLabel.TRACE, `Adding application template file: ${file}`);
3331
3332
  const template = Handlebars.compile(file);
3332
3333
  await writeFile(context.log, joinPaths(context.config.projectRoot, file.replace(".hbs", "")), template(context));
3333
3334
  }
3334
3335
  } else {
3335
- const files2 = await listFiles(joinPaths(context.corePackagePath, "files/library/**/*.hbs"));
3336
+ const files2 = await listFiles(joinPaths(context.powerlinesPath, "files/library/**/*.hbs"));
3336
3337
  for (const file of files2) {
3337
3338
  context.log(LogLevelLabel.TRACE, `Adding library template file: ${file}`);
3338
3339
  const template = Handlebars.compile(file);
package/dist/executors.js CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  require('./chunk-XO62WWX4.js');
4
- var chunkMQQZWVFL_js = require('./chunk-MQQZWVFL.js');
5
- var chunkBM7JS6C2_js = require('./chunk-BM7JS6C2.js');
6
- var chunkVFYKWLFU_js = require('./chunk-VFYKWLFU.js');
7
- var chunk6SBXXTFC_js = require('./chunk-6SBXXTFC.js');
8
- var chunkY7LKUYQR_js = require('./chunk-Y7LKUYQR.js');
9
- require('./chunk-MQKPEN3X.js');
4
+ var chunk2KAWJURA_js = require('./chunk-2KAWJURA.js');
5
+ var chunkGPR4LRJV_js = require('./chunk-GPR4LRJV.js');
6
+ var chunk5DSETHHW_js = require('./chunk-5DSETHHW.js');
7
+ var chunkRK2TJCMI_js = require('./chunk-RK2TJCMI.js');
8
+ var chunkJ2XU6B3K_js = require('./chunk-J2XU6B3K.js');
9
+ require('./chunk-LRONVULK.js');
10
10
  require('./chunk-HHPODCTP.js');
11
11
  require('./chunk-SHUYVCID.js');
12
12
 
@@ -14,21 +14,21 @@ require('./chunk-SHUYVCID.js');
14
14
 
15
15
  Object.defineProperty(exports, "clean", {
16
16
  enumerable: true,
17
- get: function () { return chunkMQQZWVFL_js.executor_default; }
17
+ get: function () { return chunk2KAWJURA_js.executor_default; }
18
18
  });
19
19
  Object.defineProperty(exports, "docs", {
20
20
  enumerable: true,
21
- get: function () { return chunkBM7JS6C2_js.executor_default; }
21
+ get: function () { return chunkGPR4LRJV_js.executor_default; }
22
22
  });
23
23
  Object.defineProperty(exports, "lint", {
24
24
  enumerable: true,
25
- get: function () { return chunkVFYKWLFU_js.executor_default; }
25
+ get: function () { return chunk5DSETHHW_js.executor_default; }
26
26
  });
27
27
  Object.defineProperty(exports, "prepare", {
28
28
  enumerable: true,
29
- get: function () { return chunk6SBXXTFC_js.executor_default; }
29
+ get: function () { return chunkRK2TJCMI_js.executor_default; }
30
30
  });
31
31
  Object.defineProperty(exports, "build", {
32
32
  enumerable: true,
33
- get: function () { return chunkY7LKUYQR_js.executor_default; }
33
+ get: function () { return chunkJ2XU6B3K_js.executor_default; }
34
34
  });
@@ -1,9 +1,9 @@
1
1
  import './chunk-UV4HQO3Y.mjs';
2
- export { executor_default as clean } from './chunk-HCFUFMAF.mjs';
3
- export { executor_default as docs } from './chunk-WAQHDLQP.mjs';
4
- export { executor_default as lint } from './chunk-EJ5N22VV.mjs';
5
- export { executor_default as prepare } from './chunk-GZAHD3HX.mjs';
6
- export { executor_default as build } from './chunk-XSNPOHTI.mjs';
7
- import './chunk-4T5LIOS7.mjs';
2
+ export { executor_default as clean } from './chunk-E5KDMPYX.mjs';
3
+ export { executor_default as docs } from './chunk-THDQE26D.mjs';
4
+ export { executor_default as lint } from './chunk-KO42I6KA.mjs';
5
+ export { executor_default as prepare } from './chunk-CNNNEVWJ.mjs';
6
+ export { executor_default as build } from './chunk-QAEGJGQS.mjs';
7
+ import './chunk-UQ4OVGQQ.mjs';
8
8
  import './chunk-CYWOTYVX.mjs';
9
9
  import './chunk-O6YSETKJ.mjs';
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
3
  require('./chunk-XO62WWX4.js');
4
- var chunkMQQZWVFL_js = require('./chunk-MQQZWVFL.js');
5
- var chunkBM7JS6C2_js = require('./chunk-BM7JS6C2.js');
6
- var chunkVFYKWLFU_js = require('./chunk-VFYKWLFU.js');
7
- var chunk6SBXXTFC_js = require('./chunk-6SBXXTFC.js');
4
+ var chunk2KAWJURA_js = require('./chunk-2KAWJURA.js');
5
+ var chunkGPR4LRJV_js = require('./chunk-GPR4LRJV.js');
6
+ var chunk5DSETHHW_js = require('./chunk-5DSETHHW.js');
7
+ var chunkRK2TJCMI_js = require('./chunk-RK2TJCMI.js');
8
8
  require('./chunk-N2YKXZ5R.js');
9
9
  var chunkWUJKJGEW_js = require('./chunk-WUJKJGEW.js');
10
10
  var chunkZ4BJ37JY_js = require('./chunk-Z4BJ37JY.js');
11
- var chunkY7LKUYQR_js = require('./chunk-Y7LKUYQR.js');
12
- require('./chunk-MQKPEN3X.js');
11
+ var chunkJ2XU6B3K_js = require('./chunk-J2XU6B3K.js');
12
+ require('./chunk-LRONVULK.js');
13
13
  require('./chunk-HHPODCTP.js');
14
14
  require('./chunk-SHUYVCID.js');
15
15
 
@@ -17,19 +17,19 @@ require('./chunk-SHUYVCID.js');
17
17
 
18
18
  Object.defineProperty(exports, "clean", {
19
19
  enumerable: true,
20
- get: function () { return chunkMQQZWVFL_js.executor_default; }
20
+ get: function () { return chunk2KAWJURA_js.executor_default; }
21
21
  });
22
22
  Object.defineProperty(exports, "docs", {
23
23
  enumerable: true,
24
- get: function () { return chunkBM7JS6C2_js.executor_default; }
24
+ get: function () { return chunkGPR4LRJV_js.executor_default; }
25
25
  });
26
26
  Object.defineProperty(exports, "lint", {
27
27
  enumerable: true,
28
- get: function () { return chunkVFYKWLFU_js.executor_default; }
28
+ get: function () { return chunk5DSETHHW_js.executor_default; }
29
29
  });
30
30
  Object.defineProperty(exports, "prepare", {
31
31
  enumerable: true,
32
- get: function () { return chunk6SBXXTFC_js.executor_default; }
32
+ get: function () { return chunkRK2TJCMI_js.executor_default; }
33
33
  });
34
34
  Object.defineProperty(exports, "sync", {
35
35
  enumerable: true,
@@ -49,5 +49,5 @@ Object.defineProperty(exports, "name", {
49
49
  });
50
50
  Object.defineProperty(exports, "build", {
51
51
  enumerable: true,
52
- get: function () { return chunkY7LKUYQR_js.executor_default; }
52
+ get: function () { return chunkJ2XU6B3K_js.executor_default; }
53
53
  });
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import './chunk-UV4HQO3Y.mjs';
2
- export { executor_default as clean } from './chunk-HCFUFMAF.mjs';
3
- export { executor_default as docs } from './chunk-WAQHDLQP.mjs';
4
- export { executor_default as lint } from './chunk-EJ5N22VV.mjs';
5
- export { executor_default as prepare } from './chunk-GZAHD3HX.mjs';
2
+ export { executor_default as clean } from './chunk-E5KDMPYX.mjs';
3
+ export { executor_default as docs } from './chunk-THDQE26D.mjs';
4
+ export { executor_default as lint } from './chunk-KO42I6KA.mjs';
5
+ export { executor_default as prepare } from './chunk-CNNNEVWJ.mjs';
6
6
  import './chunk-23KFTIT2.mjs';
7
7
  export { generator_default as sync, generatorFn as syncGenerator } from './chunk-326QB2VK.mjs';
8
8
  export { createNodesV2, name } from './chunk-22QO45EK.mjs';
9
- export { executor_default as build } from './chunk-XSNPOHTI.mjs';
10
- import './chunk-4T5LIOS7.mjs';
9
+ export { executor_default as build } from './chunk-QAEGJGQS.mjs';
10
+ import './chunk-UQ4OVGQQ.mjs';
11
11
  import './chunk-CYWOTYVX.mjs';
12
12
  import './chunk-O6YSETKJ.mjs';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkMQKPEN3X_js = require('../../chunk-MQKPEN3X.js');
3
+ var chunkLRONVULK_js = require('../../chunk-LRONVULK.js');
4
4
  require('../../chunk-HHPODCTP.js');
5
5
  require('../../chunk-SHUYVCID.js');
6
6
 
@@ -8,5 +8,5 @@ require('../../chunk-SHUYVCID.js');
8
8
 
9
9
  Object.defineProperty(exports, "withExecutor", {
10
10
  enumerable: true,
11
- get: function () { return chunkMQKPEN3X_js.withExecutor; }
11
+ get: function () { return chunkLRONVULK_js.withExecutor; }
12
12
  });
@@ -1,3 +1,3 @@
1
- export { withExecutor } from '../../chunk-4T5LIOS7.mjs';
1
+ export { withExecutor } from '../../chunk-UQ4OVGQQ.mjs';
2
2
  import '../../chunk-CYWOTYVX.mjs';
3
3
  import '../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkY7LKUYQR_js = require('../../../chunk-Y7LKUYQR.js');
6
- require('../../../chunk-MQKPEN3X.js');
5
+ var chunkJ2XU6B3K_js = require('../../../chunk-J2XU6B3K.js');
6
+ require('../../../chunk-LRONVULK.js');
7
7
  require('../../../chunk-HHPODCTP.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkY7LKUYQR_js.executor_default; }
14
+ get: function () { return chunkJ2XU6B3K_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkY7LKUYQR_js.executorFn; }
18
+ get: function () { return chunkJ2XU6B3K_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-XSNPOHTI.mjs';
2
- import '../../../chunk-4T5LIOS7.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-QAEGJGQS.mjs';
2
+ import '../../../chunk-UQ4OVGQQ.mjs';
3
3
  import '../../../chunk-CYWOTYVX.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkMQQZWVFL_js = require('../../../chunk-MQQZWVFL.js');
6
- require('../../../chunk-MQKPEN3X.js');
5
+ var chunk2KAWJURA_js = require('../../../chunk-2KAWJURA.js');
6
+ require('../../../chunk-LRONVULK.js');
7
7
  require('../../../chunk-HHPODCTP.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkMQQZWVFL_js.executor_default; }
14
+ get: function () { return chunk2KAWJURA_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkMQQZWVFL_js.executorFn; }
18
+ get: function () { return chunk2KAWJURA_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-HCFUFMAF.mjs';
2
- import '../../../chunk-4T5LIOS7.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-E5KDMPYX.mjs';
2
+ import '../../../chunk-UQ4OVGQQ.mjs';
3
3
  import '../../../chunk-CYWOTYVX.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkBM7JS6C2_js = require('../../../chunk-BM7JS6C2.js');
6
- require('../../../chunk-MQKPEN3X.js');
5
+ var chunkGPR4LRJV_js = require('../../../chunk-GPR4LRJV.js');
6
+ require('../../../chunk-LRONVULK.js');
7
7
  require('../../../chunk-HHPODCTP.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkBM7JS6C2_js.executor_default; }
14
+ get: function () { return chunkGPR4LRJV_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkBM7JS6C2_js.executorFn; }
18
+ get: function () { return chunkGPR4LRJV_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-WAQHDLQP.mjs';
2
- import '../../../chunk-4T5LIOS7.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-THDQE26D.mjs';
2
+ import '../../../chunk-UQ4OVGQQ.mjs';
3
3
  import '../../../chunk-CYWOTYVX.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkVFYKWLFU_js = require('../../../chunk-VFYKWLFU.js');
6
- require('../../../chunk-MQKPEN3X.js');
5
+ var chunk5DSETHHW_js = require('../../../chunk-5DSETHHW.js');
6
+ require('../../../chunk-LRONVULK.js');
7
7
  require('../../../chunk-HHPODCTP.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunkVFYKWLFU_js.executor_default; }
14
+ get: function () { return chunk5DSETHHW_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunkVFYKWLFU_js.executorFn; }
18
+ get: function () { return chunk5DSETHHW_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-EJ5N22VV.mjs';
2
- import '../../../chunk-4T5LIOS7.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-KO42I6KA.mjs';
2
+ import '../../../chunk-UQ4OVGQQ.mjs';
3
3
  import '../../../chunk-CYWOTYVX.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunk6SBXXTFC_js = require('../../../chunk-6SBXXTFC.js');
6
- require('../../../chunk-MQKPEN3X.js');
5
+ var chunkRK2TJCMI_js = require('../../../chunk-RK2TJCMI.js');
6
+ require('../../../chunk-LRONVULK.js');
7
7
  require('../../../chunk-HHPODCTP.js');
8
8
  require('../../../chunk-SHUYVCID.js');
9
9
 
@@ -11,9 +11,9 @@ require('../../../chunk-SHUYVCID.js');
11
11
 
12
12
  Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
- get: function () { return chunk6SBXXTFC_js.executor_default; }
14
+ get: function () { return chunkRK2TJCMI_js.executor_default; }
15
15
  });
16
16
  Object.defineProperty(exports, "executorFn", {
17
17
  enumerable: true,
18
- get: function () { return chunk6SBXXTFC_js.executorFn; }
18
+ get: function () { return chunkRK2TJCMI_js.executorFn; }
19
19
  });
@@ -1,4 +1,4 @@
1
- export { executor_default as default, executorFn } from '../../../chunk-GZAHD3HX.mjs';
2
- import '../../../chunk-4T5LIOS7.mjs';
1
+ export { executor_default as default, executorFn } from '../../../chunk-CNNNEVWJ.mjs';
2
+ import '../../../chunk-UQ4OVGQQ.mjs';
3
3
  import '../../../chunk-CYWOTYVX.mjs';
4
4
  import '../../../chunk-O6YSETKJ.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/nx",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "A Nx plugin to support Powerlines development in Nx monorepos.",
5
5
  "repository": {
6
6
  "type": "github",
@@ -154,7 +154,7 @@
154
154
  "defu": "^6.1.4",
155
155
  "jiti": "^2.6.1",
156
156
  "nx": "21.5.3",
157
- "powerlines": "^0.3.0"
157
+ "powerlines": "^0.4.0"
158
158
  },
159
159
  "devDependencies": {
160
160
  "@nx/workspace": "21.5.3",
@@ -168,5 +168,5 @@
168
168
  "publishConfig": { "access": "public" },
169
169
  "executors": "./executors.json",
170
170
  "generators": "./generators.json",
171
- "gitHead": "fe5e201169810dd966ee328fa3dabf57077eea36"
171
+ "gitHead": "f4d0c8a8f0036ac8de46ac96afd9336a390a7268"
172
172
  }