@powerlines/nx 0.11.262 → 0.11.265
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.
- package/dist/src/base/base-executor.js +1 -1
- package/dist/src/base/base-executor.mjs +1 -1
- package/dist/src/base/index.js +1 -1
- package/dist/src/base/index.mjs +1 -1
- package/dist/src/{base-executor-FS96Egrh.mjs → base-executor-BFj_3kyS.mjs} +65 -14
- package/dist/src/base-executor-BFj_3kyS.mjs.map +1 -0
- package/dist/src/{base-executor-BeaxMRjJ.js → base-executor-Beez8GRn.js} +64 -13
- package/dist/src/{base-executor-SJIBQwB2.mjs → base-executor-CufDCf4m.mjs} +65 -14
- package/dist/src/base-executor-CufDCf4m.mjs.map +1 -0
- package/dist/src/{base-executor-_Qs1Zf1s.js → base-executor-DS_oP1O6.js} +64 -13
- package/dist/src/executors/build/executor.js +1 -1
- package/dist/src/executors/build/executor.mjs +1 -1
- package/dist/src/executors/build/untyped.d.mts +2 -2
- package/dist/src/executors/build/untyped.d.ts +2 -2
- package/dist/src/executors/clean/executor.js +1 -1
- package/dist/src/executors/clean/executor.mjs +1 -1
- package/dist/src/executors/clean/untyped.d.mts +2 -2
- package/dist/src/executors/docs/executor.js +1 -1
- package/dist/src/executors/docs/executor.mjs +1 -1
- package/dist/src/executors/docs/untyped.d.mts +2 -2
- package/dist/src/executors/docs/untyped.d.ts +2 -2
- package/dist/src/executors/lint/executor.js +1 -1
- package/dist/src/executors/lint/executor.mjs +1 -1
- package/dist/src/executors/lint/untyped.d.ts +2 -2
- package/dist/src/executors/prepare/executor.js +1 -1
- package/dist/src/executors/prepare/executor.mjs +1 -1
- package/dist/src/executors/prepare/untyped.d.mts +2 -2
- package/dist/src/executors/prepare/untyped.d.ts +2 -2
- package/dist/src/generators/sync/untyped.d.ts +2 -2
- package/dist/src/index.js +1 -1
- package/dist/src/index.mjs +1 -1
- package/package.json +10 -10
- package/dist/src/base-executor-FS96Egrh.mjs.map +0 -1
- package/dist/src/base-executor-SJIBQwB2.mjs.map +0 -1
package/dist/src/base/index.js
CHANGED
package/dist/src/base/index.mjs
CHANGED
|
@@ -65,6 +65,7 @@ import { isAbsolutePath } from "@stryke/path/is-type";
|
|
|
65
65
|
import { slash } from "@stryke/path/slash";
|
|
66
66
|
import { Blob as Blob$1 } from "node:buffer";
|
|
67
67
|
import { fileURLToPath } from "node:url";
|
|
68
|
+
import { ResolverFactory } from "oxc-resolver";
|
|
68
69
|
import { isDirectory, isFile } from "@stryke/fs/is-file";
|
|
69
70
|
import { readFile, readFileSync } from "@stryke/fs/read-file";
|
|
70
71
|
import { writeFile, writeFileSync } from "@stryke/fs/write-file";
|
|
@@ -78,7 +79,7 @@ import { resolve as resolve$1 } from "node:path";
|
|
|
78
79
|
import "unplugin";
|
|
79
80
|
|
|
80
81
|
//#region ../powerlines/package.json
|
|
81
|
-
var version = "0.
|
|
82
|
+
var version = "0.41.2";
|
|
82
83
|
|
|
83
84
|
//#endregion
|
|
84
85
|
//#region ../powerlines/src/typescript/ts-morph.ts
|
|
@@ -1915,6 +1916,12 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
1915
1916
|
*/
|
|
1916
1917
|
#storage;
|
|
1917
1918
|
/**
|
|
1919
|
+
* The resolver factory used during module resolution within the virtual file system.
|
|
1920
|
+
*
|
|
1921
|
+
* @see https://github.com/oxc-project/oxc-resolver
|
|
1922
|
+
*/
|
|
1923
|
+
#resolver;
|
|
1924
|
+
/**
|
|
1918
1925
|
* A cache for module resolution results.
|
|
1919
1926
|
*/
|
|
1920
1927
|
#resolverCache;
|
|
@@ -2041,12 +2048,22 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
2041
2048
|
break;
|
|
2042
2049
|
}
|
|
2043
2050
|
}
|
|
2044
|
-
if (!result)
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2051
|
+
if (!result) {
|
|
2052
|
+
try {
|
|
2053
|
+
result = await resolve(path, {
|
|
2054
|
+
...options,
|
|
2055
|
+
paths
|
|
2056
|
+
});
|
|
2057
|
+
} catch {}
|
|
2058
|
+
if (!result) {
|
|
2059
|
+
let index = 0;
|
|
2060
|
+
do {
|
|
2061
|
+
const resolveResult = await this.resolver.async((paths.length > index ? paths[index] : void 0) || this.#context.config.root, path);
|
|
2062
|
+
if (resolveResult.path) result = resolveResult.path;
|
|
2063
|
+
index++;
|
|
2064
|
+
} while (!result && index < paths.length);
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2050
2067
|
}
|
|
2051
2068
|
if (result && !this.#context.config.skipCache) this.resolverCache.set(resolverCacheKey, result);
|
|
2052
2069
|
return result;
|
|
@@ -2094,12 +2111,22 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
2094
2111
|
break;
|
|
2095
2112
|
}
|
|
2096
2113
|
}
|
|
2097
|
-
if (!result)
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2114
|
+
if (!result) {
|
|
2115
|
+
try {
|
|
2116
|
+
result = resolveSync(path, {
|
|
2117
|
+
...options,
|
|
2118
|
+
paths
|
|
2119
|
+
});
|
|
2120
|
+
} catch {}
|
|
2121
|
+
if (!result) {
|
|
2122
|
+
let index = 0;
|
|
2123
|
+
do {
|
|
2124
|
+
const resolveResult = this.resolver.sync((paths.length > index ? paths[index] : void 0) || this.#context.config.root, path);
|
|
2125
|
+
if (resolveResult.path) result = resolveResult.path;
|
|
2126
|
+
index++;
|
|
2127
|
+
} while (!result && index < paths.length);
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2103
2130
|
}
|
|
2104
2131
|
if (result && !this.#context.config.skipCache) this.resolverCache.set(this.#normalizeId(path), result);
|
|
2105
2132
|
return result;
|
|
@@ -2258,6 +2285,30 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
2258
2285
|
return this.#resolverCache;
|
|
2259
2286
|
}
|
|
2260
2287
|
/**
|
|
2288
|
+
* The resolver factory used during module resolution within the virtual file system.
|
|
2289
|
+
*
|
|
2290
|
+
* @remarks
|
|
2291
|
+
* This resolver is configured with the workspace root, project root, TypeScript configuration, alias mappings, and other resolution options specified in the context. It is lazily initialized on first access to optimize performance.
|
|
2292
|
+
*
|
|
2293
|
+
* @see https://github.com/oxc-project/oxc-resolver
|
|
2294
|
+
*/
|
|
2295
|
+
get resolver() {
|
|
2296
|
+
if (!this.#resolver) this.#resolver = new ResolverFactory({
|
|
2297
|
+
roots: [this.#context.workspaceConfig.workspaceRoot, appendPath(this.#context.config.root, this.#context.workspaceConfig.workspaceRoot)],
|
|
2298
|
+
tsconfig: {
|
|
2299
|
+
configFile: this.#context.tsconfig.tsconfigFilePath,
|
|
2300
|
+
references: this.#context.tsconfig.projectReferences && this.#context.tsconfig.projectReferences.length > 0 ? "auto" : void 0
|
|
2301
|
+
},
|
|
2302
|
+
alias: Object.fromEntries(Object.entries(this.#context.alias).map(([key, value]) => [key, [value]])),
|
|
2303
|
+
extensions: this.#context.config.resolve.extensions,
|
|
2304
|
+
mainFields: this.#context.config.resolve.mainFields,
|
|
2305
|
+
conditionNames: this.#context.config.resolve.conditions,
|
|
2306
|
+
symlinks: this.#context.config.resolve.preserveSymlinks,
|
|
2307
|
+
allowPackageExportsInDirectoryResolve: true
|
|
2308
|
+
});
|
|
2309
|
+
return this.#resolver;
|
|
2310
|
+
}
|
|
2311
|
+
/**
|
|
2261
2312
|
* Creates a new instance of the {@link VirtualFileSystem}.
|
|
2262
2313
|
*
|
|
2263
2314
|
* @param context - The context of the virtual file system, typically containing options and logging functions.
|
|
@@ -4808,4 +4859,4 @@ ${error.stack}` : "Unknown error"}`);
|
|
|
4808
4859
|
|
|
4809
4860
|
//#endregion
|
|
4810
4861
|
export { withExecutor as t };
|
|
4811
|
-
//# sourceMappingURL=base-executor-
|
|
4862
|
+
//# sourceMappingURL=base-executor-BFj_3kyS.mjs.map
|