@powerlines/nx 0.11.253 → 0.11.255

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 (44) hide show
  1. package/dist/src/base/base-executor.js +1 -1
  2. package/dist/src/base/base-executor.mjs +1 -1
  3. package/dist/src/base/base-executor.untyped.d.mts +1 -1
  4. package/dist/src/base/base-executor.untyped.d.ts +1 -1
  5. package/dist/src/base/index.d.mts +1 -1
  6. package/dist/src/base/index.js +1 -1
  7. package/dist/src/base/index.mjs +1 -1
  8. package/dist/src/{base-executor-C6v5AHYW.mjs → base-executor-C5zOSF8G.mjs} +14 -10
  9. package/dist/src/base-executor-C5zOSF8G.mjs.map +1 -0
  10. package/dist/src/base-executor-CDMeDnfo.d.mts.map +1 -1
  11. package/dist/src/{base-executor-Dw-fhsUi.mjs → base-executor-DkPqPuGO.mjs} +14 -10
  12. package/dist/src/base-executor-DkPqPuGO.mjs.map +1 -0
  13. package/dist/src/{base-executor-BWwpclQE.js → base-executor-DqLkQwd_.js} +13 -9
  14. package/dist/src/{base-executor-DpQbYOg0.js → base-executor-tq_hb0zU.js} +13 -9
  15. package/dist/src/base-executor.untyped-DBccuF6E.d.ts +7 -0
  16. package/dist/src/base-executor.untyped-DBccuF6E.d.ts.map +1 -0
  17. package/dist/src/executors/build/executor.js +1 -1
  18. package/dist/src/executors/build/executor.mjs +1 -1
  19. package/dist/src/executors/build/untyped.d.ts +2 -2
  20. package/dist/src/executors/clean/executor.js +1 -1
  21. package/dist/src/executors/clean/executor.mjs +1 -1
  22. package/dist/src/executors/clean/untyped.d.mts +2 -2
  23. package/dist/src/executors/clean/untyped.d.ts +2 -2
  24. package/dist/src/executors/docs/executor.js +1 -1
  25. package/dist/src/executors/docs/executor.mjs +1 -1
  26. package/dist/src/executors/docs/untyped.d.mts +2 -2
  27. package/dist/src/executors/lint/executor.js +1 -1
  28. package/dist/src/executors/lint/executor.mjs +1 -1
  29. package/dist/src/executors/lint/untyped.d.mts +2 -2
  30. package/dist/src/executors/lint/untyped.d.ts +2 -2
  31. package/dist/src/executors/prepare/executor.js +1 -1
  32. package/dist/src/executors/prepare/executor.mjs +1 -1
  33. package/dist/src/executors/prepare/untyped.d.mts +2 -2
  34. package/dist/src/generators/sync/untyped.d.mts +2 -2
  35. package/dist/src/index.d.mts +1 -1
  36. package/dist/src/index.js +1 -1
  37. package/dist/src/index.mjs +1 -1
  38. package/package.json +3 -3
  39. package/dist/src/base-executor-C6v5AHYW.mjs.map +0 -1
  40. package/dist/src/base-executor-Dw-fhsUi.mjs.map +0 -1
  41. package/dist/src/base-executor.untyped-B24q82iI.d.ts +0 -7
  42. package/dist/src/base-executor.untyped-B24q82iI.d.ts.map +0 -1
  43. package/dist/src/base-executor.untyped-BgwzwrUY.d.mts +0 -7
  44. package/dist/src/base-executor.untyped-BgwzwrUY.d.mts.map +0 -1
@@ -1,4 +1,4 @@
1
1
  require('../config-CGQhS8tm.js');
2
- const require_base_executor = require('../base-executor-BWwpclQE.js');
2
+ const require_base_executor = require('../base-executor-tq_hb0zU.js');
3
3
 
4
4
  exports.withExecutor = require_base_executor.withExecutor;
@@ -1,4 +1,4 @@
1
- import { t as withExecutor } from "../base-executor-Dw-fhsUi.mjs";
1
+ import { t as withExecutor } from "../base-executor-C5zOSF8G.mjs";
2
2
  import "../config-LoR-NIJg.mjs";
3
3
 
4
4
  export { withExecutor };
@@ -1,2 +1,2 @@
1
- import { t as _default } from "../base-executor.untyped-BgwzwrUY.mjs";
1
+ import { t as _default } from "../base-executor.untyped-imww7Gm9.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as _default } from "../base-executor.untyped-B24q82iI.js";
1
+ import { t as _default } from "../base-executor.untyped-DCiPQvRf.js";
2
2
  export = _default;
@@ -1,4 +1,4 @@
1
1
  import { n as withExecutor, t as PowerlinesExecutorContext } from "../base-executor-CDMeDnfo.mjs";
2
- import "../base-executor.untyped-BgwzwrUY.mjs";
2
+ import "../base-executor.untyped-imww7Gm9.mjs";
3
3
  import "../index-LhFpnU-f.mjs";
4
4
  export { PowerlinesExecutorContext, withExecutor };
@@ -1,5 +1,5 @@
1
1
  require('../config-CGQhS8tm.js');
2
- const require_base_executor = require('../base-executor-BWwpclQE.js');
2
+ const require_base_executor = require('../base-executor-tq_hb0zU.js');
3
3
  require('../base-executor.untyped-Cz1Zw_02.js');
4
4
  require('../base-B7jekb-W.js');
5
5
 
@@ -1,4 +1,4 @@
1
- import { t as withExecutor } from "../base-executor-Dw-fhsUi.mjs";
1
+ import { t as withExecutor } from "../base-executor-C5zOSF8G.mjs";
2
2
  import "../config-LoR-NIJg.mjs";
3
3
  import "../base-executor.untyped-C1pQETnQ.mjs";
4
4
  import "../base-BRSa-clf.mjs";
@@ -78,7 +78,7 @@ import { resolve as resolve$1 } from "node:path";
78
78
  import "unplugin";
79
79
 
80
80
  //#region ../powerlines/package.json
81
- var version = "0.40.11";
81
+ var version = "0.40.14";
82
82
 
83
83
  //#endregion
84
84
  //#region ../powerlines/src/typescript/ts-morph.ts
@@ -2013,7 +2013,7 @@ var VirtualFileSystem = class VirtualFileSystem {
2013
2013
  let path = id;
2014
2014
  if (path.includes("{") || path.includes("}")) path = replacePathTokens(this.#context, path);
2015
2015
  if (options.skipAlias !== true) path = this.resolveAlias(path);
2016
- if (isAbsolutePath(path)) return path;
2016
+ if (isAbsolutePath(path) && (!options.isFile || !await this.isDirectory(path))) return path;
2017
2017
  const resolverCacheKey = murmurhash({
2018
2018
  path: this.#normalizeId(path),
2019
2019
  importer,
@@ -2028,9 +2028,11 @@ var VirtualFileSystem = class VirtualFileSystem {
2028
2028
  if (!result) {
2029
2029
  const paths = options.paths ?? [];
2030
2030
  if (importer && !paths.includes(importer)) paths.push(importer);
2031
- paths.push(this.#context.workspaceConfig.workspaceRoot);
2032
- paths.push(appendPath(this.#context.config.root, this.#context.workspaceConfig.workspaceRoot));
2033
- paths.push(appendPath(joinPaths$1(this.#context.config.root, "src"), this.#context.workspaceConfig.workspaceRoot));
2031
+ if (!importer) {
2032
+ paths.push(this.#context.workspaceConfig.workspaceRoot);
2033
+ paths.push(appendPath(this.#context.config.root, this.#context.workspaceConfig.workspaceRoot));
2034
+ paths.push(appendPath(joinPaths$1(this.#context.config.root, "src"), this.#context.workspaceConfig.workspaceRoot));
2035
+ }
2034
2036
  paths.push(...Object.keys(this.#context.tsconfig?.options?.paths ?? {}).filter((tsconfigPath) => path.startsWith(tsconfigPath.replace(/\*$/, ""))).map((tsconfigPath) => this.#context.tsconfig?.options?.paths?.[tsconfigPath]).flat().filter(Boolean).map((tsconfigPath) => appendPath(tsconfigPath, this.#context.workspaceConfig.workspaceRoot)));
2035
2037
  for (const combination of getResolutionCombinations(path, { paths })) {
2036
2038
  const { relativeKey, adapter } = this.#getStorage(combination);
@@ -2069,7 +2071,7 @@ var VirtualFileSystem = class VirtualFileSystem {
2069
2071
  let path = id;
2070
2072
  if (path.includes("{") || path.includes("}")) path = replacePathTokens(this.#context, path);
2071
2073
  if (options.skipAlias !== true) path = this.resolveAlias(path);
2072
- if (isAbsolutePath(path)) return path;
2074
+ if (isAbsolutePath(path) && (!options.isFile || !this.isDirectorySync(path))) return path;
2073
2075
  let result;
2074
2076
  if (!this.#context.config.skipCache) {
2075
2077
  result = this.resolverCache.get(this.#normalizeId(path));
@@ -2079,9 +2081,11 @@ var VirtualFileSystem = class VirtualFileSystem {
2079
2081
  if (!result) {
2080
2082
  const paths = options.paths ?? [];
2081
2083
  if (importer && !paths.includes(importer)) paths.push(importer);
2082
- paths.push(this.#context.workspaceConfig.workspaceRoot);
2083
- paths.push(appendPath(this.#context.config.root, this.#context.workspaceConfig.workspaceRoot));
2084
- paths.push(appendPath(joinPaths$1(this.#context.config.root, "src"), this.#context.workspaceConfig.workspaceRoot));
2084
+ if (!importer) {
2085
+ paths.push(this.#context.workspaceConfig.workspaceRoot);
2086
+ paths.push(appendPath(this.#context.config.root, this.#context.workspaceConfig.workspaceRoot));
2087
+ paths.push(appendPath(joinPaths$1(this.#context.config.root, "src"), this.#context.workspaceConfig.workspaceRoot));
2088
+ }
2085
2089
  paths.push(...Object.keys(this.#context.tsconfig?.options?.paths ?? {}).filter((tsconfigPath) => path.startsWith(tsconfigPath.replace(/\*$/, ""))).map((tsconfigPath) => this.#context.tsconfig?.options?.paths?.[tsconfigPath]).flat().filter(Boolean).map((tsconfigPath) => appendPath(tsconfigPath, this.#context.workspaceConfig.workspaceRoot)));
2086
2090
  for (const combination of getResolutionCombinations(path, { paths })) {
2087
2091
  const { relativeKey, adapter } = this.#getStorage(combination);
@@ -4800,4 +4804,4 @@ ${error.stack}` : "Unknown error"}`);
4800
4804
 
4801
4805
  //#endregion
4802
4806
  export { withExecutor as t };
4803
- //# sourceMappingURL=base-executor-C6v5AHYW.mjs.map
4807
+ //# sourceMappingURL=base-executor-C5zOSF8G.mjs.map