@powerlines/nx 0.11.261 → 0.11.264
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/README.md +72 -34
- 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-C59DiyUh.mjs → base-executor-0AJy4tNT.mjs} +65 -14
- package/dist/src/base-executor-0AJy4tNT.mjs.map +1 -0
- package/dist/src/{base-executor-BeaxMRjJ.js → base-executor-Beez8GRn.js} +64 -13
- package/dist/src/{base-executor-CzLqlwh7.js → base-executor-Bo9fi0tA.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.untyped-B24q82iI.d.ts +7 -0
- package/dist/src/base-executor.untyped-B24q82iI.d.ts.map +1 -0
- 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/clean/untyped.d.ts +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.mts +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-C59DiyUh.mjs.map +0 -1
- package/dist/src/base-executor-SJIBQwB2.mjs.map +0 -1
- package/dist/src/base-executor.untyped-7SvGKXcO.d.mts +0 -7
- package/dist/src/base-executor.untyped-7SvGKXcO.d.mts.map +0 -1
|
@@ -70,6 +70,7 @@ let __stryke_path_is_type = require("@stryke/path/is-type");
|
|
|
70
70
|
let __stryke_path_slash = require("@stryke/path/slash");
|
|
71
71
|
let node_buffer = require("node:buffer");
|
|
72
72
|
let node_url = require("node:url");
|
|
73
|
+
let oxc_resolver = require("oxc-resolver");
|
|
73
74
|
let __stryke_fs_is_file = require("@stryke/fs/is-file");
|
|
74
75
|
let __stryke_fs_read_file = require("@stryke/fs/read-file");
|
|
75
76
|
let __stryke_fs_write_file = require("@stryke/fs/write-file");
|
|
@@ -84,7 +85,7 @@ let node_path = require("node:path");
|
|
|
84
85
|
require("unplugin");
|
|
85
86
|
|
|
86
87
|
//#region ../powerlines/package.json
|
|
87
|
-
var version = "0.
|
|
88
|
+
var version = "0.41.1";
|
|
88
89
|
|
|
89
90
|
//#endregion
|
|
90
91
|
//#region ../powerlines/src/typescript/ts-morph.ts
|
|
@@ -1921,6 +1922,12 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
1921
1922
|
*/
|
|
1922
1923
|
#storage;
|
|
1923
1924
|
/**
|
|
1925
|
+
* The resolver factory used during module resolution within the virtual file system.
|
|
1926
|
+
*
|
|
1927
|
+
* @see https://github.com/oxc-project/oxc-resolver
|
|
1928
|
+
*/
|
|
1929
|
+
#resolver;
|
|
1930
|
+
/**
|
|
1924
1931
|
* A cache for module resolution results.
|
|
1925
1932
|
*/
|
|
1926
1933
|
#resolverCache;
|
|
@@ -2047,12 +2054,22 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
2047
2054
|
break;
|
|
2048
2055
|
}
|
|
2049
2056
|
}
|
|
2050
|
-
if (!result)
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2057
|
+
if (!result) {
|
|
2058
|
+
try {
|
|
2059
|
+
result = await (0, __stryke_fs_resolve.resolve)(path, {
|
|
2060
|
+
...options,
|
|
2061
|
+
paths
|
|
2062
|
+
});
|
|
2063
|
+
} catch {}
|
|
2064
|
+
if (!result) {
|
|
2065
|
+
let index = 0;
|
|
2066
|
+
do {
|
|
2067
|
+
const resolveResult = await this.resolver.async((paths.length > index ? paths[index] : void 0) || this.#context.config.root, path);
|
|
2068
|
+
if (resolveResult.path) result = resolveResult.path;
|
|
2069
|
+
index++;
|
|
2070
|
+
} while (!result && index < paths.length);
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2056
2073
|
}
|
|
2057
2074
|
if (result && !this.#context.config.skipCache) this.resolverCache.set(resolverCacheKey, result);
|
|
2058
2075
|
return result;
|
|
@@ -2100,12 +2117,22 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
2100
2117
|
break;
|
|
2101
2118
|
}
|
|
2102
2119
|
}
|
|
2103
|
-
if (!result)
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2120
|
+
if (!result) {
|
|
2121
|
+
try {
|
|
2122
|
+
result = (0, __stryke_fs_resolve.resolveSync)(path, {
|
|
2123
|
+
...options,
|
|
2124
|
+
paths
|
|
2125
|
+
});
|
|
2126
|
+
} catch {}
|
|
2127
|
+
if (!result) {
|
|
2128
|
+
let index = 0;
|
|
2129
|
+
do {
|
|
2130
|
+
const resolveResult = this.resolver.sync((paths.length > index ? paths[index] : void 0) || this.#context.config.root, path);
|
|
2131
|
+
if (resolveResult.path) result = resolveResult.path;
|
|
2132
|
+
index++;
|
|
2133
|
+
} while (!result && index < paths.length);
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2109
2136
|
}
|
|
2110
2137
|
if (result && !this.#context.config.skipCache) this.resolverCache.set(this.#normalizeId(path), result);
|
|
2111
2138
|
return result;
|
|
@@ -2264,6 +2291,30 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
2264
2291
|
return this.#resolverCache;
|
|
2265
2292
|
}
|
|
2266
2293
|
/**
|
|
2294
|
+
* The resolver factory used during module resolution within the virtual file system.
|
|
2295
|
+
*
|
|
2296
|
+
* @remarks
|
|
2297
|
+
* 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.
|
|
2298
|
+
*
|
|
2299
|
+
* @see https://github.com/oxc-project/oxc-resolver
|
|
2300
|
+
*/
|
|
2301
|
+
get resolver() {
|
|
2302
|
+
if (!this.#resolver) this.#resolver = new oxc_resolver.ResolverFactory({
|
|
2303
|
+
roots: [this.#context.workspaceConfig.workspaceRoot, (0, __stryke_path_append.appendPath)(this.#context.config.root, this.#context.workspaceConfig.workspaceRoot)],
|
|
2304
|
+
tsconfig: {
|
|
2305
|
+
configFile: this.#context.tsconfig.tsconfigFilePath,
|
|
2306
|
+
references: this.#context.tsconfig.projectReferences && this.#context.tsconfig.projectReferences.length > 0 ? "auto" : void 0
|
|
2307
|
+
},
|
|
2308
|
+
alias: Object.fromEntries(Object.entries(this.#context.alias).map(([key, value]) => [key, [value]])),
|
|
2309
|
+
extensions: this.#context.config.resolve.extensions,
|
|
2310
|
+
mainFields: this.#context.config.resolve.mainFields,
|
|
2311
|
+
conditionNames: this.#context.config.resolve.conditions,
|
|
2312
|
+
symlinks: this.#context.config.resolve.preserveSymlinks,
|
|
2313
|
+
allowPackageExportsInDirectoryResolve: true
|
|
2314
|
+
});
|
|
2315
|
+
return this.#resolver;
|
|
2316
|
+
}
|
|
2317
|
+
/**
|
|
2267
2318
|
* Creates a new instance of the {@link VirtualFileSystem}.
|
|
2268
2319
|
*
|
|
2269
2320
|
* @param context - The context of the virtual file system, typically containing options and logging functions.
|
|
@@ -70,6 +70,7 @@ let __stryke_path_is_type = require("@stryke/path/is-type");
|
|
|
70
70
|
let __stryke_path_slash = require("@stryke/path/slash");
|
|
71
71
|
let node_buffer = require("node:buffer");
|
|
72
72
|
let node_url = require("node:url");
|
|
73
|
+
let oxc_resolver = require("oxc-resolver");
|
|
73
74
|
let __stryke_fs_is_file = require("@stryke/fs/is-file");
|
|
74
75
|
let __stryke_fs_read_file = require("@stryke/fs/read-file");
|
|
75
76
|
let __stryke_fs_write_file = require("@stryke/fs/write-file");
|
|
@@ -84,7 +85,7 @@ let node_path = require("node:path");
|
|
|
84
85
|
require("unplugin");
|
|
85
86
|
|
|
86
87
|
//#region ../powerlines/package.json
|
|
87
|
-
var version = "0.
|
|
88
|
+
var version = "0.41.0";
|
|
88
89
|
|
|
89
90
|
//#endregion
|
|
90
91
|
//#region ../powerlines/src/typescript/ts-morph.ts
|
|
@@ -1921,6 +1922,12 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
1921
1922
|
*/
|
|
1922
1923
|
#storage;
|
|
1923
1924
|
/**
|
|
1925
|
+
* The resolver factory used during module resolution within the virtual file system.
|
|
1926
|
+
*
|
|
1927
|
+
* @see https://github.com/oxc-project/oxc-resolver
|
|
1928
|
+
*/
|
|
1929
|
+
#resolver;
|
|
1930
|
+
/**
|
|
1924
1931
|
* A cache for module resolution results.
|
|
1925
1932
|
*/
|
|
1926
1933
|
#resolverCache;
|
|
@@ -2047,12 +2054,22 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
2047
2054
|
break;
|
|
2048
2055
|
}
|
|
2049
2056
|
}
|
|
2050
|
-
if (!result)
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2057
|
+
if (!result) {
|
|
2058
|
+
try {
|
|
2059
|
+
result = await (0, __stryke_fs_resolve.resolve)(path, {
|
|
2060
|
+
...options,
|
|
2061
|
+
paths
|
|
2062
|
+
});
|
|
2063
|
+
} catch {}
|
|
2064
|
+
if (!result) {
|
|
2065
|
+
let index = 0;
|
|
2066
|
+
do {
|
|
2067
|
+
const resolveResult = await this.resolver.async((paths.length > index ? paths[index] : void 0) || this.#context.config.root, path);
|
|
2068
|
+
if (resolveResult.path) result = resolveResult.path;
|
|
2069
|
+
index++;
|
|
2070
|
+
} while (!result && index < paths.length);
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2056
2073
|
}
|
|
2057
2074
|
if (result && !this.#context.config.skipCache) this.resolverCache.set(resolverCacheKey, result);
|
|
2058
2075
|
return result;
|
|
@@ -2100,12 +2117,22 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
2100
2117
|
break;
|
|
2101
2118
|
}
|
|
2102
2119
|
}
|
|
2103
|
-
if (!result)
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2120
|
+
if (!result) {
|
|
2121
|
+
try {
|
|
2122
|
+
result = (0, __stryke_fs_resolve.resolveSync)(path, {
|
|
2123
|
+
...options,
|
|
2124
|
+
paths
|
|
2125
|
+
});
|
|
2126
|
+
} catch {}
|
|
2127
|
+
if (!result) {
|
|
2128
|
+
let index = 0;
|
|
2129
|
+
do {
|
|
2130
|
+
const resolveResult = this.resolver.sync((paths.length > index ? paths[index] : void 0) || this.#context.config.root, path);
|
|
2131
|
+
if (resolveResult.path) result = resolveResult.path;
|
|
2132
|
+
index++;
|
|
2133
|
+
} while (!result && index < paths.length);
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2109
2136
|
}
|
|
2110
2137
|
if (result && !this.#context.config.skipCache) this.resolverCache.set(this.#normalizeId(path), result);
|
|
2111
2138
|
return result;
|
|
@@ -2264,6 +2291,30 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
2264
2291
|
return this.#resolverCache;
|
|
2265
2292
|
}
|
|
2266
2293
|
/**
|
|
2294
|
+
* The resolver factory used during module resolution within the virtual file system.
|
|
2295
|
+
*
|
|
2296
|
+
* @remarks
|
|
2297
|
+
* 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.
|
|
2298
|
+
*
|
|
2299
|
+
* @see https://github.com/oxc-project/oxc-resolver
|
|
2300
|
+
*/
|
|
2301
|
+
get resolver() {
|
|
2302
|
+
if (!this.#resolver) this.#resolver = new oxc_resolver.ResolverFactory({
|
|
2303
|
+
roots: [this.#context.workspaceConfig.workspaceRoot, (0, __stryke_path_append.appendPath)(this.#context.config.root, this.#context.workspaceConfig.workspaceRoot)],
|
|
2304
|
+
tsconfig: {
|
|
2305
|
+
configFile: this.#context.tsconfig.tsconfigFilePath,
|
|
2306
|
+
references: this.#context.tsconfig.projectReferences && this.#context.tsconfig.projectReferences.length > 0 ? "auto" : void 0
|
|
2307
|
+
},
|
|
2308
|
+
alias: Object.fromEntries(Object.entries(this.#context.alias).map(([key, value]) => [key, [value]])),
|
|
2309
|
+
extensions: this.#context.config.resolve.extensions,
|
|
2310
|
+
mainFields: this.#context.config.resolve.mainFields,
|
|
2311
|
+
conditionNames: this.#context.config.resolve.conditions,
|
|
2312
|
+
symlinks: this.#context.config.resolve.preserveSymlinks,
|
|
2313
|
+
allowPackageExportsInDirectoryResolve: true
|
|
2314
|
+
});
|
|
2315
|
+
return this.#resolver;
|
|
2316
|
+
}
|
|
2317
|
+
/**
|
|
2267
2318
|
* Creates a new instance of the {@link VirtualFileSystem}.
|
|
2268
2319
|
*
|
|
2269
2320
|
* @param context - The context of the virtual file system, typically containing options and logging functions.
|
|
@@ -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.1";
|
|
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-CufDCf4m.mjs.map
|