fix verify command for older repos
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
@@ -55,7 +55,7 @@ async function verify(directoryPath: string) {
|
||||
schemaPath = join(directoryPath, OLD_SCHEMA_PATH);
|
||||
}
|
||||
|
||||
const schema = await import(resolvePath(join(directoryPath, TS_MODULE)));
|
||||
const schema = await import(resolvePath(schemaPath));
|
||||
|
||||
if (!schema.spec) {
|
||||
throw new Error(`\`${TS_SCHEMA_PATH}\` needs to have a 'spec' export.`);
|
||||
|
||||
Reference in New Issue
Block a user