@soda-gql/builder 0.11.2 → 0.11.4
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/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/plugin-support.cjs +1 -1
- package/dist/plugin-support.d.cts +1 -1
- package/dist/plugin-support.d.cts.map +1 -1
- package/dist/plugin-support.d.mts +1 -1
- package/dist/plugin-support.mjs +1 -1
- package/dist/{service-UG-_oJSl.mjs → service-BsLt3K-6.mjs} +13 -2
- package/dist/service-BsLt3K-6.mjs.map +1 -0
- package/dist/{service-nHDX5qIj.cjs → service-CKlB44r5.cjs} +13 -2
- package/dist/service-CKlB44r5.cjs.map +1 -0
- package/dist/{service-BIDYnmeU.d.cts → service-DWqMy_bx.d.cts} +8 -1
- package/dist/service-DWqMy_bx.d.cts.map +1 -0
- package/dist/{service-DdFZ_WpI.d.mts → service-iZxJaL2x.d.mts} +8 -1
- package/dist/service-iZxJaL2x.d.mts.map +1 -0
- package/package.json +4 -4
- package/dist/service-BIDYnmeU.d.cts.map +0 -1
- package/dist/service-DdFZ_WpI.d.mts.map +0 -1
- package/dist/service-UG-_oJSl.mjs.map +0 -1
- package/dist/service-nHDX5qIj.cjs.map +0 -1
|
@@ -1440,7 +1440,7 @@ function* evaluateIntermediateModulesGen(input) {
|
|
|
1440
1440
|
//#endregion
|
|
1441
1441
|
//#region packages/builder/src/internal/graphql-system.ts
|
|
1442
1442
|
/**
|
|
1443
|
-
* Helper for identifying graphql-system files and import specifiers.
|
|
1443
|
+
* Helper for identifying graphql-system files, inject modules, and import specifiers.
|
|
1444
1444
|
* Provides robust detection across symlinks, case-insensitive filesystems, and user-defined aliases.
|
|
1445
1445
|
*/
|
|
1446
1446
|
/**
|
|
@@ -1475,6 +1475,13 @@ const createGraphqlSystemIdentifyHelper = (config) => {
|
|
|
1475
1475
|
const graphqlSystemPath = (0, node_path.resolve)(config.outdir, "index.ts");
|
|
1476
1476
|
const canonicalGraphqlSystemPath = toCanonical(graphqlSystemPath);
|
|
1477
1477
|
const canonicalAliases = new Set(config.graphqlSystemAliases.map((alias) => alias));
|
|
1478
|
+
const canonicalInjectPaths = new Set();
|
|
1479
|
+
for (const schemaConfig of Object.values(config.schemas)) {
|
|
1480
|
+
canonicalInjectPaths.add(toCanonical(schemaConfig.inject.scalars));
|
|
1481
|
+
if (schemaConfig.inject.adapter) {
|
|
1482
|
+
canonicalInjectPaths.add(toCanonical(schemaConfig.inject.adapter));
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1478
1485
|
return {
|
|
1479
1486
|
isGraphqlSystemFile: ({ filePath }) => {
|
|
1480
1487
|
return toCanonical(filePath) === canonicalGraphqlSystemPath;
|
|
@@ -1494,6 +1501,10 @@ const createGraphqlSystemIdentifyHelper = (config) => {
|
|
|
1494
1501
|
return false;
|
|
1495
1502
|
}
|
|
1496
1503
|
return toCanonical(resolved) === canonicalGraphqlSystemPath;
|
|
1504
|
+
},
|
|
1505
|
+
isInternalModuleFile: ({ filePath }) => {
|
|
1506
|
+
const canonical = toCanonical(filePath);
|
|
1507
|
+
return canonical === canonicalGraphqlSystemPath || canonicalInjectPaths.has(canonical);
|
|
1497
1508
|
}
|
|
1498
1509
|
};
|
|
1499
1510
|
};
|
|
@@ -4381,4 +4392,4 @@ Object.defineProperty(exports, 'loadArtifactSync', {
|
|
|
4381
4392
|
return loadArtifactSync;
|
|
4382
4393
|
}
|
|
4383
4394
|
});
|
|
4384
|
-
//# sourceMappingURL=service-
|
|
4395
|
+
//# sourceMappingURL=service-CKlB44r5.cjs.map
|