powerlines 0.40.11 → 0.40.13
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/{api-BK_ItDEV.mjs → api-DNliE0lt.mjs} +14 -10
- package/dist/api-DNliE0lt.mjs.map +1 -0
- package/dist/{api-CFjo00HQ.cjs → api-mL7vkH98.cjs} +13 -9
- package/dist/astro.cjs +2 -2
- package/dist/astro.mjs +2 -2
- package/dist/context/index.cjs +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/{esbuild-qIA7SJ08.cjs → esbuild-Cbjh2zI3.cjs} +1 -1
- package/dist/{esbuild-Bk-Zggsg.mjs → esbuild-D9_xvfrO.mjs} +2 -2
- package/dist/{esbuild-Bk-Zggsg.mjs.map → esbuild-D9_xvfrO.mjs.map} +1 -1
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.mjs +2 -2
- package/dist/farm.cjs +1 -1
- package/dist/farm.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/next.cjs +2 -2
- package/dist/next.mjs +2 -2
- package/dist/nuxt.cjs +3 -3
- package/dist/nuxt.mjs +3 -3
- package/dist/{rolldown-DzX9Vdwj.mjs → rolldown-Blrv1BE3.mjs} +2 -2
- package/dist/{rolldown-DzX9Vdwj.mjs.map → rolldown-Blrv1BE3.mjs.map} +1 -1
- package/dist/{rolldown-BCRS1pSC.cjs → rolldown-DnjTTTNR.cjs} +1 -1
- package/dist/rolldown.cjs +2 -2
- package/dist/rolldown.mjs +2 -2
- package/dist/rollup.cjs +1 -1
- package/dist/rollup.mjs +1 -1
- package/dist/rspack.cjs +1 -1
- package/dist/rspack.mjs +1 -1
- package/dist/tsdown.cjs +2 -2
- package/dist/tsdown.mjs +2 -2
- package/dist/tsup.cjs +2 -2
- package/dist/tsup.mjs +2 -2
- package/dist/unloader.cjs +1 -1
- package/dist/unloader.mjs +1 -1
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/{vite-CAjumvM9.mjs → vite-ClKDljCv.mjs} +2 -2
- package/dist/{vite-CAjumvM9.mjs.map → vite-ClKDljCv.mjs.map} +1 -1
- package/dist/{vite-D7bANtZB.cjs → vite-t0-H93-t.cjs} +1 -1
- package/dist/vite.cjs +2 -2
- package/dist/vite.mjs +2 -2
- package/dist/{webpack-dxWvtRFT.cjs → webpack-Cih_Wt7Z.cjs} +1 -1
- package/dist/{webpack-wXVZwOaB.mjs → webpack-S_HPYcBX.mjs} +2 -2
- package/dist/{webpack-wXVZwOaB.mjs.map → webpack-S_HPYcBX.mjs.map} +1 -1
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.mjs +2 -2
- package/package.json +12 -12
- package/dist/api-BK_ItDEV.mjs.map +0 -1
|
@@ -70,7 +70,7 @@ import { setParseImpl } from "unplugin";
|
|
|
70
70
|
|
|
71
71
|
//#region package.json
|
|
72
72
|
var name = "powerlines";
|
|
73
|
-
var version = "0.40.
|
|
73
|
+
var version = "0.40.13";
|
|
74
74
|
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region src/_internal/helpers/generate-types.ts
|
|
@@ -856,7 +856,7 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
856
856
|
let path = id;
|
|
857
857
|
if (path.includes("{") || path.includes("}")) path = replacePathTokens(this.#context, path);
|
|
858
858
|
if (options.skipAlias !== true) path = this.resolveAlias(path);
|
|
859
|
-
if (isAbsolutePath(path)) return path;
|
|
859
|
+
if (isAbsolutePath(path) && (!options.isFile || !await this.isDirectory(path))) return path;
|
|
860
860
|
const resolverCacheKey = murmurhash({
|
|
861
861
|
path: this.#normalizeId(path),
|
|
862
862
|
importer,
|
|
@@ -871,9 +871,11 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
871
871
|
if (!result) {
|
|
872
872
|
const paths = options.paths ?? [];
|
|
873
873
|
if (importer && !paths.includes(importer)) paths.push(importer);
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
874
|
+
if (!importer) {
|
|
875
|
+
paths.push(this.#context.workspaceConfig.workspaceRoot);
|
|
876
|
+
paths.push(appendPath(this.#context.config.root, this.#context.workspaceConfig.workspaceRoot));
|
|
877
|
+
paths.push(appendPath(joinPaths$1(this.#context.config.root, "src"), this.#context.workspaceConfig.workspaceRoot));
|
|
878
|
+
}
|
|
877
879
|
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)));
|
|
878
880
|
for (const combination of getResolutionCombinations(path, { paths })) {
|
|
879
881
|
const { relativeKey, adapter } = this.#getStorage(combination);
|
|
@@ -912,7 +914,7 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
912
914
|
let path = id;
|
|
913
915
|
if (path.includes("{") || path.includes("}")) path = replacePathTokens(this.#context, path);
|
|
914
916
|
if (options.skipAlias !== true) path = this.resolveAlias(path);
|
|
915
|
-
if (isAbsolutePath(path)) return path;
|
|
917
|
+
if (isAbsolutePath(path) && (!options.isFile || !this.isDirectorySync(path))) return path;
|
|
916
918
|
let result;
|
|
917
919
|
if (!this.#context.config.skipCache) {
|
|
918
920
|
result = this.resolverCache.get(this.#normalizeId(path));
|
|
@@ -922,9 +924,11 @@ var VirtualFileSystem = class VirtualFileSystem {
|
|
|
922
924
|
if (!result) {
|
|
923
925
|
const paths = options.paths ?? [];
|
|
924
926
|
if (importer && !paths.includes(importer)) paths.push(importer);
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
927
|
+
if (!importer) {
|
|
928
|
+
paths.push(this.#context.workspaceConfig.workspaceRoot);
|
|
929
|
+
paths.push(appendPath(this.#context.config.root, this.#context.workspaceConfig.workspaceRoot));
|
|
930
|
+
paths.push(appendPath(joinPaths$1(this.#context.config.root, "src"), this.#context.workspaceConfig.workspaceRoot));
|
|
931
|
+
}
|
|
928
932
|
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)));
|
|
929
933
|
for (const combination of getResolutionCombinations(path, { paths })) {
|
|
930
934
|
const { relativeKey, adapter } = this.#getStorage(combination);
|
|
@@ -3850,4 +3854,4 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
3850
3854
|
|
|
3851
3855
|
//#endregion
|
|
3852
3856
|
export { _capnpFileId as _, createUnpluginFactory as a, createUnpluginModuleResolutionFunctions as c, PowerlinesContext as d, FileId as f, FileSystem as g, FileStorage as h, createPluginContext as i, combineContexts as l, FileMetadata_KeyValuePair as m, PowerlinesAPIContext as n, createUnplugin as o, FileMetadata as p, PowerlinesEnvironmentContext as r, createUnpluginResolver as s, PowerlinesAPI as t, isUnpluginBuilderVariant as u, name as v, version as y };
|
|
3853
|
-
//# sourceMappingURL=api-
|
|
3857
|
+
//# sourceMappingURL=api-DNliE0lt.mjs.map
|