We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53cb652 commit 28b62c9Copy full SHA for 28b62c9
src/resources/Schema.ts
@@ -58,13 +58,16 @@ export class Schema {
58
}
59
60
generateSchema() {
61
- const schemaFiles = flatten(globby.sync(this.schemas));
+ const schemaFiles = flatten(
62
+ globby.sync(
63
+ this.schemas.map((schema) =>
64
+ path.join(this.api.plugin.serverless.config.servicePath, schema),
65
+ ),
66
67
+ );
68
69
const schemas = schemaFiles.map((file) => {
- return fs.readFileSync(
- path.join(this.api.plugin.serverless.config.servicePath, file),
- 'utf8',
- );
70
+ return fs.readFileSync(file, 'utf8');
71
});
72
73
this.valdiateSchema(AWS_TYPES + '\n' + schemas.join('\n'));
0 commit comments