@aexol/axolotl
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -60,8 +60,11 @@ #!/usr/bin/env node | ||
`, './lib/resolvers.js') | ||
.action((options) => { | ||
.action(async (options) => { | ||
const schemaPath = options.schema || './schema.graphql'; | ||
const resolversPath = options.resolvers || './src/resolvers.ts'; | ||
const generationMessage = `finished checking resolvers`; | ||
inspectResolvers(resolversPath, schemaPath); | ||
console.log(chalk.greenBright(generationMessage)); | ||
const unImplemented = await inspectResolvers(resolversPath, schemaPath); | ||
unImplemented.forEach(([type, field, compiled]) => { | ||
console.log(`${chalk.magenta(type)}.${chalk.blueBright(field)} of type: ${chalk.magentaBright(compiled)} is not implemented inside axolotl resolvers.`); | ||
}); | ||
console.log(chalk.greenBright(`\nFinished checking resolvers. ${chalk.yellow(`${unImplemented.length} resolvers not implemented`)}. Remember that in GraphQL you don't need to implement resolver for every field.`)); | ||
process.exit(); | ||
}); | ||
@@ -68,0 +71,0 @@ createApp(program); |
{ | ||
"name": "@aexol/axolotl", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"private": false, | ||
@@ -20,3 +20,3 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@aexol/axolotl-core": "^0.2.3", | ||
"@aexol/axolotl-core": "^0.2.4", | ||
"chalk": "^5.3.0", | ||
@@ -23,0 +23,0 @@ "chokidar": "^3.6.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
76695
299
Updated@aexol/axolotl-core@^0.2.4