first commit

This commit is contained in:
O K
2026-05-20 17:32:11 +03:00
commit c92aee86a2
33 changed files with 11584 additions and 0 deletions

30
.graphqlrc.js Normal file
View File

@@ -0,0 +1,30 @@
const fs = require("node:fs");
function getConfig() {
const config = {
projects: {},
};
let extensions = [];
try {
extensions = fs.readdirSync("./extensions");
} catch {
// ignore if no extensions
}
for (const entry of extensions) {
const extensionPath = `./extensions/${entry}`;
const schema = `${extensionPath}/schema.graphql`;
if (!fs.existsSync(schema)) {
continue;
}
config.projects[entry] = {
schema,
documents: [`${extensionPath}/**/*.graphql`],
};
}
return config;
}
module.exports = getConfig();