fix verify command for older repos

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2024-10-07 23:29:44 -04:00
parent 6f7d966c3b
commit 5b1c6fe71f
@@ -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.`);